public Portal() { this.GameTimingMethod = GameTimingMethod.EngineTicksWithPauses; this.AddFirstMap("testchmb_a_00"); this.AddLastMap("escape_02"); this.RequiredProperties = PlayerProperties.Position | PlayerProperties.ViewEntity; this.AdditionalGameSupport.Add(new PortalMods_TheFlashVersion()); _ccHandler = new CustomCommandHandler(_newStart, _elevSplit, _deathSplit); }
public BMSRetail() { this.GameTimingMethod = GameTimingMethod.EngineTicksWithPauses; this.StartOnFirstLoadMaps.Add("bm_c1a0a"); this.AddFirstMap("bm_c1a0a"); this.AddLastMap("bm_c4a4a"); this.RequiredProperties = PlayerProperties.ViewEntity; this.AdditionalGameSupport.AddRange(new GameSupport[] { _hazardCourse, _furtherData }); _cmdHandler = new CustomCommandHandler(_xenSplitCommand, _xenStartCommand, _nihiSplitCommand, _ebEndCommand); }
public async Task MainAsync() { Logger.Info("NerdBot MainAsync() Started"); _client = new DiscordSocketClient(); _client.Log += Log; _commands = new CommandService(); _randomQuotePicker = new RandomQuotePicker(); _InStatus = new InStatus(_client); _client.MessageReceived += _randomQuotePicker.MessageReceived; if (Environment.GetEnvironmentVariable("InStatusURL") != null && Environment.GetEnvironmentVariable("InStatusURL") != "") { _client.Connected += _InStatus.ConnectEvent; _client.Disconnected += _InStatus.DisconnectEvent; } _customCommandHandler = new CustomCommandHandler(_client); _client.MessageReceived += _customCommandHandler.MessageReceived; var services = ConfigureServices(); await services.GetRequiredService <CommandHandler>().InitializeAsync(services); Logger.Info("Using Discord Token: " + Environment.GetEnvironmentVariable("DiscordToken")); Logger.Info("Logging into Discord now!"); await _client.LoginAsync(TokenType.Bot, Environment.GetEnvironmentVariable("DiscordToken")); await _client.StartAsync(); // Block this task until the program is closed. await Task.Delay(-1); }
public CustomCommand(CustomCommandHandler customCommandHandler) { CustomCommandHandler = customCommandHandler; }
public Synergy() { this.GameTimingMethod = GameTimingMethod.EngineTicksWithPauses; _cmdHandler = new CustomCommandHandler(_autosplitIL); this.AdditionalGameSupport.AddRange(new GameSupport[] { _hl2, _ep1, _ep2 }); }
public TheStanleyParable() { this.GameTimingMethod = GameTimingMethod.EngineTicksWithPauses; this.RequiredProperties = PlayerProperties.ViewEntity | PlayerProperties.Position | PlayerProperties.ParentEntity; _ccHandler = new CustomCommandHandler(_noSpaceEnd); }