Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

Commit

Permalink
Added penis plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
izzy committed May 6, 2014
1 parent 85fab44 commit 0745f64
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions plugins/penis.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/usr/bin/env python2
# -*- coding: utf-8 -*-

from plugins.plugin import Plugin
from time import time

class penis(Plugin):
def __init__(self):
pass

def registerCommand(self, irc):
irc.registerCommand('!penis', 'Penis')

def onPrivmsg(self, irc, msg, channel, user):
if msg.find('!penis') == -1:
return

self.irc = irc
self.channel = channel

try:
last_penis = irc.last_penis
except Exception as e:
last_penis = 0

if last_penis < (time() - 300):
irc.msg(channel, ' /\)')
irc.msg(channel, ' / /')
irc.msg(channel, '( Y)')
irc.last_penis = time()
else:
irc.msg(channel, "Don't over it ;)")

0 comments on commit 0745f64

Please sign in to comment.