Getting Started

Install the NPM with

1
$ npm install -g simplify-discordbots
Copied!
Then use this code to setup your bot
Replace Token with your bots token and Prefix with your bots prefix !, ?.
index.js
1
const S = require('simplify-discordbots')
2
const bot = new S.Bot({
3
token: "Token",
4
prefix: "Prefix",
5
})
6
bot.onMessage();
Copied!

Creating your first command

index.js
1
bot.command({
2
name: "embed",
3
code: `$title[Hi!]
4
$description[this is an embed]
5
$color[#FF4500]`
6
})
Copied!

Command handler

Only use the command handler if you really gonna use it
index.js
1
bot.loadCommands('./commands/')
Copied!
Create a folder named commands and an subfolder named folder and then make an file yourcommandname.js.
yourcommandname.js
1
module.exports = {
2
name: "embed",
3
code: `$title[bye]
4
$description[this is an command in the command handler!]
5
$color[#FF8900]
6
}
Copied!

Fetching invites (Invite system)

Only use the fetch invites method if you really gonna use it
index.js
1
const S = require('simplify-discordbots')
2
const bot = new S.Bot({
3
token: "Token",
4
prefix: "Prefix",
5
fetchInvites: true
6
})
7
bot.onMessage();
Copied!