Welcome to this guide and follow the instructions to prepare a working Smart AI Discord bot!
First Step-:
- Go to https://discord.com/developers/applications and create a new application (button is on top right).
- After selecting bot, you should be able to add in in your server.
Running bot on VS Code
Copy the code provided, and paste it in your file.
install discord.py using pip install discord.py
on command prompt.
Copy your bot's token in the bot sectiong of the developer portal.
In line 32, replace "Your Bot Token" with the copied token.
We would be requiring two api keys , One for Random Stuff Api developed by Mr. PGamerX and One for Rapid Api.
Go to https://api-info.pgamerx.com/
Create an account and go to Manage Key.
Generate a new api key.
At line 8, replace API_KEY with your copied API Key
RAPID API KEY
Visit this site https://rapidapi.com/pgamerxdev/api/random-stuff-api/
Register an account at Rapid Api.
You will be able to find your key here.
At line 8, replace "Your Rapid Api Key" with your RAPID API Key.
After applying these changes,
Run the bot and the bot should be running!