Python Forum
Made a discord bot game that uses commands but now trying to add buttons
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Made a discord bot game that uses commands but now trying to add buttons
#1
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.
Reply
#2
It doesn't let me post it because its too long
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Help adding memory buttons/commands in the calculator joelpub 5 3,550 Mar-04-2021, 08:05 PM
Last Post: deanhystad
  Creating Discord Bot: Unused import statement 'import discord EyeballCandy 0 3,569 Feb-02-2020, 10:53 PM
Last Post: EyeballCandy
  Buttons or Radio Buttons on Tkinter Treeview draems 0 3,410 Oct-31-2017, 04:06 AM
Last Post: draems

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020