How to add timeout, python discord bot

I made a guess the character game in discord bot, (see the code below). I want to add 30 second timeout for a player to response, but I totally dont know what to do, any help? @client.command() async …

how i can count members in python i need full code

i want to count members in discord but how using async await message.channel.send(f”””# of Members: {id.member_count}”””) i try @client.event async def on_message(…

Discord py cryptocurrency API command not working

I have a command that is supposed to get the price of a given cryptocurrency but it’s not working. Heres the code: @commands.command() async def crypto(self, ctx, cc = None): try: …

Discord.py commands always says as existing command, even when it’s completely random

I’m trying to write a Discord bot in discord.py that just responds to commands, like when you type =!firewall it says Hello! Here’s my code: import discord from discord.ext import commands TOKEN = (”…

Am I using the on_guild_leave function correctly?

So I looked at many sources saying that on_guild_leave is how it is used, but I can’t get it to work. Here is my code: @client.event async def on_guild_join(guild): # noqa try: await …

I am struggling with dming members with a certain role in discord.py

Here’s the code import discord import random from discord.ext import commands, tasks from discord.utils import get @client.command() async def play(ctx): red_role = discord.utils.get(ctx….

Discord.py ctx commands not responding

None of my ctx commands work. Here I’ll give an example. When I say p!test I want it to print hi and say test, but it’s not responding. Can someone help? @client.command() async def test(ctx): …

Discord Python Allow one user to identify another within command

I’m working on a bot for discord that tracks information related to a game. I would like staff members to alter the data of regular players with a bot command. Is there a way to grab the mention out …

How do I create a custom cycling status in discord.py?

I have a discord bot that I’m using to learn how to use the API and to practise my python knowledge. I’m trying to create a system that randomly chooses a status and applies it then waits a short time,…

Discord Python Bot Multiple Value in embed field

So i have a discord bot (using python) that connect to a sqlite database, and i want to show the data using embed. The data is containing my daily anime schedule. Here’s the code : @commands.command(…