generated from HoloTech/holotech-plugin-template
fix: Many typos
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
from typing import Optional
|
||||
import asyncio
|
||||
|
||||
from aiohttp import client
|
||||
import discord
|
||||
from discord.ext import commands as cmds
|
||||
from discord import Forbidden, User, app_commands as appcmds
|
||||
@@ -193,6 +194,7 @@ class CampaignCog(LionCog):
|
||||
moderator_role_id=moderator_role.id if moderator_role else None,
|
||||
logging_webhook_url=logging_webhook,
|
||||
)
|
||||
await campaign.start()
|
||||
|
||||
# Ack creation
|
||||
# TODO: Can also show dashboard
|
||||
@@ -256,7 +258,7 @@ class CampaignCog(LionCog):
|
||||
|
||||
# If logging webhook is given, check that it works
|
||||
if logging_webhook is not None:
|
||||
webhook = ThreadedWebhook.from_url(logging_webhook)
|
||||
webhook = ThreadedWebhook.from_url(logging_webhook, client=self.bot)
|
||||
try:
|
||||
await webhook.test_webhook()
|
||||
except (discord.HTTPException, discord.Forbidden):
|
||||
@@ -276,9 +278,9 @@ class CampaignCog(LionCog):
|
||||
)
|
||||
|
||||
# Ack creation
|
||||
# TODO: Can also show dashboard
|
||||
await ctx.reply(
|
||||
f"Setup and started your reward campaign {campaign.row.campaign_name}! Good luck"
|
||||
"Updated your campaign, good luck!",
|
||||
ephemeral=True
|
||||
)
|
||||
|
||||
campaign_configure_cmd.autocomplete("campaign_name")(_campaign_acmpl)
|
||||
|
||||
Reference in New Issue
Block a user