gravelBridge / AutoGPT-Discord

A plugin to enable you to control your AutoGPT instance from Discord.
MIT License
93 stars 15 forks source link

There is no current event loop in thread 'Thread-5' #7

Open Purcify92 opened 1 year ago

Purcify92 commented 1 year ago

AutoGPTDiscord - 0.1.0 - Discord plugin loaded! Exception in thread Thread-5 (run_bot): Traceback (most recent call last): File "C:\Users\hardi\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1016, in _bootstrap_inner self.run() File "C:\Users\hardi\AppData\Local\Programs\Python\Python310\lib\threading.py", line 953, in run self._target(*self._args, **self._kwargs) File "plugins\discord_plugin.zip\discord_plugin\discord_plugin.py", line 125, in run_bot File "C:\Users\hardi\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\client.py", line 217, in init asyncio.get_event_loop() if loop is None else loop File "C:\Users\hardi\AppData\Local\Programs\Python\Python310\lib\asyncio\events.py", line 656, in get_event_loop raise RuntimeError('There is no current event loop in thread %r.' RuntimeError: There is no current event loop in thread 'Thread-5 (run_bot)'.