This bot serves as one of the backbones of the Idiot's Guide Community, using the communities Guide Bot as a base framework, York Dev expands on it's functionalities with common error detection with solution, fun commands, as well as a tag and example command!
git
command line (Windows|Linux|MacOS) installednode
Version 8.0.0 or higherCario
York Dev uses canvas, you will need to install all prerequisites for your operating system.
You also need your bot's token. This is obtained by creating an application in the Developer section of discordapp.com. Check the first section of this page for more info.
OS | Command |
---|---|
OS X | brew install pkg-config cairo pango libpng jpeg giflib |
Ubuntu | sudo apt-get install libcairo2-dev libjpeg8-dev libpango1.0-dev libgif-dev build-essential g++ |
Fedora | sudo yum install cairo cairo-devel cairomm-devel libjpeg-turbo-devel pango pango-devel pangomm pangomm-devel giflib-devel |
Solaris | pkgin install cairo pango pkg-config xproto renderproto kbproto xextproto |
Windows | Instructions on their wiki |
In a command prompt in your projects folder (wherever that may be) run the following:
git clone https://github.com/YorkAARGH/York-Dev.git
Once finished:
- In the folder from where you ran the git command, run
cd York-Dev
and then runnpm install
- Rename
config_example.json
toconfig.json
- Edit
config.json
and enter your token and other details as indicated. It should look something like this afterwards:
{
"ownerId": ["146048938242211840","203089110397747200"],
"token": "NO TOKEN FOR YOU",
"defaultSettings" : {
"prefix": "?",
"afk": "false",
"afkMessage": "is currently AFK, they will be back soon.",
"social": "false",
"modLogChannel": "mod-log",
"modRole": "The Idiot's Staff",
"adminRole": "Admin"
}
}
To start the bot, in the command prompt, run the following command:
node app.js
To add the bot to your guild, you have to get an oauth link for it.
You can use this site to help you generate a full OAuth Link, which includes a calculator for the permissions: Permissions Calculator