✨ Add Help command
This commit is contained in:
@@ -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__.'/../../';
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user