Skip to content

This is a bot for discord that tells you a joke. Created with Ruby.

Notifications You must be signed in to change notification settings

luisvinicius09/discord_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord Bot

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.

Built With

If it's your first time using discord:

  • You need to create your own personal server to be able to invite the bot.
  • You can follow these instructions

Live Demo

Invite the bot to your server

Getting Started

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.

Prerequisites

  • Ruby
  • Discord
  • Text editor
  • Bundler

If you want to use as your own bot

Install

  1. If you don't have Bundler on your computer you'll need to install it with gem install bundler
  2. To install all the libraries you run bundle install

Setup

  1. Now you will need to create an account on discord.
  2. After signing up, access the developer page.
  3. Create a new application with your own stuff.
  4. After creating you app, access it and you will need your Client ID in the General Information section(below the description)
  5. 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.

Now that you have your Secret Token & Client ID

  1. Create a file called tokens.env on the root folder.
  • And type on it: SECRET_TOKEN=your secret token CLIENT_ID=you client id
  1. 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

Usage

  1. If you are using all my code, you can just run bundle exec ruby bin/main.rb to initialize your bot.

  2. 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.

Run tests

  • 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

Authors

👤 Luis Vinicius

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!

Acknowledgments

  • Hat tip to anyone whose code was used
  • Inspiration
  • etc

About

This is a bot for discord that tells you a joke. Created with Ruby.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages