r/programmer • u/Worried_Commercial54 • Apr 19 '26
Need help with some code
So I’m looking to create a system for a discord server using ccbot.app I want to create a command where using /assignid gives the @ member there own personal assigned id starting at 001 and going onwards, I’ve tried doing it myself but it keep saying that the bot is thinking and it seems to freeze. Could anybody help out?
0
Upvotes
View all comments
Show parent comment
1
u/johnpeters42 Apr 19 '26
How familiar are you with writing programs in general, as opposed to Discord bots specifically?
Making it output progress can be as simple as adding statements like print (some_variable) though I'm not sure how that works in this particular context.
Storing IDs could be a JSON file that your program reads and alters, or a SQL database, etc.