Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //SYS, because FWHAT?
- private void ErrorCommand(IDictionary<string, object> command)
- {
- // for some fucktarded reason room status changes are only done through SYS
- if ((command["message"] as string).IndexOf("this channel is now", StringComparison.OrdinalIgnoreCase) != -1)
- {
- RoomTypeChangedCommand(command);
- return;
- }
- // checks to ensure it's not a mod promote message
- if ((command["message"] as string).IndexOf("has been", StringComparison.OrdinalIgnoreCase) == -1)
- _events.GetEvent<ErrorEvent>().Publish(command["message"] as string);
- }
- // user commands
- {"bottle", new CommandModel("bottle", "RLL", new [] {"dice"}, CommandModel.CommandTypes.SingleArgsAndChannel)},
- {"handlereport", new CommandModel("handlereport", "SFC", new [] {"callid", "action"}, CommandModel.CommandTypes.TwoArgs)},
- {"ignore", new CommandModel("ignore", "IGN", new [] {"character", "action"}, CommandModel.CommandTypes.TwoArgs)},
- {"invite", new CommandModel("invite", "CIU", new [] {"character"}, CommandModel.CommandTypes.SingleArgsAndChannel)},
- {"makeroom", new CommandModel("makeroom", "CCR", new [] {"channel"})},
- {"roll", new CommandModel("roll", "RLL", new [] {"dice"}, CommandModel.CommandTypes.SingleArgsAndChannel)},
- {"report", new CommandModel("report", "SFC", new [] {"name", "action"}, CommandModel.CommandTypes.TwoArgs)},
- {"status", new CommandModel("status", "STA", new [] {"status", "statusmsg"}, CommandModel.CommandTypes.TwoArgs)},
- {"unignore", new CommandModel("unignore", "IGN", new [] {"character", "action"}, CommandModel.CommandTypes.TwoArgs)},
- // channel moderator commands
- {"ban", new CommandModel("ban", "CBU", new [] {"character"}, CommandModel.CommandTypes.SingleArgsAndChannel, CommandModel.PermissionLevel.Moderator)},
- {"banlist", new CommandModel("banlist", "CBL", null, CommandModel.CommandTypes.OnlyChannel, CommandModel.PermissionLevel.Moderator)},
- {"closeroom", new CommandModel("closeroom", "RST", new [] { "status" }, CommandModel.CommandTypes.OnlyChannel, CommandModel.PermissionLevel.Moderator)},
- {"demote", new CommandModel("demote", "COR", new [] {"character"}, CommandModel.CommandTypes.SingleArgsAndChannel, CommandModel.PermissionLevel.Moderator)},
- {"getdescription", new CommandModel("getdescription", "getdescription", null, CommandModel.CommandTypes.NoArgs, CommandModel.PermissionLevel.Moderator)},
- {"kick", new CommandModel("kick", "CKU", new [] {"character"}, CommandModel.CommandTypes.SingleArgsAndChannel, CommandModel.PermissionLevel.Moderator)},
- {"openroom", new CommandModel("openroom", "RST", new [] {"status"}, CommandModel.CommandTypes.OnlyChannel, CommandModel.PermissionLevel.Moderator)},
- {"promote", new CommandModel("promote", "COA", new [] {"character"}, CommandModel.CommandTypes.SingleArgsAndChannel, CommandModel.PermissionLevel.Moderator)},
- {"setdescription", new CommandModel("setdescription", "CDS", new [] {"description"}, CommandModel.CommandTypes.SingleArgsAndChannel, CommandModel.PermissionLevel.Moderator)},
- {"unban", new CommandModel("unban", "CUB", new [] {"character"}, CommandModel.CommandTypes.SingleArgsAndChannel, CommandModel.PermissionLevel.Moderator)},
- {"setmode", new CommandModel("setmode", "RMO", new [] {"mode"}, CommandModel.CommandTypes.SingleArgsAndChannel, CommandModel.PermissionLevel.Moderator)},
- // global op commands
- {"chatban", new CommandModel("chatban", "ACB", new [] {"character"}, CommandModel.CommandTypes.SingleArgsLoose, CommandModel.PermissionLevel.GlobalMod)},
- {"chatkick", new CommandModel("chatkick", "KIK", new [] {"character"}, CommandModel.CommandTypes.SingleArgsLoose, CommandModel.PermissionLevel.GlobalMod)},
- {"chatunban", new CommandModel("chatunban", "UBN", new [] {"character"}, CommandModel.CommandTypes.SingleArgsLoose, CommandModel.PermissionLevel.GlobalMod)},
- {"reward", new CommandModel("reward", "RWD", new [] {"character"}, CommandModel.CommandTypes.SingleArgsLoose, CommandModel.PermissionLevel.GlobalMod)},
- {"timeout", new CommandModel("timeout", "TMO", new [] {"character"}, CommandModel.CommandTypes.SingleArgsLoose, CommandModel.PermissionLevel.GlobalMod)},
- // admin commands
- {"broadcast", new CommandModel("broadcast", "BRO", new [] {"character"}, CommandModel.CommandTypes.SingleArgsLoose, CommandModel.PermissionLevel.GlobalMod)},
- {"chatdemote", new CommandModel("chatdemote", "DOP", new [] {"character"}, CommandModel.CommandTypes.SingleArgsLoose, CommandModel.PermissionLevel.GlobalMod)},
- {"chatpromote", new CommandModel("chatpromote", "AOP", new [] {"character"}, CommandModel.CommandTypes.SingleArgsLoose, CommandModel.PermissionLevel.GlobalMod)},
- {"makechannel", new CommandModel("makechannel", "CRC", new [] {"channel"}, CommandModel.CommandTypes.SingleArgsLoose, CommandModel.PermissionLevel.GlobalMod)},
- // command overrides
- // format ->
- // command to override, command parameter to override, value to override with
- {"online", new CommandOverride("status", "online")},
- {"busy", new CommandOverride("status", "busy")},
- {"looking", new CommandOverride("status", "looking")},
- {"away", new CommandOverride("status", "away")},
- {"dnd", new CommandOverride("status", "dnd")},
- {"ignore", new CommandOverride("action", "add")},
- {"unignore", new CommandOverride("action", "delete")},
- {"openroom", new CommandOverride("status", "public")},
- {"closeroom", new CommandOverride("status", "private")},
- {"bottle", new CommandOverride("dice", "bottle")},
- {"report", new CommandOverride("action", "report")},
- {"handlereport", new CommandOverride("action", "confirm")},
- // client-only commands
- {ClientSendTypingStatus, new CommandModel(ClientSendTypingStatus, "TPN", new [] {"status", "character"}, CommandModel.CommandTypes.TwoArgs)},
- {ClientSendPM, new CommandModel(ClientSendPM, "PRI", new [] {"message", "recipient"}, CommandModel.CommandTypes.TwoArgs)},
- {ClientSendChannelMessage, new CommandModel(ClientSendChannelMessage, "MSG", new [] {"message"}, CommandModel.CommandTypes.SingleArgsAndChannel)},
- {ClientSendChannelAd, new CommandModel(ClientSendChannelAd, "LRP", new [] {"message"}, CommandModel.CommandTypes.SingleArgsAndChannel)},
Advertisement
Add Comment
Please, Sign In to add comment