Go to file
2023-03-30 17:33:58 +02:00
fjerkroa_bot Convert markdown links to just links. 2023-03-30 17:33:58 +02:00
tests Convert markdown links to just links. 2023-03-30 17:33:58 +02:00
.flake8 Split AI and main tests, implement first AI test. 2023-03-22 18:05:45 +01:00
.gitignore Initial commit. 2023-03-21 18:25:14 +01:00
.pre-commit-config.yaml Switch to TOML for config file, fix bugs. 2023-03-22 21:37:33 +01:00
config.toml Switch to TOML for config file, fix bugs. 2023-03-22 21:37:33 +01:00
mypy.ini Initial commit. 2023-03-21 18:25:14 +01:00
pyproject.toml Parse response values, when they are JSON. 2023-03-30 15:38:42 +02:00
pytest.ini pytest.ini 2023-03-22 11:10:21 +01:00
README.md Initial commit. 2023-03-21 18:25:14 +01:00
requirements.txt Improve JSON parsing. 2023-03-29 19:22:54 +02:00
setup.py Initial commit. 2023-03-21 18:25:14 +01:00
setupenv.sh Begin to add tests for AIResponder. 2023-03-22 17:29:14 +01:00

Fjerkroa bot

A simple Discord bot that uses OpenAI's GPT to chat with users.

Installation

  1. Install the package using pip:
pip install fjerkroa-bot
  1. Create a bot.py file with the following content, replacing the tokens with your own:
from discord_gpt_bot import main

main.DISCORD_BOT_TOKEN = "your_discord_bot_token"
main.OPENAI_API_KEY = "your_openai_api_key"

main.run_bot()
  1. Run the bot:
python bot.py