mirror of
https://github.com/artiemis/artemis.git
synced 2026-02-14 08:31:55 +00:00
user-installable apps
This commit is contained in:
parent
401d89e0fd
commit
d64d29104b
@ -89,6 +89,8 @@ async def get_deepl_languages():
|
|||||||
|
|
||||||
# Translation slash commands
|
# Translation slash commands
|
||||||
@app_commands.context_menu(name="Translate (DeepL)")
|
@app_commands.context_menu(name="Translate (DeepL)")
|
||||||
|
@app_commands.allowed_installs(guilds=False, users=True)
|
||||||
|
@app_commands.allowed_contexts(guilds=True, dms=True, private_channels=True)
|
||||||
async def deepl_slash(interaction: discord.Interaction, message: discord.Message):
|
async def deepl_slash(interaction: discord.Interaction, message: discord.Message):
|
||||||
await interaction.response.defer(ephemeral=True)
|
await interaction.response.defer(ephemeral=True)
|
||||||
|
|
||||||
@ -123,6 +125,8 @@ async def deepl_slash(interaction: discord.Interaction, message: discord.Message
|
|||||||
|
|
||||||
|
|
||||||
@app_commands.context_menu(name="Translate (Google)")
|
@app_commands.context_menu(name="Translate (Google)")
|
||||||
|
@app_commands.allowed_installs(guilds=False, users=True)
|
||||||
|
@app_commands.allowed_contexts(guilds=True, dms=True, private_channels=True)
|
||||||
async def gt_slash(interaction: discord.Interaction, message: discord.Message):
|
async def gt_slash(interaction: discord.Interaction, message: discord.Message):
|
||||||
await interaction.response.defer(ephemeral=True)
|
await interaction.response.defer(ephemeral=True)
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
wheel
|
wheel
|
||||||
aiocache
|
aiocache
|
||||||
aiosqlite
|
aiosqlite
|
||||||
discord.py
|
discord.py[voice]@git+https://github.com/rapptz/discord.py
|
||||||
PyNaCl>=1.3.0,<1.5
|
PyNaCl>=1.3.0,<1.5
|
||||||
beautifulsoup4
|
beautifulsoup4
|
||||||
black
|
black
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user