Skip to content
Sign upLog in
Profile icon

Nithen

@Nithen
Repls
Community
Nithen
Nithen
shared a Post
1 year ago
1
Replit Package Operation Failed
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
Reputation
Python
Chino15
Chino15
error7 months ago
Nithen
Nithen
shared a Post
1 year ago
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
RPG Tester
Python
Nithen
Nithen
shared a Post
1 year ago
1
I have made a moderator bot in Discord to kick/ban members. Its not working; please help me!
Donut
Python
VulcanWM
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
VulcanWM
VulcanWM
Which error is coming up?1 year ago
Nithen
Nithen
shared a Post
1 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!
RPG Tester
Python
Coder100
Coder100
Try making them local, so change line 7 to: spawnables = ['./bootlegflowey.gif', './scaldamander.gif'] also please SEND YOUR ERROR!1 year ago
Nithen
Nithen
shared a Post
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
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
adl212
adl212
It matters when you call the function.1 year ago
Nithen
Nithen
shared a Post
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
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