Skip to content

Commit 122c7f8

Browse files
committed
feat(exts/fun): Allow user install on some of the commands
1 parent e705cc8 commit 122c7f8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/zibot/exts/fun/fun.py

+8
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ async def meme(self, ctx: Context):
7777

7878
await ctx.try_reply(embed=e)
7979

80+
@app_commands.allowed_contexts(guilds=True, dms=True, private_channels=True)
81+
@app_commands.allowed_installs(guilds=True, users=True)
8082
@app_commands.choices(args=[Choice(name=i, value=i) for i in get_args(FINDSEED_MODES)])
8183
@app_commands.rename(args="mode")
8284
@cmds.command(
@@ -386,6 +388,8 @@ async def roll(self, ctx, *args):
386388
]
387389
return await ctx.try_reply("You rolled {}".format(", ".join(results)))
388390

391+
@app_commands.allowed_contexts(guilds=True, dms=True, private_channels=True)
392+
@app_commands.allowed_installs(guilds=True, users=True)
389393
@cmds.command(
390394
name=_("clap"),
391395
aliases=("👏",),
@@ -397,6 +401,8 @@ async def roll(self, ctx, *args):
397401
async def clap(self, ctx, *, text: str = ""):
398402
return await ctx.try_reply(text.replace(" ", " 👏 ") or " 👏 ")
399403

404+
@app_commands.allowed_contexts(guilds=True, dms=True, private_channels=True)
405+
@app_commands.allowed_installs(guilds=True, users=True)
400406
@cmds.command(
401407
name=_("barter"),
402408
description=_("barter-desc"),
@@ -460,6 +466,8 @@ async def lootTableSuggestion(self, inter, choice):
460466
rps = (("Before Nerf", "before"), ("After Nerfed", "nerfed"))
461467
return [app_commands.Choice(name=i[0], value=i[1]) for i in rps]
462468

469+
@app_commands.allowed_contexts(guilds=True, dms=True, private_channels=True)
470+
@app_commands.allowed_installs(guilds=True, users=True)
463471
@cmds.command(
464472
name=_("findblock"),
465473
description=_("findblock-desc"),

0 commit comments

Comments
 (0)