Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can't use twitch commands in chat as moderator with twitchio. #384

Closed
Xxrob22xX opened this issue Feb 22, 2023 · 6 comments
Closed

I can't use twitch commands in chat as moderator with twitchio. #384

Xxrob22xX opened this issue Feb 22, 2023 · 6 comments
Assignees
Labels
2.0 TwitchIO 2.0 IRC IRC related items. wontfix

Comments

@Xxrob22xX
Copy link

ctx.channel.send(f"/delete {ctx.id}") it doesn't work anymore, and it doesn't work with /timeout or /clear either. the bot uses my account (with full moderator permissions) but can't use any twitch commands, but I can use them. It used to work, but now it doesn't work anymore. the bot is still able to read and write in the chat.

I don't know if it's an external problem or mine.

@github-actions
Copy link

Hello! Thanks for the issue. If this is a general help question, for a faster response consider joining the official Discord Server

Else if you have an issue with the library please wait for someone to help you here.

@chillymosh
Copy link
Collaborator

chillymosh commented Feb 22, 2023

@Xxrob22xX Twitch deprecated /commands for bots and IRC in general. You now have to use the Helix endpoints to carry out these tasks.

https://dev.twitch.tv/docs/irc/chat-commands/

Chat commands through IRC have been deprecated and will no longer function on or about February 18, 2023. See the forum announcement for more details and discussion. Refer to the migration guide section below for equivalent Twitch API endpoints.

@chillymosh chillymosh self-assigned this Feb 22, 2023
@chillymosh chillymosh added wontfix IRC IRC related items. 2.0 TwitchIO 2.0 labels Feb 22, 2023
@IAmTomahawkx IAmTomahawkx pinned this issue Feb 22, 2023
@Gouvernathor
Copy link

What does that mean ? What is the class and method to send these Helix endpoints ?

@EvieePy
Copy link
Member

EvieePy commented May 21, 2023

Regarding your issue #388 (comment)

Most chat commands are associated with the User and the bot can no longer send commands via IRC/Chat.

https://twitchio.dev/en/latest/reference.html#twitchio.PartialUser.chat_announcement

@Gouvernathor
Copy link

Thanks for the info ! it's a bit weird that the token and user id must be given explicitly since we only have one of each anyway (and .send doesn't require that for example). But that's for another issue.

@IAmTomahawkx
Copy link
Member

This is not usually true. Any bot that scales beyond one streamer will have multiple tokens and user ids, and as such they need to be specified somewhere. Send does not require tokens because it doesn't make API calls. It uses the IRC connection that is already authenticated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.0 TwitchIO 2.0 IRC IRC related items. wontfix
Projects
None yet
Development

No branches or pull requests

5 participants