Compare commits
4 Commits
Author | SHA1 | Date |
---|---|---|
Mal Hancock | 004632537b | |
mallory | d528213c5f | |
mallory | c3613f196a | |
mallory | fdca6da624 |
|
@ -1 +1 @@
|
|||
theme: jekyll-theme-midnight
|
||||
theme: jekyll-theme-minimal
|
|
@ -1 +1 @@
|
|||
__version__ = '1.9.5'
|
||||
__version__ = '1.9.7'
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue