!UpTime Twitch command (TwitchBot C#)
问题 I was wondering how I would add a command for 'UpTime' in my commands that will show how long the twitch channel has been live for. This is my whole code: https://pastebin.com/ty8J3vYS Im not sure if i add it into my commands with things added to it with another case such as case "uptime": irc.sendChatMessage(""); break; Any help/guidance would be great. Thanks in advanced. 回答1: You can use Twitch's own API for this. Using this URL: https://api.twitch.tv/kraken/streams/CHANNEL_ID CHANNEL_ID