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...
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.
• Scroll down to Bot Permissions menu and select the permissions as given below...
• 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.
• 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!
• 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
• 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!
• 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!