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
Discord bio change using HTTP API
I want to change my Discord bio. I have this program:
Simple Discord bot written in Python, command_prefix error, please help (intents) error
I am working on a project. Please, this should be a simple fix. Looking for a solution. It looks like I am getting an error with the ‘commands’ module in python “includes’
Discord Python Bot not working. Gives error AttributeError: ‘Select’ object has no attribute ‘user’
Here is a code snippet of the class.
Extension ‘Cogs.Hello’ has no ‘setup’ function
I wanted to use cog but it doesn’t work, the same error appears all the time, I tried different ways of implementation, delete cache and the like, but nothing.
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.
i want to create a discord music bot that runs with simple commands like p to play without / or ? and i want that bot to always stay in one vc
i created this code using chatgpt and its all working fine the commands are working correctly expert th play command or p when i request a song the bot replies back with now playing but actually in the vs there is no sound so how to fix it
the code is
Python Discord Bot – Interaction Endpoint
Hey can anyone tell me how I can make an interactions endpoint for my discord bot written in Python?