Relative Content

Tag Archive for pythondiscord.py

How setup http server on my bot instance?

How do I make requests directly to my bot? For example, I can send any request to the server at any time and receive a response. Is it possible to do this with a bot so that, for example, the
server or someone else sends a request to my bot and it sends a message somewhere

Selectmenu after button discord.py

I’m developing a discord bot using discord.py. In this block of code, I’m trying to open a select menu after pressing a button. It should go though all available items in csv file (item is available if row[1] == ”) and return them, than put all available items in selectmenu and let user select them. I’ve tried many ways, but don’t get how do i do this.
Also, after selecting an item, it should write user’s discord name to csv file. Would appreciate help.

The program ignores commands to disable the Discord bot

I am trying to create a program that, when it stops receiving certain requests, starts the bot and stops it when the connection is restored. But no matter how hard I try, the bot ignores the command to disable the bot, as if it does not see it, whether it is the usual await bot.close() line or the entire asynchronous function. At the same time, the code does not give any error, but stupidly continues to work further. Please help me solve the problem.

How can I change parameters of slash command?

I am using discord.py. For example, if there is a command named “/food” If user use “/food asian” There is a new parameter. The new parameter includes “korean”, “japanese”, “chinese” And if user use “/food european” There is a new parameter that includes “german”, “french”, “english” How can I change parameters of slash command?