Relative Content

Tag Archive for pythondiscordbots

Creating a command – Discord bot in Python

I am trying to create a simple command called infos_bot() for a Discord bot. The
on_ready() stuff is working well but I can’t figure out why is my new command not taken into account – i.e. nothing happens when I type the command within the server/channel.

I need to help about “data_type_name”?

2024-07-29 02:17:59 ERROR discord.ext.commands.bot Ignoring exception in command getpasswords
Traceback (most recent call last):
File “C:UserstbyetAppDataRoamingPythonPython312site-packagesdiscordextcommandscore.py”, line 235, in wrapped
ret = await coro(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:UserstbyetDesktopTASRATconfig.py”, line 405, in getpasswords
data = get_data(browser_path, profile, master_key, data_type)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:UserstbyetDesktopTASRATconfig.py”, line 355, in get_data
if data_type_name == ‘history’ and row[2] != 0:
^^^^^^^^^^^^^^
NameError: name ‘data_type_name’ is not defined

i am having issue to add custom emoji in selection dropdown selection menu

hey i made a discord ticket system in python with selection menu i want to add custom emoji in drop downselection menu i use this <:general_support:1252991837396926495> but its not adding custom emoji in the drop down menu enter image description here please let me know how to fix this and i have another issue when i use dropdown menu it works perfectly but after some time it says failed This interaction failed how to fix this.

Python Loop Exiting with On_Message event and async functions

I’m currently running bots through discord with a python script. There is a chain of questioning where the bot successfully doesn’t respond to itself. At the end, I type the word “proceed” and the bot generates a response. However, the bot always seems to respond to itself because I can’t seem to successfully exit the loop and start the on_message event again.