Giter Club home page Giter Club logo

Comments (4)

Falyrion avatar Falyrion commented on June 15, 2024

Can you specify this further? I get no errors with the code.

from loot-bot.

AlexandrePereiraDaCosta avatar AlexandrePereiraDaCosta commented on June 15, 2024

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.

Falyrion avatar Falyrion commented on June 15, 2024

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.

riggerbh avatar riggerbh commented on June 15, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.