How to use the boats.js function in boats

To help you get started, we’ve selected a few boats examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github DiscordBoats / boats.js / tests / getUser.js View on Github external
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');
github DiscordBoats / boats.js / tests / getBot.js View on Github external
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');
github DiscordBoats / boats.js / tests / postStats.js View on Github external
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');
github DiscordBoats / boats.js / tests / getVoted.js View on Github external
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');

boats

Beautiful Open / Async Template System - Write less yaml with BOATS and Nunjucks.

MIT
Latest version published 7 days ago

Package Health Score

72 / 100
Full package analysis

Popular boats functions