mirror of
https://github.com/oddluck/limnoria-plugins.git
synced 2025-04-28 22:41:08 -05:00
add chuck norris command
This commit is contained in:
parent
fc8b4bff13
commit
64e4df0808
@ -259,5 +259,16 @@ class Fun(callbacks.Plugin):
|
|||||||
excuse = random.randrange(0, len(reply))
|
excuse = random.randrange(0, len(reply))
|
||||||
irc.reply(reply[excuse])
|
irc.reply(reply[excuse])
|
||||||
mitch = wrap(mitch)
|
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
|
Class = Fun
|
||||||
|
Loading…
x
Reference in New Issue
Block a user