Skip to content

Commit 1f21d95

Browse files
chore(youtube): add commands descriptions
1 parent 3325064 commit 1f21d95

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

eduu/plugins/youtube.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from yt_dlp import YoutubeDL
1616

1717
from config import PREFIXES
18-
from eduu.utils import http, pretty_size
18+
from eduu.utils import commands, http, pretty_size
1919
from eduu.utils.decorators import aiowrap
2020
from eduu.utils.localization import use_chat_lang
2121

@@ -206,3 +206,7 @@ async def cli_ytdl(c: Client, cq: CallbackQuery, strings):
206206
await cq.message.delete()
207207

208208
shutil.rmtree(tempdir, ignore_errors=True)
209+
210+
211+
commands.add_command("yt", "tools")
212+
commands.add_command("ytdl", "tools")

locales/en-GB/youtube.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
2+
"cmd_yt_description": "Searches YouTube for the given query.",
3+
"cmd_ytdl_description": "Downloads a YouTube video or audio from the given name or URL.",
24
"ytdl_sending": "Sending…",
35
"ytdl_missing_argument": "Please reply to a YouTube link or text.",
46
"ytdl_audio_button": "💿 Audio",

0 commit comments

Comments
 (0)