Inspiration

When you're stressed about homework or just need a moment to connect with someone, games can be a fun way to do that. However, most online games take forever to set up and require different websites, accounts, usernames, and other complicated things.

What it does

gaming.py includes 4 simple but fun minigames right inside of Discord, letting you get going easily at the press of a key. After adding gaming.py to your server at bit.ly/gaming-py. It includes four minigames:

  1. Uno - The Uno you all know and love. Get your cards in your DMs and respond in the main channel. Try !g.uno @another-player. Uno for gaming.py was developed by Risha J.
  2. Tic-Tac-Toe - This classic game may stalemate often, but can still be very enjoyable. To start a match, use !g.ttt new @another-player. Tic-Tac-Toe for gaming.py was developed by Everest O and Eric Z.
  3. 21 - This Las Vegas-famous game also goes by Blackjack, but no matter what you call it, it's always a good time. Though the gaming.py version doesn't have betting, 21's short but sweet rounds are both interestingly random and strategic at the same time.
  4. Choose-Your-Own-Adventure: Built by Risha J, this story about a woman trying to find a job ebbs and flows with your decisions; your actions will decide how it ends.
  5. Pictionary: Pictionary is built by Eric Z and while it didn’t make it into the video or main file in time, you can still view its code at https://drive.google.com/file/d/1sYWE7qHwO6GgC14sCH-IeQXy6IAaEjpy/view?usp=drivesdk.

How I built it

gaming.py is built in Python on discord.py, and is hosted on Google Cloud Platform. Each team member started out by making their own bots and then the bots were combined at the end to form one.

Challenges I ran into

There were plans for a fifth minigame, Rock Paper Scissors, developed by Eric Z, but it had a difficult time integrating it with the rest of the minigames. We also ran into a lot of issues with the bot DMing people, as it had a hard time parsing the user ids.

Accomplishments that I'm proud of

We're proud that we even got something out in the first place. This is our team's first hackathon.

What I learned

We learned a lot about making discord bots, the python language, and debugging in general. I would say we spent a significant portion of our time debugging, and our skills definitely improved.

What's next for gaming.py - Minigame Discord Bot

We're not sure what is next for gaming.py. We might go back and add more minigames or it might stay as it is. However, we'll keep it running for as long as we can, though it may go down in the event of my google cloud platform account running out of trial credit.

View code on Google Drive

The GitHub repo is private because it contains bot tokens, so you can view our code minus tokens at the Google Drive link below.

Built With

  • discord.py
  • discordbot
  • googlecloudplatform
  • python
Share this project:

Updates