Create simple, yet powerful discord bots focusing on commands.
What is it ?
Discot is a wrapper around discord.js to simplify the creation of server bots. It permists to focus on the creation of commands instead of spending time working with discord's API.
Usage
Installation
Discot can be installed using yarn or npm.
npm install discot# or yarn add discot
Example
const bot = token: 'discord_token' // default value: process.env.DISCORD_TOKEN prefix: '!' // default value: '!'; bot start console;
message
in the action
method for a command is the object from discord.js
API
Bot constructor
const bot = token: 'discord_token' // default value: process.env.DISCORD_TOKEN prefix: '!' // default value: '!';
Set your discord token in the env variable DISCORD_TOKEN (use dotenv).
bot.addCommand(command)
bot
message
in the action
method for a command is the object from discord.js
bot.start(callback?)
botstart console
The callback is triggered when the bot is started.
Contribute
Pull requests are welcome ! Feel free to contribute.
Credits
Coded with ❤️ by Corentin Thomasset.
License
This project is under the MIT license.