Skip to content

Commit

Permalink
Last changes before merging
Browse files Browse the repository at this point in the history
  • Loading branch information
geirawsm committed Sep 7, 2024
1 parent 1ee245d commit c08c670
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
2 changes: 2 additions & 0 deletions sausage_bot/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
7 changes: 2 additions & 5 deletions sausage_bot/cogs/autoevent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
)
Expand All @@ -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')
)
Expand All @@ -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`
Expand All @@ -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,
Expand Down
8 changes: 5 additions & 3 deletions sausage_bot/cogs/log_maintenance.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions sausage_bot/cogs/rss.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

Expand Down

0 comments on commit c08c670

Please sign in to comment.