public CommandHandler() { LinkExpander = new LinkExpander(); PubFileHandler = new PubFileCommand(); RegisteredCommands = new List<Command> { new BlogCommand(), new PlayersCommand(), new AppCommand(), new PackageCommand(), new SteamIDCommand(), new GIDCommand(), PubFileHandler, new UGCCommand(), new EnumCommand(), new ServersCommand(), new BinariesCommand(), new ImportantCommand(), new ReloginCommand(), }; // Register help command last so we can pass the list of the commands RegisteredCommands.Add(new HelpCommand(RegisteredCommands)); Log.WriteInfo("CommandHandler", "Registered {0} commands", RegisteredCommands.Count); }
public CommandHandler() { LinkExpander = new LinkExpander(); PubFileHandler = new PubFileCommand(); RegisteredCommands = new List <Command> { new BlogCommand(), new PlayersCommand(), new AppCommand(), new PackageCommand(), new SteamIDCommand(), new GIDCommand(), PubFileHandler, new UGCCommand(), new EnumCommand(), new ServersCommand(), new BinariesCommand(), new ImportantCommand(), new ReloginCommand(), }; // Register help command last so we can pass the list of the commands RegisteredCommands.Add(new HelpCommand(RegisteredCommands)); Log.WriteInfo("CommandHandler", "Registered {0} commands", RegisteredCommands.Count); }
private void PrintLinux() { var name = Steam.GetAppName(AppID, out var appType); if (appType != "Game" && appType != "Application") { return; } IRC.Instance.SendSteamLUG(string.Format( "[oslist][{0}] {1} now lists Linux{2} - {3} - https://store.steampowered.com/app/{4}/", appType, name, LinkExpander.GetFormattedPrices(AppID), SteamDB.GetAppURL(AppID, "history"), AppID )); }
private void PrintLinux() { var name = Steam.GetAppName(AppID, out var appType); if (appType != "Game" && appType != "Application") { return; } if (!Settings.Current.CanQueryStore) { return; } IRC.Instance.SendLinuxAnnouncement($"\U0001F427 {name} now lists Linux{LinkExpander.GetFormattedPrices(AppID)} - {SteamDB.GetAppURL(AppID, "history")} - https://store.steampowered.com/app/{AppID}/"); }
public CommandHandler() { LinkExpander = new LinkExpander(); PubFileHandler = new PubFileCommand(); RegisteredCommands = new List <Command> { new BlogCommand(), new PlayersCommand(), new AppCommand(), new PackageCommand(), new SteamIDCommand(), new GIDCommand(), PubFileHandler, new UGCCommand(), new EnumCommand(), new ServersCommand(), new BinariesCommand(), new ImportantCommand(), new ReloginCommand(), }; if (Settings.Current.CanQueryStore) { RegisteredCommands.Add(new QueueCommand()); RegisteredCommands.Add(new KeyCommand()); } // Register help command last so we can pass the list of the commands RegisteredCommands.Add(new HelpCommand(RegisteredCommands)); DiscordRelayMessageRegex = new Regex( "^<(?<name>.+?)\x03> (?<message>.+)$", RegexOptions.Compiled | RegexOptions.CultureInvariant | RegexOptions.ExplicitCapture ); Log.WriteInfo("CommandHandler", "Registered {0} commands", RegisteredCommands.Count); }
private void PrintLinux() { string appType; var name = Steam.GetAppName(AppID, out appType); if (appType != "Game" && appType != "Application") { return; } IRC.Instance.SendSteamLUG(string.Format("[oslist][{0}] {1} now lists Linux{2} - {3}", appType, name, LinkExpander.GetFormattedPrices(AppID), SteamDB.GetAppURL(AppID, "history"))); }