2024-06-16 20:19:31 -04:00
|
|
|
using Serilog;
|
|
|
|
using TwitchLib.Client.Models;
|
|
|
|
|
|
|
|
namespace TwitchChatTTS.Chat.Commands
|
|
|
|
{
|
|
|
|
public class VersionCommand : ChatCommand
|
|
|
|
{
|
|
|
|
private ILogger _logger;
|
|
|
|
|
|
|
|
public VersionCommand(ILogger logger)
|
|
|
|
: base("version", "Does nothing.")
|
|
|
|
{
|
|
|
|
_logger = logger;
|
|
|
|
}
|
|
|
|
|
2024-07-12 13:36:09 -04:00
|
|
|
public override async Task<bool> CheckDefaultPermissions(ChatMessage message, long broadcasterId)
|
2024-06-16 20:19:31 -04:00
|
|
|
{
|
|
|
|
return message.IsBroadcaster;
|
|
|
|
}
|
|
|
|
|
|
|
|
public override async Task Execute(IList<string> args, ChatMessage message, long broadcasterId)
|
|
|
|
{
|
|
|
|
_logger.Information($"Version: {TTS.MAJOR_VERSION}.{TTS.MINOR_VERSION}");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|