Shorten station name to 12 chars

This commit is contained in:
elpatron68
2019-07-28 12:00:16 +02:00
parent 03c3219996
commit 68b789fc58

View File

@ -404,7 +404,7 @@ class MumbleBot:
msg += '!rbplay ID - Station Name' msg += '!rbplay ID - Station Name'
for s in rb_stations: for s in rb_stations:
stationid = s['id'] stationid = s['id']
stationname = s['stationname'] stationname = s['stationname'][:12]
msg += f'{stationid} - {stationname}' msg += f'{stationid} - {stationname}'
if len(msg) < 5000: if len(msg) < 5000:
self.send_msg(msg, text) self.send_msg(msg, text)