-
Notifications
You must be signed in to change notification settings - Fork 4
/
ooclan.py
27 lines (24 loc) · 1.1 KB
/
ooclan.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# coding=utf-8
"""
ooclan.py - GG Bot
Copyright 2014 Max Gurela
Licensed under the Eiffel Forum License 2.
"""
from __future__ import unicode_literals
from sopel.module import rule, rate
import random
@rate(600)
@rule('^([^\<].+) (?:went up in flames|burned to death|tried to swim in lava|suffocated in a wall|drowned|starved to death|was pricked to death|hit the ground too hard|fell out of the world|died|blew up|was killed by magic|was slain by (.+)|was shot by (.+)|was fireballed by (.+)|was pummeled by (.+)|was killed by (.+))$')
def death_event(bot, trigger):
if not (trigger.nick == 'JamOORev') or (trigger.nick == 'JamOORevLite'):
return
else:
opts = [
'https://www.youtube.com/watch?v=5es0NNtSNCU',
'http://i.imgur.com/FqLvsiE.jpg',
'http://i.imgur.com/SZvrB78.gif',
'http://gfycat.com/InfatuatedNiceGelding',
'http://i.imgur.com/Upji2hK.gif',
'http://i.imgur.com/ltyA1iY.gif'
]
bot.say('gg ' + trigger.group(1).strip()[:1] + '\u0081' + trigger.group(1).strip()[1:] + ', ' + random.choice(opts))