You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
so i have slash command that creates data for DB then giving him id (ofc i need something here to update the choices for second slash command)
and a slash command that removes data from DB using id
i saw something about restarting the script.. heres some of those ideas
os.execv(sys.argv[0], sys.argv)
--OSError: [Errno 8] Exec format error os.execv(sys.executable, ['python3'] + sys.argv)
--this looked promissing but the bot will stop functioning normally (eg. not answering to commands)
i searched more and i found you can just remove it then add it back
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
so I was creating discord bot with db..
so i have slash command that creates data for DB then giving him id (ofc i need something here to update the choices for second slash command)
and a slash command that removes data from DB using id
i saw something about restarting the script.. heres some of those ideas
os.execv(sys.argv[0], sys.argv)
--OSError: [Errno 8] Exec format error
os.execv(sys.executable, ['python3'] + sys.argv)
--this looked promissing but the bot will stop functioning normally (eg. not answering to commands)
i searched more and i found you can just remove it then add it back
--this doesnt work for me and gives me an error: 'Bot' object has no attribute 'tree'
i even found module dslash but PROJECT IS NO LONGER MAINTAINED and can be considered unstable.
im already running out of idea..
so does anyone know any way? anyway any repsonses are welcome here and thank you for your time
have a great day :0
Beta Was this translation helpful? Give feedback.
All reactions