Skip to content

Latest commit

 

History

History
33 lines (31 loc) · 2.84 KB

ReadMe.md

File metadata and controls

33 lines (31 loc) · 2.84 KB

Discord_ChatBot

A very simple code to make your own 24/7 AI Chat Bot that talks like humans and can answer all of your questions except some dum one's...

Bot Creation:

This is a guide if you are new to repl.it or bot making! If you already have experience, Skip to 24th line!


• Make a new application in Here by clicking New Application and giving it a cool name.

• Now as you have made a new application, head over to the OAuth2 tab in the left.

• Now select ◻️ bot in Scopes menu.
alt text
• Scroll down to Bot Permissions menu and select the permissions as given below...
alt text
• Now copy the link that is given below the Scopes menu and head over to the Bot tab in the left!

• Click ADD BOT and paste the link that you copied in a new tab of your browser.
alt text
• It will ask you to add the bot that you just made to a server. Add it!

• Cool, you made a bot and also invited it to a server!

Installation of Bot Code


• Go to repl.it, make an account and click +Create Repl and again click Import from GitHub present at top right corner.

• Copy & paste my repo link and hit enter. It will load my repo in there.
• Then it will ask for Language and Start Button Config! Just select Node.js and type node index.js where it asks for start button configuration!

• Now head back to Discord Developers Application and copy the Bot Token using the following picture
alt text
• Go to secret's tab in repl.it repo and add a new secret. Put the Variable as TOKEN and put your bot token as the key!

• It should look like this!
alt text
• Go to Advanced menu in Discord settings and enable Developer Mode...

• Right click a channel where you want the bot to talk and click copy ID.

• Paste it in line 19 where it's written "put channel ID here". Remember: don't remove the quote sign in the code!

• Click Run button at top and your bot will come alive! Just say hello in the channel you selected and the bot will start talking!

• To make this bot always running, copy the link that is given at top right corner of repl it and goto uptimerobot.com and make new monitor and paste it while selecting HTTPS!

Enjoy talking with your own bot!:)

If you are having trouble, watch my video!:D