summaryrefslogtreecommitdiff
path: root/lstwitchfollowers.rb
diff options
context:
space:
mode:
authorJoe Rayhawk <jrayhawk@omgwallhack.org>2016-08-10 16:09:19 -0700
committerJoe Rayhawk <jrayhawk@omgwallhack.org>2016-08-10 16:09:19 -0700
commit8d2dd49716c3bf9439e6f1ed192edf46570874de (patch)
treef732b27b5a55ae5e7cd66f2993efc25be6816d05 /lstwitchfollowers.rb
parent7067ef1a3de8c3f809e6d49ce5912c817ac0953f (diff)
downloadtwitchtools-8d2dd49716c3bf9439e6f1ed192edf46570874de.tar.gz
twitchtools-8d2dd49716c3bf9439e6f1ed192edf46570874de.zip
lstwitch and lstwitchfollowers: add width minimum to keep from breaking (FIXME: make more efficient use of space)
Diffstat (limited to 'lstwitchfollowers.rb')
-rwxr-xr-xlstwitchfollowers.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lstwitchfollowers.rb b/lstwitchfollowers.rb
index 296b4e9..69d8ec2 100755
--- a/lstwitchfollowers.rb
+++ b/lstwitchfollowers.rb
@@ -15,6 +15,10 @@ http.read_timeout = 500
width = `stty size`.split[1].to_i
+if width < 97
+ width=97
+end
+
def followers(http, path, key, width)
total = 100