/TwistyBot

TwistyBot's Discord command framework

Primary LanguageJavaScript

TwistyBot

Click here if you are just looking to invite TwistyBot to your server.

The rest of this page contains information for developers looking to create a new Discord bot using TwistyBot's command framework. If you need help using TwistyBot, use the !help command or DM Twisty Fork#0899 on Discord.

Documentation in progress!

What is TwistyBot?

TwistyBot is a command framework that extends Discord.js. TwistyBot helps you build quickly build custom command for Discord chat bots. It includes a permission system, multiple command parsers, and helpful functions to simplify formatting your responses.

Installation

Requirements

  • Node.js 7.10.0 or higher for async/await support.
  • Discord.js is also required as a peer dependency.
npm install --save discord.js
npm install --save twistybot

Usage

const TwistyBot = require('twistybot');
let bot = new TwistyBot.Client();

(async function() {
	// Register default commands
	await bot.add_default_commands();

	// Register a folder of commands
	await bot.add_command_directory(__dirname + '/commands');

	// Begin listening for commands
	bot.login('your bot token');
})();

Documentation