Add Help command

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

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__.'/../../';
}
}