/simple-bot

Primary LanguageJavaScript

Simple discord bot

You will have to create your discord aplication and convert it to bot to get the token.

For more info Creating your bot

1. First clone this project.

2. Create config.json file in the root of the project

Paste this code inside: { "prefix": "your prefix", "token": "your token" }

3. Change prefix and token to the one your bot uses.

4. Then type npm i in root of the folder to install dependencies.

run the bot with node index.js

Commands Structure

module.exports = {
name: 'ping', // unique name of the command
aliases: ['pong', 'pulse'], //other names of the command
description: 'Ping!', //text that will be seen when using help command
cooldown: 5, //how often can you use the command
guildOnly: true, only able to use thiss command on the server
args:false, // this commands takes arguments, if no arguments provided send error
usage:false, //example of how command can be used or false
// eslint-disable-next-line no-unused-vars
execute(msg, args) { // exection of the command
},
};