Skip to content

cs220s24/lopez-kirkpatrick-discordbot

Repository files navigation

lopez-kirkpatrick-discordbot

Overview

Screenshot 2024-04-25 at 9 54 22 AM

This is a simple discord bot that can tell jokes. This Discord bot gets jokes from a redis database. There are commands to add a joke to the data base, get a random joke from the data base, and get a specific joke from the data base. You can also say hello to the bot, and it will greet you back!

Setup

To run Locally

  1. Clone the repository
  2. add .env file with DISCORD_TOKEN="bot token"
  3. Run ./deploy.sh

To run on EC2 instance

  1. Start an EC2 instance
  2. sudo yum install -y git
  3. sudo yum install -y redis6
  4. Clone the repo
  5. Add a .env file with DISCORD_TOKEN="bot token"
  6. Run ./aws_setup.sh
  7. Run ./aws_launch.sh
  8. To stop the Discord bot, run ./aws_stop.sh

To run on EC2 with Docker

  1. Start an EC2 instance
  2. sudo yum install -y git
  3. sudo yum install -y redis6
  4. Clone the repo
  5. Run ./aws_docker.sh
  6. Log out and log back in to the EC2 Instance
  7. Add a .env file with DISCORD_TOKEN=bot token AND REDIS_HOST=redis (NOTE: Do not put quotations around the bot token)
  8. Run ./dockstart.sh
  9. Run docker run --name discord-bot -d --network dnet --env-file ./.env discord-bot
  10. To stop the Discord bot, run ./dockstop.sh

Technologies Used

Background

https://builtin.com/software-engineering-perspectives/discord-bot-python

Developer Workflow

Screenshot 2024-04-29 at 6 04 38 PM

Project Contributers

  • Braden Kirkpatrick
  • Angel Lopez

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •