Quick Question For Someone Getting Into Coding Discord Bots

Question:
I am trying to learn to make discord bots for personal/school discords. Where are you supposed to put the token that you get?
Repl link:
N/A

TOKEN = XYZ
something(TOKEN)

Typically you would put a token it the secret tab (So it’s not just in plain sight), I’m not sure how you pass it to the bot though.

2 Likes

Might be client.run(TOKEN), just saw that code in a different thread.

1 Like

For python

client.run(token)

For js

client.login(token)