generated from HoloTech/holotech-plugin-template
feat: Add delreward command.
This commit is contained in:
@@ -131,7 +131,6 @@ class CampaignComponent(cmds.Component):
|
||||
|
||||
# ------ Commands -----
|
||||
@cmds.group(name="campaign", invoke_fallback=True)
|
||||
@cmds.is_moderator()
|
||||
async def group_campaign(self, ctx: cmds.Context, name: Optional[str] = None):
|
||||
"""Status of the current or named campaign."""
|
||||
community = await self.bot.profiles.fetch_community(ctx.broadcaster)
|
||||
@@ -174,6 +173,7 @@ class CampaignComponent(cmds.Component):
|
||||
cap=reward_cap,
|
||||
)
|
||||
await ctx.reply(formatted)
|
||||
await self.dispatch_update(campaign)
|
||||
|
||||
@group_campaign.command(name="setup", aliases=["start"])
|
||||
@cmds.is_moderator()
|
||||
|
||||
Reference in New Issue
Block a user