Python Forum
Made a discord bot game that uses commands but now trying to add buttons - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Made a discord bot game that uses commands but now trying to add buttons (/thread-42007.html)



Made a discord bot game that uses commands but now trying to add buttons - Dmcsdiscord - Apr-22-2024

Hey guys,

https://pastebin.com/YwTqHbiV —— game working with ! Commands and no buttons

https://pastebin.com/gJWVnGHU ——- game not so working, but join and start buttons are working properly


I’m new to Python and haven’t coded in ages, but I recently decided to give it a go.

I made a game using “ ! “ commands, and now I would like to add buttons.

Using the help of chat gpt, I’ve got the start and join button working properly,

When it came to a button with more logic (spin or guess), it seems like my bot breaks a bit, it seems like it doesn’t understand people can only spin once and then they are only allowed to guess (using the guess button), and when someone tries to guess using the guess button, if they guess a letter in the puzzle it acts as if the letter isn’t in the puzzle at all.

I’m not sure what to do or where I’m going wrong, my logic for the guess command is the same as what is in the guess button handler.

If anyone can help me with some guidance it would be much appreciated.


RE: Made a discord bot game that uses commands but now trying to add buttons - Dmcsdiscord - Apr-22-2024

It doesn't let me post it because its too long