Runtime error: Event loop is running
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I get the following error when I call the function send_message . Exception in thread Thread-1: Traceback (most recent call last): File "/usr/lib/python3.4/threading.py", line 920, in _bootstrap_inner self.run() File "/usr/lib/python3.4/threading.py", line 868, in run self._target(*self._args, **self._kwargs) File "/home/joffe/Documents/discord/irc/ircbot.py", line 44, in get_message mydiscord.send_message(line[1]) File "/home/joffe/Documents/discord/irc/mydiscord.py", line 37, in send_message client.loop.run_until_complete(client.send