Discord.py Stuck Trying to Loop Through Logs and Send to Server

I am trying to create a simple discord bot that parses a log file that is constantly being written to and sending the new lines to a discord channel I have on my server name logs. Parsing the file and …

Discord.py WELCOMER – How to make a custom image for welcome messages

I’d like to add the “custom” image for new discord users in my server. Just like this: Click here for the image. This is what I have for now: @client.event async def on_member_join(member): …

get only information of a specific guild

Hey so this code works completely fine but my problem is that it gets info of all the servers that the bot is in. @commands.Cog.listener() async def on_user_update(self, before, after): logs = …

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 = (”…

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 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,…