36 lines
731 B
C++
36 lines
731 B
C++
#pragma once
|
|
|
|
#include "PlayCommand.hpp"
|
|
|
|
namespace Echoion::Core
|
|
{
|
|
|
|
// !psc / !playsc — play from SoundCloud only (URL or search).
|
|
class SoundCloudPlayCommand : public PlayCommandBase
|
|
{
|
|
public:
|
|
|
|
std::string_view getDescription() const override
|
|
{
|
|
return "Plays from SoundCloud only (URL or search).";
|
|
}
|
|
std::string_view getUsage() const override
|
|
{
|
|
return "<url or search query>";
|
|
}
|
|
std::vector<std::string_view> getAliases() const override
|
|
{
|
|
return {"playsc"};
|
|
}
|
|
|
|
protected:
|
|
|
|
MusicManager::SearchScope scope() const override
|
|
{
|
|
return MusicManager::SearchScope::SoundCloud;
|
|
}
|
|
std::string_view label() const override { return "psc"; }
|
|
};
|
|
|
|
} // namespace Echoion::Core
|