diff --git a/sausage_bot/__main__.py b/sausage_bot/__main__.py index 70a19bc..4851ea8 100755 --- a/sausage_bot/__main__.py +++ b/sausage_bot/__main__.py @@ -483,7 +483,9 @@ async def language( interaction: discord.Interaction, language: str ): await interaction.response.defer(ephemeral=True) + log.verbose(f'Setting language to {language}') await set_language(language) + log.verbose('Syncing commands') await config.bot.tree.sync() await interaction.followup.send( I18N.t( diff --git a/sausage_bot/cogs/autoevent.py b/sausage_bot/cogs/autoevent.py index 8ac2548..be0a346 100755 --- a/sausage_bot/cogs/autoevent.py +++ b/sausage_bot/cogs/autoevent.py @@ -207,7 +207,6 @@ async def event_remove( # Delete event _event = _guild.get_scheduled_event(int(_id)) await _event.delete() - # TODO var msg await interaction.followup.send( I18N.t('autoevent.commands.remove.msg_all_confirm') ) @@ -216,7 +215,6 @@ async def event_remove( # Delete event _event = _guild.get_scheduled_event(int(event)) await _event.delete() - # TODO var msg await interaction.followup.send( I18N.t('autoevent.commands.remove.msg_one_confirm') ) @@ -236,7 +234,6 @@ async def event_remove( I18N.t('autoevent.commands.list.cmd') ) ) - @describe() async def list_events(self, interaction: discord.Interaction): ''' Lists all the planned events: `!autoevent list` @@ -261,8 +258,8 @@ async def list_events(self, interaction: discord.Interaction): ) ) @describe( - I18N.t('autoevent.commands.sync.desc.sync_time'), - I18N.t('autoevent.commands.sync.desc.countdown') + sync_time=I18N.t('autoevent.commands.sync.desc.sync_time'), + countdown=I18N.t('autoevent.commands.sync.desc.countdown') ) async def event_sync( self, interaction: discord.Interaction, sync_time: str, diff --git a/sausage_bot/cogs/log_maintenance.py b/sausage_bot/cogs/log_maintenance.py index 1237359..8c5448e 100755 --- a/sausage_bot/cogs/log_maintenance.py +++ b/sausage_bot/cogs/log_maintenance.py @@ -3,7 +3,7 @@ import os import discord from discord.ext import commands, tasks -from discord.app_commands import locale_str +from discord.app_commands import locale_str, describe from tabulate import tabulate from sausage_bot.util import envs, file_io @@ -144,8 +144,10 @@ async def list_settings( ) ) @describe( - I18N.t('log_maintenance.commands.setting.desc.name_of_setting'), - I18N.t('log_maintenance.commands.setting.desc.value_in') + name_of_setting=I18N.t( + 'log_maintenance.commands.setting.desc.name_of_setting' + ), + value_in=I18N.t('log_maintenance.commands.setting.desc.value_in') ) async def log_setting( self, interaction: discord.Interaction, name_of_setting: str, diff --git a/sausage_bot/cogs/rss.py b/sausage_bot/cogs/rss.py index c50921e..d7705fc 100755 --- a/sausage_bot/cogs/rss.py +++ b/sausage_bot/cogs/rss.py @@ -76,11 +76,11 @@ def __init__(self, bot): name="rss", description=locale_str(I18N.t('rss.groups.rss')) ) rss_filter_group = discord.app_commands.Group( - name="filter", description=locate_str(I18N.t('rss.groups.filter')), + name="filter", description=locale_str(I18N.t('rss.groups.filter')), parent=rss_group ) rss_posting_group = discord.app_commands.Group( - name="posting", description=locate_str(I18N.t('rss.groups.posting')), + name="posting", description=locale_str(I18N.t('rss.groups.posting')), parent=rss_group )