We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7f4619 commit eec9798Copy full SHA for eec9798
1 file changed
plugins/twitch.py
@@ -12,23 +12,7 @@ def test(s):
12
valid = set('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_/')
13
return set(s) <= valid
14
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
28
- return out
29
30
- return out + "..."
31
+
32
33
@hook.regex(multitwitch_re)
34
def multitwitch_url(match):
0 commit comments