Skip to content

Gondalier is a Discord bot intended for general use functions such as random number generator, reminders, &c.

Notifications You must be signed in to change notification settings

ItalianCucumber/gondalier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gondalier

Gondalier is a Discord bot intended for general use functions such as random number generator, reminders, &c. Uses DiscordJS and NodeJS.

png

what you need

npm install discord.js
  • an auth.json file with your own token
{
"token":"your_token_id"
}

how to add your own commands

Before programming your own commands, there are a few things you must do first.


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.


Now you can start programming the actual command.

  • 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

special thanks

I would like to thank my good lad, Secnyt, for helping me out on a ton of things

Thank you for supporting Gondalier

Creato da ItalianCucumber

About

Gondalier is a Discord bot intended for general use functions such as random number generator, reminders, &c.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages