Compare commits

...

4 Commits

Author SHA1 Message Date
Mal Hancock 004632537b Set theme jekyll-theme-minimal 2022-01-09 22:29:47 -08:00
mallory d528213c5f fix for listeners 2020-12-18 09:48:21 -08:00
mallory c3613f196a change message logic 2020-12-18 09:35:37 -08:00
mallory fdca6da624 changes to allow processing other events 2020-12-18 08:43:54 -08:00
3 changed files with 8 additions and 5 deletions

View File

@ -1 +1 @@
theme: jekyll-theme-midnight
theme: jekyll-theme-minimal

View File

@ -1 +1 @@
__version__ = '1.9.5'
__version__ = '1.9.7'

View File

@ -71,9 +71,9 @@ class Bot(irc.bot.SingleServerIRCBot):
if cmd:
self.cmd = cmd
self.arg = arg
if text:
if text != None:
self.text = text
if not (cmd or text):
if not (cmd==None or text==None):
raise TypeError('missing cmd or text parameter')
def start_logging(self):
@ -249,7 +249,10 @@ class Bot(irc.bot.SingleServerIRCBot):
nick = e.source.nick
if nick == self.bot_nick:
pass
text = e.arguments[0]
if e.arguments:
text = e.arguments[0]
else:
text = ''
if e.type == 'privmsg' or e.type == 'pubmsg':
msg_type = 'message'
else: