示例#1
0
        public bool Execute(params object[] Params)
        {
            if (Params == null || Params.Length == 0)
            {
                return(false);
            }

            if (String.IsNullOrEmpty(this.StringData))
            {
                return(false);
            }

            this.StringData.Split(' ');

            string BotName = this.StringData.Split('	')[0];
            string Chat    = this.StringData.Split('	')[1];

            RoomUser User = this.Instance.GetRoomUserManager().GetBotByName(BotName);

            if (User == null)
            {
                return(false);
            }

            if (this.BoolData == true)
            {
                User.Shout(Chat, true, 31);
            }
            else
            {
                User.Chat(Chat, false, 31);
            }


            return(true);
        }