Exemple #1
0
 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)));
 }
Exemple #3
0
 public void Execute(CancellationToken cancellationToken, BotArguments botArguments)
 {
     SpawnWorkerTasks(cancellationToken, botArguments);
 }