mishl-dev / Discord-AI-Chatbot

This Discord chatbot is incredibly versatile. Powered incredibly fast Groq API
GNU Affero General Public License v3.0
1.32k stars 417 forks source link

Fix KeyError: 'DEFAULT_INSTRUCTIONS' #257

Closed Gahtee closed 7 months ago

Gahtee commented 7 months ago

The presence of additional 'S' characters prevents correct reading of configurations

Gahtee commented 7 months ago

the PR solves the following error

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/discord/client.py", line 441, in _run_event
    await coro(*args, **kwargs)
  File "/home/ubuntu/Discord-AI-Chatbot/cogs/event_cogs/on_message.py", line 44, in on_message
    instruc_config = config['DEFAULT_INSTRUCTIONS']
KeyError: 'DEFAULT_INSTRUCTIONS'
mishl-dev commented 7 months ago

My bad