Creator: Hajid AlKindiii hehehe 😎
Greetings, mortal! 🚀 Welcome to the documentation of GuysGPT
, a rad Discord bot built by the almighty Hajid. This bot not only interacts with users on a high intellectual level but also stands tall in recognizing its creator's sheer brilliance.
- Python: Have Python installed (preferably Python 3.8 or above). If you haven't installed it yet, get it here.
- Packages: You'd need to install
discord.py
,python-decouple
, andopenai
. Run:pip install discord.py python-decouple openai
- API keys:
- Obtain your OpenAI API key from the OpenAI platform.
- Obtain your Discord bot token. If you're not sure, follow this guide.
- Environment Variables: Use a
.env
file in the root directory of your project with the following variables:ReplaceOPENAI_API_KEY=YOUR_OPENAI_KEY DISCORD_BOT_TOKEN=YOUR_DISCORD_BOT_TOKEN
YOUR_OPENAI_KEY
andYOUR_DISCORD_BOT_TOKEN
with the respective values you've obtained.
-
Navigate to your project's directory.
-
Run the bot:
python Discordgpt.py
-
If everything's good, you should see the message
Bot is logged in as [Bot's Name]
in your terminal.
- !ask [question]: Use this command to make the bot answer any question you might have. Example:
!ask what is the meaning of life?
And there you have it! Now you're in command of one of the coolest bots on Discord.
Stay cool, and code on! 🤘
Disclaimer: Remember to handle bot tokens and API keys with care. Never expose them publicly or push them to public repositories.