From 3e300c4357973d4dd88cdf4a4046ef5c78409b81 Mon Sep 17 00:00:00 2001 From: "Sean B. Palmer" Date: Tue, 19 Jan 2010 14:52:37 +0000 Subject: Fixed the .commandr bug. --- Makefile | 7 +++++++ bot.py | 2 +- foaf.rdf | 54 ------------------------------------------------------ 3 files changed, 8 insertions(+), 55 deletions(-) delete mode 100644 foaf.rdf diff --git a/Makefile b/Makefile index f5658cb..5355824 100644 --- a/Makefile +++ b/Makefile @@ -5,3 +5,10 @@ archive: ; hg archive -t tbz2 phenny-hg.tar.bz2 git archive --format=tar --prefix=phenny/ HEAD | bzip2 > phenny.tar.bz2 + +ci: ; + git commit -a && git push origin master + +log: ; + # git log --date=short --format='%h %ad %s' + git graph diff --git a/bot.py b/bot.py index 1bd559f..7cfc76c 100755 --- a/bot.py +++ b/bot.py @@ -127,7 +127,7 @@ class Phenny(irc.Bot): prefix = self.config.prefix commands, pattern = func.rule for command in commands: - command = r'(%s)(?: +(?:%s))?' % (command, pattern) + command = r'(%s)\b(?: +(?:%s))?' % (command, pattern) regexp = re.compile(prefix + command) bind(self, func.priority, regexp, func) diff --git a/foaf.rdf b/foaf.rdf deleted file mode 100644 index 4ac6e13..0000000 --- a/foaf.rdf +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - - Information about phenny - - - - - - Phenny P. Palmersbot - phenny - Ms. - - - - - - Sean B. Palmer - - - - -- cgit v1.2.3-1-g7c22