Gondalier is a Discord bot intended for general use functions such as random number generator, reminders, &c. Uses DiscordJS and NodeJS.
- node.js installed
- discord.js module installed
npm install discord.js
- an auth.json file with your own token
{
"token":"your_token_id"
}
In the main file, Gondalier.js
, you must initialize the command first
// commands init
commands = {}
commands['id'] = require('./commands/id.js')
Add a new line under commands = {}
with the name of the command in place of id
.
Next, add a new line further down with the function newCommand()
.
newCommand('name', 'id')
Here, the name
will be the string that goes after the prefix and the id
will be the same id you used in the previous step.
- Create a new file in directory
\commands\
with the same filename as you used in the first step.require('./commands/id.js')
- Next paste the following template into the new file
function id(msg) {
--code--
}
module.exports = id
- Just replace the id with the id you have been using previously and enter the code into the
--code--
area
I would like to thank my good lad, Secnyt, for helping me out on a ton of things
Creato da ItalianCucumber