generated from HoloTech/holotech-plugin-template
fix(channel): Use correct channel name
This commit is contained in:
@@ -24,7 +24,7 @@ class CampaignComponent(cmds.Component):
|
|||||||
self.campaigns = CampaignRegistry(self.data)
|
self.campaigns = CampaignRegistry(self.data)
|
||||||
self.channel = CampaignChannel(self.bot.profiles.profiles, self.campaigns)
|
self.channel = CampaignChannel(self.bot.profiles.profiles, self.campaigns)
|
||||||
|
|
||||||
register_channel("Campaign", self.channel)
|
register_channel(self.channel.name, self.channel)
|
||||||
|
|
||||||
# ----- API -----
|
# ----- API -----
|
||||||
async def component_load(self):
|
async def component_load(self):
|
||||||
@@ -278,6 +278,7 @@ class CampaignComponent(cmds.Component):
|
|||||||
self,
|
self,
|
||||||
ctx: cmds.Context,
|
ctx: cmds.Context,
|
||||||
user: twitchio.User,
|
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