33 lines
679 B
C++
33 lines
679 B
C++
#pragma once
|
|
|
|
#include "SearchCommand.hpp"
|
|
|
|
namespace Echoion::Core
|
|
{
|
|
|
|
// !youtube / !yb — search YouTube only.
|
|
class YoutubeSearchCommand : public SearchCommandBase
|
|
{
|
|
public:
|
|
|
|
std::string_view getDescription() const override
|
|
{
|
|
return "Search YouTube only for tracks.";
|
|
}
|
|
std::string_view getUsage() const override { return "<query>"; }
|
|
std::vector<std::string_view> getAliases() const override
|
|
{
|
|
return {"yb", "yt"};
|
|
}
|
|
|
|
protected:
|
|
|
|
MusicManager::SearchScope scope() const override
|
|
{
|
|
return MusicManager::SearchScope::YouTube;
|
|
}
|
|
std::string_view label() const override { return "youtube"; }
|
|
};
|
|
|
|
} // namespace Echoion::Core
|