TealDeer

slimCat commands list

Jan 24th, 2013
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 6.72 KB | None | 0 0
  1. //SYS, because FWHAT?
  2. private void ErrorCommand(IDictionary<string, object> command)
  3.         {
  4.             // for some fucktarded reason room status changes are only done through SYS
  5.             if ((command["message"] as string).IndexOf("this channel is now", StringComparison.OrdinalIgnoreCase) != -1)
  6.             {
  7.                 RoomTypeChangedCommand(command);
  8.                 return;
  9.             }
  10.  
  11.             // checks to ensure it's not a mod promote message
  12.             if ((command["message"] as string).IndexOf("has been", StringComparison.OrdinalIgnoreCase) == -1)
  13.                 _events.GetEvent<ErrorEvent>().Publish(command["message"] as string);
  14.         }
  15.  
  16.             // user commands
  17.             {"bottle", new CommandModel("bottle", "RLL", new [] {"dice"}, CommandModel.CommandTypes.SingleArgsAndChannel)},
  18.             {"handlereport", new CommandModel("handlereport", "SFC", new [] {"callid", "action"}, CommandModel.CommandTypes.TwoArgs)},
  19.             {"ignore", new CommandModel("ignore", "IGN", new [] {"character", "action"}, CommandModel.CommandTypes.TwoArgs)},
  20.             {"invite", new CommandModel("invite", "CIU", new [] {"character"}, CommandModel.CommandTypes.SingleArgsAndChannel)},
  21.             {"makeroom", new CommandModel("makeroom", "CCR", new [] {"channel"})},
  22.             {"roll", new CommandModel("roll", "RLL", new [] {"dice"}, CommandModel.CommandTypes.SingleArgsAndChannel)},
  23.             {"report", new CommandModel("report", "SFC", new [] {"name", "action"}, CommandModel.CommandTypes.TwoArgs)},
  24.             {"status", new CommandModel("status", "STA", new [] {"status", "statusmsg"}, CommandModel.CommandTypes.TwoArgs)},
  25.             {"unignore", new CommandModel("unignore", "IGN", new [] {"character", "action"}, CommandModel.CommandTypes.TwoArgs)},
  26.  
  27.             // channel moderator commands
  28.             {"ban", new CommandModel("ban", "CBU", new [] {"character"}, CommandModel.CommandTypes.SingleArgsAndChannel, CommandModel.PermissionLevel.Moderator)},
  29.             {"banlist", new CommandModel("banlist", "CBL", null, CommandModel.CommandTypes.OnlyChannel, CommandModel.PermissionLevel.Moderator)},
  30.             {"closeroom", new CommandModel("closeroom", "RST", new [] { "status" }, CommandModel.CommandTypes.OnlyChannel, CommandModel.PermissionLevel.Moderator)},
  31.             {"demote", new CommandModel("demote", "COR", new [] {"character"}, CommandModel.CommandTypes.SingleArgsAndChannel, CommandModel.PermissionLevel.Moderator)},
  32.             {"getdescription", new CommandModel("getdescription", "getdescription", null, CommandModel.CommandTypes.NoArgs, CommandModel.PermissionLevel.Moderator)},
  33.             {"kick", new CommandModel("kick", "CKU", new [] {"character"}, CommandModel.CommandTypes.SingleArgsAndChannel, CommandModel.PermissionLevel.Moderator)},
  34.             {"openroom", new CommandModel("openroom", "RST", new [] {"status"}, CommandModel.CommandTypes.OnlyChannel, CommandModel.PermissionLevel.Moderator)},
  35.             {"promote", new CommandModel("promote", "COA", new [] {"character"}, CommandModel.CommandTypes.SingleArgsAndChannel, CommandModel.PermissionLevel.Moderator)},    
  36.             {"setdescription", new CommandModel("setdescription", "CDS", new [] {"description"}, CommandModel.CommandTypes.SingleArgsAndChannel, CommandModel.PermissionLevel.Moderator)},
  37.             {"unban", new CommandModel("unban", "CUB", new [] {"character"}, CommandModel.CommandTypes.SingleArgsAndChannel, CommandModel.PermissionLevel.Moderator)},
  38.             {"setmode", new CommandModel("setmode", "RMO", new [] {"mode"}, CommandModel.CommandTypes.SingleArgsAndChannel, CommandModel.PermissionLevel.Moderator)},
  39.  
  40.             // global op commands
  41.             {"chatban", new CommandModel("chatban", "ACB", new [] {"character"}, CommandModel.CommandTypes.SingleArgsLoose, CommandModel.PermissionLevel.GlobalMod)},
  42.             {"chatkick", new CommandModel("chatkick", "KIK", new [] {"character"}, CommandModel.CommandTypes.SingleArgsLoose, CommandModel.PermissionLevel.GlobalMod)},
  43.             {"chatunban", new CommandModel("chatunban", "UBN", new [] {"character"}, CommandModel.CommandTypes.SingleArgsLoose, CommandModel.PermissionLevel.GlobalMod)},
  44.             {"reward", new CommandModel("reward", "RWD", new [] {"character"}, CommandModel.CommandTypes.SingleArgsLoose, CommandModel.PermissionLevel.GlobalMod)},
  45.             {"timeout", new CommandModel("timeout", "TMO", new [] {"character"}, CommandModel.CommandTypes.SingleArgsLoose, CommandModel.PermissionLevel.GlobalMod)},
  46.  
  47.             // admin commands
  48.             {"broadcast", new CommandModel("broadcast", "BRO", new [] {"character"}, CommandModel.CommandTypes.SingleArgsLoose, CommandModel.PermissionLevel.GlobalMod)},
  49.             {"chatdemote", new CommandModel("chatdemote", "DOP", new [] {"character"}, CommandModel.CommandTypes.SingleArgsLoose, CommandModel.PermissionLevel.GlobalMod)},
  50.             {"chatpromote", new CommandModel("chatpromote", "AOP", new [] {"character"}, CommandModel.CommandTypes.SingleArgsLoose, CommandModel.PermissionLevel.GlobalMod)},
  51.             {"makechannel", new CommandModel("makechannel", "CRC", new [] {"channel"}, CommandModel.CommandTypes.SingleArgsLoose, CommandModel.PermissionLevel.GlobalMod)},
  52.  
  53.             // command overrides
  54.             // format ->
  55.             // command to override, command parameter to override, value to override with
  56.             {"online", new CommandOverride("status", "online")},
  57.             {"busy", new CommandOverride("status", "busy")},
  58.             {"looking", new CommandOverride("status", "looking")},
  59.             {"away", new CommandOverride("status", "away")},
  60.             {"dnd", new CommandOverride("status", "dnd")},
  61.             {"ignore", new CommandOverride("action", "add")},
  62.             {"unignore", new CommandOverride("action", "delete")},
  63.             {"openroom", new CommandOverride("status", "public")},
  64.             {"closeroom", new CommandOverride("status", "private")},
  65.             {"bottle", new CommandOverride("dice", "bottle")},
  66.             {"report", new CommandOverride("action", "report")},
  67.             {"handlereport", new CommandOverride("action", "confirm")},
  68. // client-only commands
  69.             {ClientSendTypingStatus, new CommandModel(ClientSendTypingStatus, "TPN", new [] {"status", "character"}, CommandModel.CommandTypes.TwoArgs)},
  70.             {ClientSendPM, new CommandModel(ClientSendPM, "PRI", new [] {"message", "recipient"}, CommandModel.CommandTypes.TwoArgs)},
  71.             {ClientSendChannelMessage, new CommandModel(ClientSendChannelMessage, "MSG", new [] {"message"}, CommandModel.CommandTypes.SingleArgsAndChannel)},
  72.             {ClientSendChannelAd, new CommandModel(ClientSendChannelAd, "LRP", new [] {"message"}, CommandModel.CommandTypes.SingleArgsAndChannel)},
Advertisement
Add Comment
Please, Sign In to add comment