NeuralNine discord chatbot
https://www.youtube.com/watch?v=1rZnjEDIg4k
We make a discord chatbot. We want to open up the discord developer portal.
https://discord.com/developers/applications
I have some previous failed bots that never worked.
lets make a new bot tho
allow it those 3 permissions.
Then copy the permissions integer at the bottom it should just be 68608
only admins can add bots to servers.
You will need this permission for the role:
ok, then to invite the bot to the server, we want to create an invite link
so make it in URL generator
copy the link
ok lets make it intelligent now.
https://www.youtube.com/watch?v=urlkrueSXpI&list=PL7yh-TELLS1G9mmnBN3ZSY8hYgJ5kBOg-&index=15
and lastly, get dotenv
programming
then, we want to grab our token. Its not truly secure but we will be using dotfiles to grab the token. We will use a .env file and save our token in that file instead of just writing directly. This way, we can share the code without worrying about leaking tokens.
so we have a .env file in the same directory as our script
then in our script we load this environment variable
ok next thing is connecting to the discord bot.
im acutally going to try this. So im going to use my own chatbot I made a few days ago.
so we grab that script and use their functions.
Ok il just spit the whole code cuz I went a very far and done a lot
and you need to DM the bot
to get it to work.