AJAXBot/bot/bot/conditions/msgcontains.cs
2014-07-11 16:03:57 -05:00

18 lines
452 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace bot.conditions {
class msgcontains {
static public string[] getInfo() {
return new string[] {typeof(msgcontains).Name, "message contains"};
}
static public bool performCheck(Message msg, string parameter) {
return msg.msg.Contains(parameter);
}
}
}