public bool Equals(IBotCommand other) { if (other == null) return false; return other.GetCommand() == GetCommand(); }
public bool Equals(IBotCommand other) { if (other == null) { return(false); } return(GetCommand() == other.GetCommand()); }
/// <summary> /// Adds a new command to the bot. /// </summary> /// <param name="command"></param> private void AddCommand(IBotCommand command) { if (_commands.Contains(command)) { return; } _log.Info("Command added: " + command.GetCommand()); _commands.Add(command); }
public bool Equals(IBotCommand other) { return other.GetCommand() == GetCommand(); }
/// <summary> /// Adds a new command to the bot. /// </summary> /// <param name="command"></param> private void AddCommand(IBotCommand command) { if (_commands.Contains(command)) return; _log.Info("Command added: " + command.GetCommand()); _commands.Add(command); }
public bool Equals(IBotCommand other) { return(other.GetCommand() == GetCommand()); }