Ejemplo n.º 1
0
 public void SendRandomMessage()
 {
     if (lastMessageSent.AddSeconds(20) < DateTime.Now)
     {
         tw.RespondMessage(messages[random.Next(arraySize)]);
     }
 }
Ejemplo n.º 2
0
        public RoflBot(TwitchResponseWriter tw)
        {
            this.tw = tw;

            // Lets you know its working
            tw.RespondMessage("RoflBot Activating MrDestructoid");
            lastMessageSent = DateTime.Now;
            random          = new Random();
            messages        = GetMessages();
            arraySize       = messages.Length;
        }
Ejemplo n.º 3
0
 private void ProcessJoinEvent(string username)
 {
     tw.RespondMessage(string.Format("Welcome {0}!", username));
 }