This is a discord bot that can bring a little fun for your discord server, you can request a joke using
!joke
or you can play a game using!game
. Invite it to your server and try it out or you can clone my code and make your own things.
- You need to create your own personal server to be able to invite the bot.
- You can follow these instructions
You can invite the bot to you server by clicking on the link above or you can download/clone this code and create/modify your own bot.
- Ruby
- Discord
- Text editor
- Bundler
- If you don't have Bundler on your computer you'll need to install it with
gem install bundler
- To install all the libraries you run
bundle install
- Now you will need to create an account on discord.
- After signing up, access the developer page.
- Create a new application with your own stuff.
- After creating you app, access it and you will need your
Client ID
in the General Information section(below the description) - To get your
Secret token
, go to the Bot section, add your bot clicking the buttom and the token will be under the bot username.
- Create a file called
tokens.env
on the root folder.
- And type on it:
SECRET_TOKEN=your secret token
CLIENT_ID=you client id
- Now you just get the invite for your own bot.
- Check some necessary permissions like:
Read messages
,Send Messages
,Read History Messages
- Insert you Client ID and get the link at the bottom to invite your bot
-
If you are using all my code, you can just run
bundle exec ruby bin/main.rb
to initialize your bot. -
To use the bot features, you can type
!joke
to receive a joke or you can type!game
to play a guess game with the bot.
-
To run the rspec tests, you will need to install the rspec with
gem install rspec
-
And to check all tests run
rspec
on the root folder
👤 Luis Vinicius
- GitHub: @luisvinicius09
- LinkedIn: LinkedIn
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
- Hat tip to anyone whose code was used
- Inspiration
- etc