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

Commit

Permalink
irc: Get rid of silly "wanna" command.
Browse files Browse the repository at this point in the history
  • Loading branch information
spladug committed Apr 9, 2015
1 parent 988a48b commit ee3795d
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions harold/plugins/irc.py
@@ -1,6 +1,5 @@
#!/usr/bin/python

import string
import traceback

from twisted.words.protocols import irc
Expand Down Expand Up @@ -30,17 +29,6 @@ def who(irc, sender, channel, *args):
irc.describe(channel, "is a bot. see https://github.com/spladug/harold")


def wanna(irc, sender, channel, *args):
if args:
clean = args[0].translate(string.maketrans("", ""), string.punctuation)
if clean.lower() == "cracker":
irc.describe(channel, "squawks: yes!")
elif clean.lower() == "rram":
irc.describe(channel, "purrs.")
else:
irc.describe(channel, "flies away in disgust")


class IRCBot(irc.IRCClient):
realname = "Harold"
lineRate = .25 # rate limit to 4 messages / second
Expand Down Expand Up @@ -184,7 +172,6 @@ def make_plugin(config, http=None):
# configure the default irc commands
p = IrcPlugin()
p.register_command(who)
p.register_command(wanna)

# set up the IRC client
irc_factory = IRCBotFactory(p, irc_config, dispatcher, channel_manager)
Expand Down

0 comments on commit ee3795d

Please sign in to comment.