Skip to content

Commit eec9798

Browse files
committed
._.
1 parent d7f4619 commit eec9798

1 file changed

Lines changed: 1 addition & 17 deletions

File tree

plugins/twitch.py

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,7 @@ def test(s):
1212
valid = set('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_/')
1313
return set(s) <= valid
1414

15-
16-
def truncate(msg):
17-
nmsg = msg.split(" ")
18-
out = None
19-
x = 0
20-
for i in nmsg:
21-
if x <= 7:
22-
if out:
23-
out = out + " " + nmsg[x]
24-
else:
25-
out = nmsg[x]
26-
x += 1
27-
if x <= 7:
28-
return out
29-
else:
30-
return out + "..."
31-
15+
3216

3317
@hook.regex(multitwitch_re)
3418
def multitwitch_url(match):

0 commit comments

Comments
 (0)