Discord bot无法连接到语音或将命令用作exe文件

时间:2020-09-10 22:53:06

标签: python discord bots

所以我的程序可以按预期的方式作为.py文件工作,但是一旦我使用pyinstaller将其编译为exe文件,就会收到此错误。我该如何解决?

Traceback (most recent call last):
  File "site-packages\discord\client.py", line 312, in _run_event
  File "AmongUsBot.py", line 66, in on_message
    i = await found.connect(reconnect=True)
  File "site-packages\discord\abc.py", line 1097, in connect
  File "site-packages\discord\voice_client.py", line 90, in __init__
RuntimeError: PyNaCl library needed in order to use voice

1 个答案:

答案 0 :(得分:0)

当错误消息在最后一行指出时,您将需要安装PyNaCl library才能使用语音。

https://pypi.org/project/PyNaCl/