generated from HoloTech/holotech-plugin-template
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 300f712bfd | |||
| 05c428bcc9 |
@@ -85,6 +85,9 @@ class CampaignComponent(cmds.Component):
|
|||||||
|
|
||||||
@cmds.Component.listener()
|
@cmds.Component.listener()
|
||||||
async def event_message(self, payload):
|
async def event_message(self, payload):
|
||||||
|
if not payload.text.startswith("%reward%"):
|
||||||
|
return
|
||||||
|
|
||||||
community = await self.bot.profiles.fetch_community(payload.broadcaster)
|
community = await self.bot.profiles.fetch_community(payload.broadcaster)
|
||||||
cid = community.communityid
|
cid = community.communityid
|
||||||
profile = await self.bot.profiles.fetch_profile(payload.chatter)
|
profile = await self.bot.profiles.fetch_profile(payload.chatter)
|
||||||
@@ -274,7 +277,7 @@ class CampaignComponent(cmds.Component):
|
|||||||
async def cmd_campaign_reward(
|
async def cmd_campaign_reward(
|
||||||
self,
|
self,
|
||||||
ctx: cmds.Context,
|
ctx: cmds.Context,
|
||||||
user: twitchio.PartialUser,
|
user: twitchio.User,
|
||||||
reward_reason: str,
|
reward_reason: str,
|
||||||
):
|
):
|
||||||
"""Manually reward a target user, adjusting their points."""
|
"""Manually reward a target user, adjusting their points."""
|
||||||
|
|||||||
Reference in New Issue
Block a user