Skip to content

MaskedAlkindi/GuysGPT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GuysGPT Documentation

Creator: Hajid AlKindiii hehehe 😎


Introduction

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.


Prerequisites

  1. Python: Have Python installed (preferably Python 3.8 or above). If you haven't installed it yet, get it here.
  2. Packages: You'd need to install discord.py, python-decouple, and openai. Run:
    pip install discord.py python-decouple openai
  3. API keys:
    • Obtain your OpenAI API key from the OpenAI platform.
    • Obtain your Discord bot token. If you're not sure, follow this guide.

Configuration

  1. Environment Variables: Use a .env file in the root directory of your project with the following variables:
    OPENAI_API_KEY=YOUR_OPENAI_KEY
    DISCORD_BOT_TOKEN=YOUR_DISCORD_BOT_TOKEN
    
    Replace YOUR_OPENAI_KEY and YOUR_DISCORD_BOT_TOKEN with the respective values you've obtained.

Running the Bot

  1. Navigate to your project's directory.

  2. Run the bot:

    python Discordgpt.py
  3. If everything's good, you should see the message Bot is logged in as [Bot's Name] in your terminal.


Bot Commands

  • !ask [question]: Use this command to make the bot answer any question you might have. Example: !ask what is the meaning of life?

Conclusion

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.

About

Discord ChatBot that uses CHATGPT API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages