Remove some debug output.
This commit is contained in:
parent
63df95e4da
commit
721572ac4a
1 changed files with 1 additions and 2 deletions
|
|
@ -300,7 +300,6 @@ class IRCBot(Bot):
|
||||||
elif kwargs["type"] == "privmsg":
|
elif kwargs["type"] == "privmsg":
|
||||||
# A private message to the bot - a command.
|
# A private message to the bot - a command.
|
||||||
user = kwargs["user"]
|
user = kwargs["user"]
|
||||||
print ("Private bot message received from %s: %s" % (user, txt))
|
|
||||||
|
|
||||||
if txt.lower().startswith("who"):
|
if txt.lower().startswith("who"):
|
||||||
# return server WHO list (abbreviated for IRC)
|
# return server WHO list (abbreviated for IRC)
|
||||||
|
|
@ -319,7 +318,7 @@ class IRCBot(Bot):
|
||||||
text = "Who list (online/idle): %s" % ", ".join(whos)
|
text = "Who list (online/idle): %s" % ", ".join(whos)
|
||||||
elif txt.lower().startswith("about"):
|
elif txt.lower().startswith("about"):
|
||||||
# some bot info
|
# some bot info
|
||||||
text = "This is an Evennia IRC bot connecting from the game '%s'." % settings.SERVERNAME
|
text = "This is an Evennia IRC bot connecting from '%s'." % settings.SERVERNAME
|
||||||
else:
|
else:
|
||||||
text = "I understand 'who' and 'about'"
|
text = "I understand 'who' and 'about'"
|
||||||
super(IRCBot, self).msg(privmsg=((text,), {"user":user}))
|
super(IRCBot, self).msg(privmsg=((text,), {"user":user}))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue