✨ Add Help command

This commit is contained in:
Shikiryu committed 2024-08-07 17:05:07 +02:00
1 parent 60f18f2f76
commit 1aa26c836a
6 files changed
+66 -16

No files matched your search

+5 -1
View File
@@ -49,6 +49,11 @@ class Youtubedl implements Icommands
return 'Youtubedl wrapper';
}
public static function getPattern(): string
{
return '(convertis|télécharges?) (https?:\/\/[^\s]+) en (audio|video|vidéo)';
}
private static function getYoutubeDl(Bot $bot): string
{
$youtubedl_bin = $bot->getConfig()['youtube-dl']['bin'];
@@ -64,5 +69,4 @@ class Youtubedl implements Icommands
{
return $bot->getConfig()['youtube-dl']['download_folder'] ?? __DIR__.'/../../';
}
}