private void SpawnWorkerTasks(CancellationToken cancellationToken, BotArguments botArguments) { SpawnTTSWorker(cancellationToken); SpawnTwitchWorker(cancellationToken, botArguments.DontConnectToTwitch); SpawnCommandWorker(cancellationToken); SpawnWebserver(cancellationToken, botArguments.IsDebug, botArguments.Port); SpawnConfigurationWatcher(cancellationToken); }
public IServerPacket ToPacket(IUser sender) { return(new BotResponsePacket(sender.UserId, BotArguments.Error(ErrorCode, Arguments))); }
public void Execute(CancellationToken cancellationToken, BotArguments botArguments) { SpawnWorkerTasks(cancellationToken, botArguments); }