#I can use only 3 commands? (SOLVED)

1 messages · Page 1 of 1 (latest)

plucky meteor
#

I dont know how but i can only use 3 messages
my script : ```python
import discord
import os
import datetime
bot=discord.Bot()
import dotenv
dotenv.load_dotenv("TOKEN.env")
token = str(os.getenv("TOKEN"))
print(token)

@bot.slash_command(description="Checks the ping")
async def ping(ctx):
await ctx.respond("Pong! the latency is "+bot.latency)

@bot.slash_command(description="Timeouts out users")
async def timeout(ctx, member:discord.Member, time:int):
await ctx.respond("Timed out "+member.mention+" for "+str(time))
await member.timeout_for(datetime.timedelta(seconds=time))
@bot.slash_command(description="Kicks users!")
async def kick( ctx, member:discord.Member, resson:str):

        embed=discord.Embed(colour=255, title="Kick System", description="Kicked "+member.mention)
        await ctx.respond(embed=embed)
        await member.kick(resson=resson)

@bot.slash_command(description=("Bans a user"))
async def ban(ctx, resson:str, member:discord.Member):

    await member.send("You got banned in "+ctx.guild.name+" for "+resson)
    await member.ban(reason=resson)
    await ctx.respond("Banned "+member.mention+" Succesfully")

bot.run(token)

surreal hatch
plucky meteor
plucky meteor
surreal hatch
plucky meteor
#

works

surreal hatch
plucky meteor
plucky meteor
surreal hatch
#

idk this is pretty strange since there's no restriction like that in the library...

plucky meteor
#

though pycord is easier

surreal hatch
#

if you want you can join their support server for help with that

#

is that your only file?

plucky meteor
#

@surreal hatch i could try to rewrite it

surreal hatch
#

i mean

#

not a lot to rewrite...

#

what if you try a different bot token?

plucky meteor
#

so something with my token id was glitching

#

I can use only 3 commands? (SOLVED)

analog tendon
#

.close

muted kiteBOT
#

Done with your help thread?

Please close your own help thread by using </close:1009144375709814897> with @woeful pasture.

Backup bot: </solved:1109625445990793246> (or .solved) with @muted kite.

woeful pastureBOT
#

This thread was archived by the user that opened it.

plucky meteor
#

frick