Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 962 Bytes

README.md

File metadata and controls

18 lines (14 loc) · 962 Bytes

Usage

Discord Bot Setup

  1. Go to the Discord Developer Portal.
  2. Create a new application with some name
  3. After creating the application, go to the bot tab, and choose 'Add Bot'
  4. Keep a copy of the shown bot token. (This will go inside keys.json)
  5. Ensure the Message Content Intent is selected.
  6. Replace {CLIENT_ID_GOES_HERE} with the shown application id in the url https://discord.com/api/oauth2/authorize?permissions=16851968&scope=bot%20applications.commands&client_id={CLIENT_ID_GOES_HERE}
  7. Use the link to invite the bot to a server.

Running the bot

  1. Place OpenAI API key and Discord bot token in keys.json (using keys.json.example as a template).
  2. Install dependencies using Poetry: poetry install
  3. Run poetry run python -m bot.main