Question:
I’m having trouble because I am following this video how to create simple Discord Chat GPT using Pythom, after trying to test it on the Discord channel I get a error.
Repl link/Link to where the bug appears:
Screenshots, links, or other helpful context:
Tutorial Video: https://youtu.be/DKej1IGsyRE?t=260
main.py
import discordgpt
discordgpt.DiscordGPT("[Redacted]", "[Redacted]", channel_id="1139865887344697444")
Console
New question from johnnysinshitman: Test
Task exception was never retrieved
future: <Task finished name='discord.py: on_message' coro=<Client._run_event() done, defined at /home/runner/Discord-GPT/venv/lib/python3.10/site-packages/discord/client.py:433> exception=GPTError('on_message')>
Traceback (most recent call last):
File "/home/runner/Discord-GPT/venv/lib/python3.10/site-packages/discord/client.py", line 441, in _run_event
await coro(*args, **kwargs)
File "/home/runner/Discord-GPT/venv/lib/python3.10/site-packages/discordgpt/__init__.py", line 70, in on_message
await self.new_question(message_)
File "/home/runner/Discord-GPT/venv/lib/python3.10/site-packages/discordgpt/__init__.py", line 83, in new_question
resp = self.get_response(message)
File "/home/runner/Discord-GPT/venv/lib/python3.10/site-packages/discordgpt/__init__.py", line 94, in get_response
except Exception as e: raise GPTError(e) from None
discordgpt.GPTError: You exceeded your current quota, please check your plan and billing details.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/runner/Discord-GPT/venv/lib/python3.10/site-packages/discord/client.py", line 446, in _run_event
await self.on_error(event_name, *args, **kwargs)
File "/home/runner/Discord-GPT/venv/lib/python3.10/site-packages/discordgpt/__init__.py", line 60, in on_error
raise GPTError(args[0])
discordgpt.GPTError: on_message