예제 #1
0
 private string[] Shoutout(TwitchMessage message)
 {
     if (message.Mentions != null && message.Mentions.Length > 0)
     {
         var lastPlaying = WebTools.GetTwitchEndpointResponse($"game/{message.Mentions[0]}");
         return(new string[] { $"Check out {message.Mentions[0]}'s channel, and give them a follow!" +
                               $"They were last seen playing {lastPlaying} at https://www.twitch.tv/{message.Mentions[0]}" });
     }
     else if (message.Args != null && message.Args.Length > 0)
     {
         var lastPlaying = WebTools.GetTwitchEndpointResponse($"game/{message.Args[0]}");
         return(new string[] { $"Check out {message.Args[0]}'s channel, and give them a follow! " +
                               $"They were last seen playing {lastPlaying} at https://www.twitch.tv/{message.Args[0]}" });
     }
     return(new string[] { "I didn\'t see any mentions, so I\'ll just shoutout myself! RazBot2.0 razCool" });
 }
예제 #2
0
 private string[] GetUptime(TwitchMessage message)
 {
     return(new string[] { "Uptime: " + WebTools.GetTwitchEndpointResponse(endpoint: "uptime/maerictv") });
 }