|
12 | 12 | from bs4 import BeautifulSoup |
13 | 13 | from discord.ext import commands |
14 | 14 | from loguru import logger |
| 15 | + |
| 16 | +from modules import emojis, exceptions, util |
15 | 17 | from modules.media_embedders import ( |
16 | 18 | BaseEmbedder, |
17 | 19 | InstagramEmbedder, |
|
21 | 23 | ) |
22 | 24 | from modules.misobot import MisoBot |
23 | 25 |
|
24 | | -from modules import emojis, exceptions, util |
25 | | - |
26 | 26 |
|
27 | 27 | class Media(commands.Cog): |
28 | 28 | """Fetch various media""" |
@@ -63,14 +63,18 @@ async def youtube(self, ctx: commands.Context, *, query): |
63 | 63 | ) |
64 | 64 |
|
65 | 65 | @util.patrons_only() |
66 | | - @commands.group() |
| 66 | + @commands.group(usage="<instagram | tiktok | reddit>") |
67 | 67 | async def autoembedder( |
68 | | - self, ctx: commands.Context, provider: Literal["instagram", "tiktok"] |
| 68 | + self, ctx: commands.Context, provider: Literal["instagram", "tiktok", "reddit"] |
69 | 69 | ): |
70 | 70 | """Set up automatic embeds for various media sources |
71 | 71 |
|
72 | 72 | The links will be expanded automatically when detected in chat, |
73 | | - without requiring the use of the corresponding command |
| 73 | + without requiring the use of the corresponding command. |
| 74 | +
|
| 75 | + Supported providers: `instagram`, `tiktok`, `reddit` |
| 76 | +
|
| 77 | + Example: >autoembedder tiktok toggle |
74 | 78 | """ |
75 | 79 | if ctx.guild is None: |
76 | 80 | raise exceptions.CommandError("Unable to get current guild") |
|
0 commit comments