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