Skip to content

Commit 7f618d0

Browse files
author
karel26
committed
CHANGES:
- Autocompletion for fog_animation added - Upload of presets*.yaml added
1 parent 0243169 commit 7f618d0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

plugins/admin/commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,7 @@ async def on_message(self, message: discord.Message):
960960
return
961961
att = message.attachments[0]
962962
name = att.filename[:-5]
963-
if name in ['main', 'nodes', 'presets', 'servers']:
963+
if name in ['main', 'nodes', 'servers'] or name.startswith('presets'):
964964
target_path = self.node.config_dir
965965
plugin = False
966966
elif name in ['backup', 'bot']:

plugins/mission/commands.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,7 @@ async def fog(self, interaction: discord.Interaction,
741741
@mission.command(description=_('Runs a fog animation'))
742742
@app_commands.guild_only()
743743
@utils.app_has_role('DCS Admin')
744+
@app_commands.autocomplete(presets_file=presets_autocomplete)
744745
@utils.app_has_dcs_version("2.9.10")
745746
async def fog_animation(self, interaction: discord.Interaction,
746747
server: app_commands.Transform[Server, utils.ServerTransformer(

0 commit comments

Comments
 (0)