Allow Löh to move himself to his channel
This commit is contained in:
7
bot.py
7
bot.py
@@ -443,7 +443,7 @@ async def flip_pipelin_slash(ctx: SlashContext):
|
|||||||
guild_ids=slash_guild_ids
|
guild_ids=slash_guild_ids
|
||||||
)
|
)
|
||||||
@slash.permission(
|
@slash.permission(
|
||||||
guild_id = INF19X_GUILD_ID,
|
guild_id=INF19X_GUILD_ID,
|
||||||
permissions=[
|
permissions=[
|
||||||
create_permission(LOEH_ID, SlashCommandPermissionType.USER, permission=True),
|
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)
|
await ctx.send("This command is not available in this guild", hidden=True)
|
||||||
return
|
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)
|
loeh = await _get_loeh(ctx.guild)
|
||||||
if loeh is None:
|
if loeh is None:
|
||||||
await ctx.send("404 - Löh not found", hidden=True)
|
await ctx.send("404 - Löh not found", hidden=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user