From 05c428bcc905003d7f8100aefcf6c312d02bed44 Mon Sep 17 00:00:00 2001 From: Interitio Date: Thu, 30 Jul 2026 13:40:09 +0300 Subject: [PATCH] fix(twitch): Converter on campaign reward cmd --- plugin/twitch/component.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugin/twitch/component.py b/plugin/twitch/component.py index 647ee86..16584dc 100644 --- a/plugin/twitch/component.py +++ b/plugin/twitch/component.py @@ -85,6 +85,9 @@ class CampaignComponent(cmds.Component): @cmds.Component.listener() async def event_message(self, payload): + if not payload.text.startswith("%reward%"): + return + community = await self.bot.profiles.fetch_community(payload.broadcaster) cid = community.communityid profile = await self.bot.profiles.fetch_profile(payload.chatter) @@ -274,7 +277,7 @@ class CampaignComponent(cmds.Component): async def cmd_campaign_reward( self, ctx: cmds.Context, - user: twitchio.PartialUser, + user: twitchio.User, reward_reason: str, ): """Manually reward a target user, adjusting their points."""