Example #1
0
        /// <summary>
        /// Creates the TCB object and adds events
        /// </summary>
        private void CreateTwitchChatBot()
        {
            this.Tcb = new TwitchChatBot();
            this.Tcb.LoginCompleted += (s, e) =>
            {
                Tcb.ReceiveWhispers();
                Tcb.JoinChannel(ConfigFile.Channel);
            };

            this.Tcb.MessageReceived += Tcb_MessageReceived;
            this.Tcb.CommandExecute  += Tcb_CommandExecute;

            this.Tcb.Verbose = IsInDebugMode;
        }