Skip to content

trq/discord-bot-template

Repository files navigation

discord-bot-template

A WIP starter template for Discord bots built on a discord-akario. Dependencies are most likely out of date due to lack of maintenance.

Database

Quick.db is installed by default with some example helper methods defined in structures/Guild.js & structures/GuildMember.js. If you would like to change it out with anotherdatabase, it is easy to do so.

View more information about Quick.db here

More information on discord-akairo's database handling can be found here.

Getting Started

  1. Clone/Download this repo
  2. Install the packages using npm/yarn
  3. Create a .env file & place your token under a property titled 'TOKEN' to run.
  4. Modify the prefix and ownerID in config.json
  5. Run the bot

Default Commands

Current commands of which are supported within this template: Info, Eval, Ping, Prefix

Ability to add more commands by following this basic template:

const { Command } = require('discord-akairo');

class COMMANDNAME extends Command {
    constructor() {
        super('COMMANDNAME', {
            aliases: ['COMMANDALIASES']
        });
    }

    async exec(message) {
        // Code
    }
}

module.exports = COMMANDNAME;

Creating a Discord Bot

Visit Discords Developer Portal: https://discordapp.com/developers/applications/ Click "New Application", Enter in your applications name, Click on "Bot", Then make your application into a bot process.

This will allow you to obtain your Discord Bots Token.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published