generated from HoloTech/holotech-plugin-template
fix(twitch): Converter on campaign reward cmd
This commit is contained in:
@@ -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."""
|
||||
|
||||
Reference in New Issue
Block a user