Files
faumaray d146f11f02 Release 1.0.0
Signed-off-by: faumaray <faumaray@gmail.com>
2026-07-04 01:49:28 +03:00

36 lines
703 B
C++

#pragma once
#include "PlayCommand.hpp"
namespace Echoion::Core
{
// !pyt / !playyt — play from YouTube only.
class YoutubePlayCommand : public PlayCommandBase
{
public:
std::string_view getDescription() const override
{
return "Plays from YouTube only (URL or search).";
}
std::string_view getUsage() const override
{
return "<url or search query>";
}
std::vector<std::string_view> getAliases() const override
{
return {"playyt"};
}
protected:
MusicManager::SearchScope scope() const override
{
return MusicManager::SearchScope::YouTube;
}
std::string_view label() const override { return "pyt"; }
};
} // namespace Echoion::Core