summaryrefslogtreecommitdiff
path: root/lstwitchfollowers.rb
diff options
context:
space:
mode:
authorJoe Rayhawk <jrayhawk@omgwallhack.org>2018-05-22 18:53:25 -0700
committerJoe Rayhawk <jrayhawk@omgwallhack.org>2018-05-22 18:53:25 -0700
commitbd501f610291cdef3b8028247faa8c1e7f0b09df (patch)
treeaadb478dcf328874ae5b496044d166d8c67f4c3d /lstwitchfollowers.rb
parent026cfa6d20c186c69125212fd439eb100b445c96 (diff)
downloadtwitchtools-bd501f610291cdef3b8028247faa8c1e7f0b09df.tar.gz
twitchtools-bd501f610291cdef3b8028247faa8c1e7f0b09df.zip
lstwitchfollowres.rb: more explicit casting
Diffstat (limited to 'lstwitchfollowers.rb')
-rwxr-xr-xlstwitchfollowers.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lstwitchfollowers.rb b/lstwitchfollowers.rb
index 8faebbb..ccd5355 100755
--- a/lstwitchfollowers.rb
+++ b/lstwitchfollowers.rb
@@ -45,10 +45,10 @@ def followers(http, path, key, client_id)
name = channel[key]['name']
stream = twitchrequest( http, '/kraken/streams/' + name, 0, client_id )['stream']
if stream
- printfollow( stream['viewers'], name, stream['channel']['game'].to_s, stream['channel']['followers'], stream['channel']['status'].to_s.gsub(/\n/,'') )
+ printfollow( stream['viewers'], name, stream['channel']['game'].to_s, stream['channel']['followers'].to_i, stream['channel']['status'].to_s.gsub(/\n/,'') )
else
profile = twitchrequest( http, '/kraken/channels/' + name, 0, client_id )
- printfollow( '', name, profile['game'].to_s, profile['followers'], profile['status'].to_s.gsub(/\n/,'') )
+ printfollow( '', name, profile['game'].to_s, profile['followers'].to_i, profile['status'].to_s.gsub(/\n/,'') )
end
end
offset += 100