tmijs / tmi.js

💬 Javascript library for the Twitch Messaging Interface. (Twitch.tv)
https://tmijs.com
MIT License
1.55k stars 214 forks source link

!uptime and !subcount commands help #305

Closed yagizdo closed 6 years ago

yagizdo commented 6 years ago

Hi. I used your code to write a bot for my own channel. But I couldn't see the code for the! Uptime and! Subcount style commands. Do you have the chance to add? Or can you show us the way?

Actual behaviour:

Expected behaviour:

Error log:

Insert your error log here

Server configuration

AlcaDesign commented 6 years ago

I'm not sure which code you're referring to, but you can get a channel's uptime or sub count using the Twitch APIs:

Uptime

Sub count

Here is a full-ish example: https://gist.github.com/AlcaDesign/02a5e9bcedf483be99621bad69ca1896