SleeplessOne1917/lemmy-bot

0.18.1-rc.4 Is broke the bot totally

Closed this issue · 10 comments

Pdzly commented

grafik

The Code i used:

const bot = new LemmyBot({
(VALID CODE)
})

bot.start()

The lemmy version is 0.18.1-rc.4

Is the account of your bot an admin? The error you're getting is because it's trying to do something it needs to be an admin to do but it isn't an admin.

Pdzly commented

Is the account of your bot an admin? The error you're getting is because it's trying to do something it needs to be an admin to do but it isn't an admin.

No it isnt but the only thing it is doing is starting. ( bot.start is the only thing ran )

Pdzly commented

*updated the issue to tell the lemmy version

Pdzly commented

Lmao yeah i found out its literally trying to do something admin only. I have to look into my code. Sry!

Pdzly commented

Its somewhere in the events... but i dont get it where ;(

Are some events admin only too?

Pdzly commented

Ok i found out its the comment event.
grafik

If i remove the comment event everything "works" but if i put the comment event in it throws in the error.

The function doesnt even get called because the console.log doesnt get printed in the console.

Pdzly commented

Just a side note i get now rate_limit_error, but that is because i restarted the bot too many times. Because the edit profile is now strictly rate limited. and the bot edits the bots profile to be a bot. And that has a lower ratelimit

Pdzly commented

No it wasnt comment. wth.... you probably know what it was! Please let me know what event is admin only

@Pdzly there is a list of admin only bot actions in the README.

Pdzly commented

@Pdzly there is a list of admin only bot actions in the README.

It wasnt a action it was just the event.