Nithen
@Nithen
1
im trying to run this discord bot, but it keeps showing that the package operation failed... all of these commands were previously used by other bots
Python
1
I have made an RPG Discord bot. I have made a list called 'spawnables', that contains multiple gifs of monsters. Whenever the user types 'rpg!mon', I
Python
1
I have made a moderator bot in Discord to kick/ban members. Its not working; please help me!
Python
VulcanWM try:
@commands.haspermissions(kickmembers=True)
@bot.command()
async def kick(ctx, user: discord.Member, *, reason="No reason provided"):
await user.kick(reason=reason)
kick = discord.Embed(title=f":boot: Kicked {user.name}!", description=f"Reason: {reason}\nBy: {ctx.author.mention}")
await ctx.message.delete()
await ctx.channel.send(embed=kick)
await user.send(embed=kick)
@commands.haspermissions(banmembers=True)
@bot.command()
async def ban(ctx, user: d1 year ago
1
I have made a bot that sends images in Discord. But, when I type 'rpg!monsters' on Discord, an error occurs in line 26. Pls help me!
Python
Coder100 Try making them local, so change line 7 to:
spawnables = ['./bootlegflowey.gif', './scaldamander.gif']
also please SEND YOUR ERROR!1 year ago
1
I am using Python and am wondering if the name of the def functions matters or not? Please help me!
RoBlockHead as long as you don't have duplicate names, no. It only matters when you call the function (you just need to put the right name)1 year ago
1
So, I'm making a Discord bot and I want to make a bot that sends pictures of dragons when the user types "$dragon". So far, I have one image, and I ha
SixBeeps Discord.py's send() method has an option for passing in files. Here's what it looks like:
await channel.send(file=discord.File('my_image.gif'))
As long as you have the channel that they sent the message through, this will send the image in the same channel.1 year ago