#error on bot
1 messages · Page 1 of 1 (latest)
Nice token
You can create now a new one
lol my token is there
wdyym
Get a new Token
whats the error tho
For the bot
I Downloaded the Screenshot and can only see your bot.run code
yeh
cus i blured my token
now i reset it
how do u do the thing to hide ur token tho
can u help me
tho
I store my token in a json file
.
and how do u hide it when u put it in ur bot code
anyways can u help me
i dont understand the syntax error
as i have never got it for that
Can you show the code?
sure
import discord
from dhooks import Webhook
hook = Webhook("https://discord.com/api/webhooks/1046062912944488498/Ipu2NDXA2x-ofXjS5Ppf8wzwoSM-Xk_")
bot = discord.Bot()
@bot.event
async def on_ready():
print(f"We have logged in as {bot.user}")
hook.send("hello")
#s
#s
@bot.slash_command(guild_ids=[1046324619877023814])
async def hello(ctx):
await ctx.respond("Hello!")
@bot.slash_command(guild_ids=[1046324619877023814])
async def ping(ctx):
await ctx.respond("Pong 0.1")
#1046324619877023814
#689804309176778768
server = [1009750039222038570]
@bot.slash_command(guild_ids= server)
bot.run("think of this as my token")
Also hide the webhook
jesus
there
wow i am bad at hiding stuff
i found out the problem
thanks for help ig
but how do u do the import thing like
At the end you have @bot.slash_command...
Remove that
- For testing you can add debug_guilds=[] to the discord.Bot so you dont have to copy and paste it
some youtubers when they show there code or something they have import some other file
You haven't made any function for it
and they just write token in the token area
ik
^
it is the source
what
My pleasure ig