All Commands

NPM Version

Every available command in one place. Assuming you have completed all the steps here, you are ready to get started with your bot.

Important

Needed permissions

If you are running all commands, an Admin or Mod role is recommended.

All imports and usage
const { discordLogin, token }   = require('./node_modules/bb-dbotbits/discordHandler.js');
const { discordReply }          = require('./node_modules/bb-dbotbits/discordReplies.js');
const { discordReplyEmbed }     = require('./node_modules/bb-dbotbits/discordReplyEmbed.js');
const { discordTickets }        = require('./node_modules/bb-dbotbits/discordTickets.js');
const { discordRadio }          = require('./node_modules/bb-dbotbits/discordRadio.js');
const { checkSpamRate }         = require('./node_modules/bb-dbotbits/checkSpamRate');
const { discordPurgeCommands }  = require('./node_modules/bb-dbotbits/discordPurge');
const { discordRules }= require('./node_modules/bb-dbotbits/discordRules');
const { discordCheckSpam }      = require('./node_modules/bb-dbotbits/discordCheckSpam');
const { discordXP }             = require('./node_modules/bb-dbotbits/discordXP.js');
const { DiscordWelcomer }       = require('./node_modules/bb-dbotbits/discordWelcomer.js');
const { DiscordGoodbye }        = require('./node_modules/bb-dbotbits/discordGoodbye.js');

// XP leveling system
discordXP();

// URL filter
discordCheckSpam();

// Server rules
discordRules();

// Spam rate limiter
checkSpamRate();

// Purge slash commands
discordPurgeCommands();

// Support tickets
discordTickets();

// Simple text reply
discordReply('helloworld', 'ohhh so it starts');

// Rich embed reply
discordReplyEmbed(
  'announcenew',
  'Important Update',
  'We have some exciting new features coming soon! Stay tuned.',
  'This is a footer text',
  'https://example.com/update-image.png',
  'https://example.com/more-info'
);

// Radio station
discordRadio('radioStationName', 'streamURL', 'logoOfradioStationURL.jpg');

// Welcome new members, show who invited them
DiscordWelcomer('Welcome to {server}, {user}!', { showInvitee: true });

// Say goodbye when members leave
DiscordGoodbye('Goodbye {username}, we will miss you!', { showInvitee: true });

Warning

These should only be called once

Call once only
discordTickets();
checkSpamRate();
discordCheckSpam();
discordRules();
discordXP();
DiscordWelcomer();
DiscordGoodbye();

Next up: Licence