Last active
September 10, 2015 00:42
-
-
Save ask-compu/4ad008ee432c505e1add to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sqlite3 as lite | |
import os | |
conn = lite.connect(os.path.join(os.path.expanduser('~/.phenny'), 'seen.db')) | |
c = conn.cursor() | |
c.execute('''create table if not exists seen( | |
nick varchar(31) NOT NULL PRIMARY KEY, | |
channel varchar(31) NOT NULL, | |
message text, | |
event varchar(10) NOT NULL, | |
time time DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL, | |
);''') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment