A Template Discord bot made in Ruby with discord.rb
- I'm a beginner on Ruby and even more with discord.rb.
- If you have any advices to give me on my code, on the way to do it, the structure or if I don't respect some conventions. I'm a good listener and that's why you can join my discord and help me (So that I can improve a maximum !).
- Download & install Ruby latest version with DevKit.
- Download & install Git for Windows.
- Create a folder, go in, then
- Right click, and click Git Bash here
- Clone repo
git clone https://github.com/Suylo/Discord-Bot.git
- Go in /Discord-Bot
cd /Discord-Bot
- Install ruby gem discordrb
gem install discordrb
- Create a file named
token.json
in /utils/
{
"token": "TOKEN HERE"
}
- Grab your token from discord developer apps : Tutorial here
- Run the bot with :
ruby index.rb
And normally everything works! Good luck and enjoy !
- Coming later