Пример #1
0
        private void HandleCommand(string cmdText, string args, ChatMessage chatMessage)
        {
            ChatCommand command = FindCommand(cmdText);

            if (command == null)
            {
                return;
            }

            if (command.Command == "reload")
            {
                chatCommands = GoogleSheets.Get <ChatCommand>();
                return;
            }

            // TODO: Add shows watched - allViewers.GetUserLevel(chatMessage)
            command.Execute(hub, chatMessage, cmdText, args, 0);
            return;
        }
Пример #2
0
 static BackgroundWorker()
 {
     ChatCommand.RegisterSheet();
 }