Using Serilog. Added partial OBS batch request support. Added update checking. Added more commands. Added enabled/disabled TTS voices. And more.
This commit is contained in:
26
Chat/Commands/VersionCommand.cs
Normal file
26
Chat/Commands/VersionCommand.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
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;
|
||||
}
|
||||
|
||||
public override async Task<bool> CheckPermissions(ChatMessage message, long broadcasterId)
|
||||
{
|
||||
return message.IsBroadcaster;
|
||||
}
|
||||
|
||||
public override async Task Execute(IList<string> args, ChatMessage message, long broadcasterId)
|
||||
{
|
||||
_logger.Information($"Version: {TTS.MAJOR_VERSION}.{TTS.MINOR_VERSION}");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user