From a65e2fe02eda28c4ad114b18caf35c0395d12901 Mon Sep 17 00:00:00 2001 From: Siphalor Date: Tue, 26 Oct 2021 18:30:35 +0200 Subject: [PATCH] =?UTF-8?q?Allow=20L=C3=B6h=20to=20move=20himself=20to=20h?= =?UTF-8?q?is=20channel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bot.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 5444462..892b9d7 100644 --- a/bot.py +++ b/bot.py @@ -443,7 +443,7 @@ async def flip_pipelin_slash(ctx: SlashContext): guild_ids=slash_guild_ids ) @slash.permission( - guild_id = INF19X_GUILD_ID, + guild_id=INF19X_GUILD_ID, permissions=[ create_permission(LOEH_ID, SlashCommandPermissionType.USER, permission=True), ], @@ -462,6 +462,11 @@ async def halloehl_slash(ctx: SlashContext, user: discord.Member): await ctx.send("This command is not available in this guild", hidden=True) return + if user.id == LOEH_ID: + await user.move_to(vc, reason="Löh returns to his home channel") + await ctx.send("done", hidden=True) + return + loeh = await _get_loeh(ctx.guild) if loeh is None: await ctx.send("404 - Löh not found", hidden=True)