Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const Discord = require('discord.js');
const BOATS = require('boats.js');
const client = new Discord.Client();
const Boats = new BOATS('API TOKEN');
client.on('ready', () => {
Boats.getUser('231733082804322304').then(user => {
console.log(user);
}).catch((err) => {
console.error(err);
});
});
client.login('TOKEN');
const Discord = require('discord.js');
const BOATS = require('boats.js');
const client = new Discord.Client();
const Boats = new BOATS('API TOKEN');
client.on('ready', () => {
Boats.getBot('365958655926992896').then(bot => {
console.log(bot);
}).catch((err) => {
console.error(err);
});
});
client.login('TOKEN');
const Discord = require('discord.js');
const BOATS = require('boats.js');
const client = new Discord.Client();
const Boats = new BOATS('API TOKEN');
client.on('ready', () => {
Boats.postStats(client.guilds.count, client.user.id).then(() => {
console.log('Successfully updated server count.');
}).catch((e) => {
console.error(e);
});
});
client.login('TOKEN');
const Discord = require('discord.js');
const BOATS = require('boats.js');
const client = new Discord.Client();
const Boats = new BOATS('API TOKEN');
client.on('ready', () => {
Boats.getVoted('BOT_ID', 'USER_ID').then((voted) => {
console.log(voted);
}).catch((err) => {
console.error(err);
});
});
client.login('TOKEN');