From 68b789fc58f3f30de6c13c863878dd74e6eac50c Mon Sep 17 00:00:00 2001 From: elpatron68 Date: Sun, 28 Jul 2019 12:00:16 +0200 Subject: [PATCH] Shorten station name to 12 chars --- mumbleBot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mumbleBot.py b/mumbleBot.py index 74de357..bf9e00f 100644 --- a/mumbleBot.py +++ b/mumbleBot.py @@ -404,7 +404,7 @@ class MumbleBot: msg += '!rbplay ID - Station Name' for s in rb_stations: stationid = s['id'] - stationname = s['stationname'] + stationname = s['stationname'][:12] msg += f'{stationid} - {stationname}' if len(msg) < 5000: self.send_msg(msg, text)