private static void HandleTelegramSlashTrigger(string message) { // Send the trigger to irc without username because we may want to activate a trigger on another bot _ircClient.Write(ClientConnectionSettings.IRC_CHANNEL, message); try //In case we error trying to parse input from telegram { string[] splitString = message.Split(' '); switch (splitString[0]) { case "/names": _ircClient.GetNames(ClientConnectionSettings.IRC_CHANNEL); break; case "/blockurls": case "/urlblock": case "/blockurlsfrom": Thread blockNameThread = new Thread(() => HandleTelegramUserUrlBlockTrigger(splitString)); blockNameThread.Start(); break; case "/addcensor": case "/censor": case "/censorword": Thread censorThread = new Thread(() => HandleTelegramCensorTrigger(splitString)); censorThread.Start(); break; default: break; } } catch { } }