Welcome to Root Bot, your AI assistant for exploring the world of hacking, security, and privacy.
!chat [message]
: Chat with Root Bot and get answers to your questions.!shodan [query]
: Search for devices using the Shodan API.!pwned [email]
: Check if an email address has been involved in a data breach using the HIBP API.!history
: View the history of commands used with Root Bot.!help
: Display the available commands.
To use Root Bot, you need to set up your API keys:
- OpenAI API key
- Shodan API key
- HIBP API key
Here are the steps to set up the bot on Discord:
- Go to the Discord Developer Portal.
- Click the "New Application" button.
- Give your application a name and click "Create".
- In the left sidebar, click on "Bot" and then click "Add Bot".
- Customize your bot by giving it a name and profile picture if desired.
- Click the "Copy" button under "Token" to copy your bot token.
- In the code, replace the empty string in
bot.run("")
with your bot token. - In the left sidebar, click on "OAuth2".
- Under "Scopes", select "bot".
- Under "Bot Permissions", select the appropriate permissions for your bot (e.g. "Send Messages", "Read Message History", "Embed Links").
- Copy the generated URL and paste it into your browser.
- Select the server where you want to add the bot and click "Authorize".
- The bot should now be added to your server and ready to use.
- Clone the repository or download the code as a ZIP file and extract it to a directory.
- Open the directory in a command prompt or terminal.
- Install the required Python packages by running
pip install -r requirements.txt
. - Open the code in a text editor.
- Add your OpenAI and Shodan API keys in the
openai.api_key
andshodan_api_key
variables respectively. - Add your Discord bot token in the
bot.run("")
line.
- Open a command prompt or terminal in the directory where the code is located.
- Run the command
python bot.py
to start the bot. - The bot should now be online and ready to use.
To chat with the bot, type !chat
followed by your message in the Discord chat. For example:
!chat What is the capital of France?
The bot will then respond with an answer generated by GPT-3.
To search the Shodan database, type !shodan
followed by your query in the Discord chat. For example:
!shodan Apache
The bot will then return the search results.
This command allows you to check if an email address has been involved in a data breach using the HIBP API. Example usage:
!pwned example@example.com
To view your command history, type !history
in the Discord chat.