NOTE:
This is not a standalone project, rather it is an addition to an existing, extensive project. The github repo shared in the project contains the entire bot code, not just the code for the rock paper scissors game challenge. I have clearly indicated in the main code file (bot.py) which part was done as part of the challenge.
Inspiration
I have decided to implement the rock paper scissors game on a discord bot. However, rather than making a seperate bot that only does this game, I chose to implement the game on my existing bot that I have been working on for a while now, as I think it is a cool command that will add spice to my bot :D
What it does
Pretty straightforward, when you call the command, by using ?rockPaperScissors or ?rps, the bot will display rock, paper and scissors bottons. Click on one of the buttons to make your choice, and the bot will tell you what they chose, and the outcome of the game.
How we built it
Using python and the discord.py 2.0 module
Challenges we ran into
I was using discord.py 1.7.3 beforehand, and when I tried to implement the buttons, it didn't work, as previous versions of discord.py didn't support this feature. So after searching around, I realized I had to upgrade.
Accomplishments and What we learned
I learned how to use buttons and views in discord.py. I also now have another minigame in my bot yay!
What's next for RickyBoi
In the future, I might make a system that tracks total lifetime user wins in rock paper scissors. I will also upgrade to pycord lol.
Built With
- discord
- python
Log in or sign up for Devpost to join the conversation.