Various node.js applications we use on our platform.
A bot to provide assistance to our discord users at echoCTF Discord server.
The configuration file (config.json
)should look something like
{
"prefix": "~",
"allowedRole": "BUGHUNTER",
"autoRole": "offense",
"token": "<BOT TOKEN>",
"dbhost": "localhost",
"dbuser": "root",
"dbpass": "",
"dbname": "echoCTF"
}
The keys are self explanatory but in case it is not clear
prefix
: The prefix for the command eg~
or!
allowedRole
: Roles that are allowed to send commands to the botautoRole
: Role to assign to new members of the guildtoken
: Your token from discord developer portaldbhost
: database hostdbuser
: database userdbpass
: database passworddbname
: database name to use
help
: provides helpmyid
: returns the discord id for the user to be used on the profile settingstarget [name]
: target short name to lookup (eg~target bart
)say
: Make the bot say somethingpurge [2-100]
: Purge messages from the channel (eg~purge 100
)leave
: Leave the guild this command was received on