Skip to content
Sign UpLog In
Profile icon

Andre1070

@Andre1070
Repls
Community
Andre1070
Andre1070
shared a Post
1 year ago
I'm having some difficulty getting a discord bot to work
Firstly, in the client.login field, it doesn't recognize my token unless I actually type it into the file itself, it doesn't work if I try to put it a
connor
connor
I'm gonna go ahead and assume this is Discord.js based. As for the token - are you using process.env["TOKEN"] with a secret named "TOKEN" in client.login? And as for inviting the bot, open https://discord.com/api/oauth2/authorize?client_id=[CLIENTID]&permissions=8&scope=bot in a new tab, but replace [CLIENTID] with your bot's client id (which you can find in the OAuth2 section of the developer portal). This will allow you to invite the bot to a server, and it'll give the bot administrator priv1 year ago