public PointCommands(TwitchChatRoom room) : base(room) { ChatCommand.Create(room, "points", PointCommand, "View how many points you, or another user, has. !points <username>", new[] { "point", "kappas" }, false, TimeSpan.FromSeconds(30), true); ChatCommand.Create(room, "brag", BragCommand, "Shows everyone how many points you have. This costs 50 to run.", null, false, TimeSpan.FromMinutes(1), true); ChatCommand.Create(room, "leaderboard", LeaderboardCommand, "Displays the peeps with the most points.", null, false, TimeSpan.FromMinutes(2), false); ChatCommand.Create(room, "aboutpoints", AboutPointsCommand, "Displays the point units and values.", null, false, TimeSpan.FromMinutes(2), true); ChatCommand.Create(room, "givepoints", GivePointsCommand, "Gives someone points from your account.", null, false, TimeSpan.FromMinutes(2), true); ChatCommand.Create(room, "awardpoints", AwardPointsCommand, "Gives someone points from the house.", null, true, TimeSpan.FromMinutes(2), true); }
public DynamicCommands(TwitchChatRoom room) : base(room) { var commands = room.factory.GetAllCommands(room.twitchConnection); foreach (var command in commands) { ChatCommand.Create(room, command.command, ActionWithStaticData <string, TwitchUser, string> .For(DynamicCommandResponse, command.response), command.description, null, command.isModOnly, command.coolDown, false); } }
public TwitchPickANumber(TwitchChatRoom room) : base(room) { ChatCommand.Create(room, "pick", PickCommand, "Pick a number 1-10... !pick <guess> for <bet amount>.", null, false, TimeSpan.FromSeconds(10), true); }
public TwitchHoldem(TwitchChatRoom room) : base(room, typeof(HoldemStateOff)) { aboutCommand = ChatCommand.Create(room, "aboutholdem", AboutHoldem, "How to play Texas Holdem", new[] { "aboutholdem", "howtoplayholdem", "howtoplayholdem" }, false, TimeSpan.FromMinutes(2), false); cancelCommand = ChatCommand.Create(room, "cancelholdem", CancelHoldem, "Cancels/ends any current games. No money lost.", null, true, null, false); }
public StrawPollCommands(TwitchChatRoom room) : base(room) { ChatCommand.Create(room, "getvote", GetVote, "Gets a strawpoll winner", new[] { "viewpoll" }, false, TimeSpan.FromSeconds(30), false); }
public TwitchBlackjack(TwitchChatRoom room) : base(room, typeof(BJStateOff)) { ChatCommand.Create(room, "aboutbj", AboutBJ, "How to play Blackjack", new[] { "aboutblackjack", "howtoplaybj", "howtoplayblackjack" }, false, TimeSpan.FromMinutes(2), false); ChatCommand.Create(room, "cancelbj", CancelBJ, "Cancels/ends any current games. No money lost.", null, true, null, false); }
public UserAccountManagementCommands(TwitchChatRoom room) : base(room) { ChatCommand.Create(room, "setgreeting", SetGreetingCommand, "Sets the welcome greeting message", null, false, null, false); ChatCommand.Create(room, "cleargreeting", ClearGreetingCommand, "Clears your greeting message", null, false, null, false); }
public AboutCommands(TwitchChatRoom room) : base(room) { ChatCommand.Create(room, "commands", ListCommands, "Lists all active commands", null, false, null, false); }