Compare commits
1 Commits
99b40b9e54
...
4f0bd07b75
Author | SHA1 | Date | |
---|---|---|---|
4f0bd07b75 |
11
README.md
11
README.md
|
@ -4,8 +4,9 @@ It's like Sopel, except rewritten from scratch using Twisted as a base and over
|
||||||
Dependencies: `twisted, python-dateutil, wolfram, requests, bs4, pyenchant`
|
Dependencies: `twisted, python-dateutil, wolfram, requests, bs4, pyenchant`
|
||||||
|
|
||||||
TODO:
|
TODO:
|
||||||
Consider re-adding the following modules: `etymology, ip`
|
Fix the movie table
|
||||||
Consider logging
|
Consider re-adding the following modules: `etymology, ip`
|
||||||
Change `bot.say` to `bot.msg`
|
Consider logging
|
||||||
Add CTCP responses
|
Change `bot.say` to `bot.msg`
|
||||||
More complex versioning
|
Add CTCP responses
|
||||||
|
More complex versioning
|
||||||
|
|
2
bot.py
2
bot.py
|
@ -395,7 +395,7 @@ class Fulvia(irc.IRCClient):
|
||||||
"""
|
"""
|
||||||
channel_types = {"@": "secret", "*": "private", "=": "public"}
|
channel_types = {"@": "secret", "*": "private", "=": "public"}
|
||||||
channel_type = channel_types[params[1]]
|
channel_type = channel_types[params[1]]
|
||||||
channel = params[2].lower()
|
channel = params[2]
|
||||||
nicklist = params[3].split()
|
nicklist = params[3].split()
|
||||||
self.namesReceived(channel, channel_type, nicklist)
|
self.namesReceived(channel, channel_type, nicklist)
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@ def setup(bot):
|
||||||
except OperationalError:
|
except OperationalError:
|
||||||
cur.execute("CREATE TABLE movie("
|
cur.execute("CREATE TABLE movie("
|
||||||
"movie_title TEXT NOT NULL PRIMARY KEY,"
|
"movie_title TEXT NOT NULL PRIMARY KEY,"
|
||||||
"added_by text DEFAULT 'UNKNOWN',"
|
"added_by TEXT DEFAULT 'UNKNOWN',"
|
||||||
"added_date INTEGER DEFAULT (STRFTIME('%s', 'now')),"
|
"added_date INTEGER DEFAULT (STRFTIME('%s', 'now')),"
|
||||||
"times_watched INTEGER DEFAULT 0,"
|
"times_watched INTEGER DEFAULT 0,"
|
||||||
"first_watched TEXT DEFAULT 'NA',"
|
"first_watched TEXT DEFAULT 'NA',"
|
||||||
|
|
|
@ -27,10 +27,6 @@ def load_database(bot):
|
||||||
|
|
||||||
|
|
||||||
def setup(bot):
|
def setup(bot):
|
||||||
bot.memory["seen_lock"] = threading.Lock()
|
|
||||||
bot.memory["seen"] = load_database(bot)
|
|
||||||
bot.memory["seen_last_dump"] = time.time()
|
|
||||||
|
|
||||||
con = bot.db.connect()
|
con = bot.db.connect()
|
||||||
cur = con.cursor()
|
cur = con.cursor()
|
||||||
try:
|
try:
|
||||||
|
@ -44,6 +40,10 @@ def setup(bot):
|
||||||
con.commit()
|
con.commit()
|
||||||
con.close()
|
con.close()
|
||||||
|
|
||||||
|
bot.memory["seen_lock"] = threading.Lock()
|
||||||
|
bot.memory["seen"] = load_database(bot)
|
||||||
|
bot.memory["seen_last_dump"] = time.time()
|
||||||
|
|
||||||
|
|
||||||
@commands('seen')
|
@commands('seen')
|
||||||
@example(".seen Nigger -l", "Last heard from Nigger at [1997-03-12 16:30:00] "\
|
@example(".seen Nigger -l", "Last heard from Nigger at [1997-03-12 16:30:00] "\
|
||||||
|
|
Loading…
Reference in New Issue
Block a user