Comments (4)
Can you specify this further? I get no errors with the code.
from loot-bot.
Think I have a similar error, when running "docker run -it twitch_prime_bot", the terminal display the following error:
Traceback (most recent call last):
File "//discord_bot.py", line 55, in
client = TwitchLootBot()
TypeError: Client.init() missing 1 required keyword-only argument: 'intents'
from loot-bot.
I see the problem. Running the bot without docker works fine, but Intents are needed with docker. That's some change in the API that happened.
To solve some Intents have to be added to line 55 in /bot/discord_bot.py
and also to the application settings of the bot on the discord developer website. It goes something like this:
client = TwitchLootBot(intents=discord.Intents().all())
I have not yet had the time to figure it out and fix the problem. The bot should also not need all intents, only read-chat and write-chat.
from loot-bot.
The file "discord_bot.py" in the Folder "Loot-Bot-Main/bot"
I changed this (start line 55 at the bottom):
client = TwitchLootBot()
client.run(TOKEN)
To this:
intents = discord.Intents.default()
intents.message_content = True
client = TwitchLootBot(intents=intents)
client.run(TOKEN)
It's running for me. I had to set the Privileged Gateway Intents to "ON" in the Discord applications for the bot before I ran this.
from loot-bot.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from loot-bot.