xNul / chat-llama-discord-bot

A Discord Bot for chatting with LLaMA, Vicuna, Alpaca, MPT, or any other Large Language Model (LLM) supported by text-generation-webui or llama.cpp.
https://discord.gg/TcRGDV754Y
MIT License
118 stars 23 forks source link

I get an errro while starting the bot, related to teh actual bot, not sure how to fix it, permission problems I think #14

Closed juangea closed 1 year ago

juangea commented 1 year ago

This is the error:

Traceback (most recent call last): File "D:\AI\oobabooga\oobabooga_windows\text-generation-webui\bot.py", line 400, in client.run(bot_args.token if bot_args.token else TOKEN, root_logger=True) File "D:\AI\oobabooga\oobabooga_windows\installer_files\env\lib\site-packages\discord\client.py", line 860, in run asyncio.run(runner()) File "D:\AI\oobabooga\oobabooga_windows\installer_files\env\lib\asyncio\runners.py", line 44, in run return loop.run_until_complete(main) File "D:\AI\oobabooga\oobabooga_windows\installer_files\env\lib\asyncio\base_events.py", line 649, in run_until_complete return future.result() File "D:\AI\oobabooga\oobabooga_windows\installer_files\env\lib\site-packages\discord\client.py", line 849, in runner await self.start(token, reconnect=reconnect) File "D:\AI\oobabooga\oobabooga_windows\installer_files\env\lib\site-packages\discord\client.py", line 778, in start await self.connect(reconnect=reconnect) File "D:\AI\oobabooga\oobabooga_windows\installer_files\env\lib\site-packages\discord\client.py", line 704, in connect raise PrivilegedIntentsRequired(exc.shard_id) from None discord.errors.PrivilegedIntentsRequired: Shard ID None is requesting privileged intents that have not been explicitly enabled in the developer portal. It is recommended to go to https://discord.com/developers/applications/ and explicitly enable the privileged intents within your application's page. If this is not possible, then consider disabling the privileged intents instead.

xNul commented 1 year ago

@juangea looks like you haven't given enough permissions for the bot to work.Try enabling the privileged intents permissions for your bot token

juangea commented 1 year ago

Yeah, that was the problem, I was coming to say so when I saw your answer, thanks!