mirror of
https://github.com/oddluck/limnoria-plugins.git
synced 2025-04-26 13:01:09 -05:00
add chuck norris command
This commit is contained in:
parent
fc8b4bff13
commit
64e4df0808
@ -260,4 +260,15 @@ class Fun(callbacks.Plugin):
|
||||
irc.reply(reply[excuse])
|
||||
mitch = wrap(mitch)
|
||||
|
||||
def chuck(self, irc, msg, args):
|
||||
"""
|
||||
Mitch (Hedberg) Jokes
|
||||
"""
|
||||
data = open("{0}/chuck_norris.txt".format(os.path.dirname(os.path.abspath(__file__))))
|
||||
text = data.read()
|
||||
reply = text.splitlines()
|
||||
excuse = random.randrange(0, len(reply))
|
||||
irc.reply(reply[excuse])
|
||||
mitch = wrap(mitch)
|
||||
|
||||
Class = Fun
|
||||
|
Loading…
x
Reference in New Issue
Block a user