fix: Many typos

This commit is contained in:
2026-07-30 09:45:03 +03:00
parent 0923f32a82
commit a18885511a
6 changed files with 49 additions and 24 deletions
+5 -3
View File
@@ -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)