mirror of
https://git.sdf.org/tamservo/robottas.git
synced 2025-11-16 19:13:39 -05:00
added iloveyoubot command
This commit is contained in:
16
create_alerts_db.py
Executable file
16
create_alerts_db.py
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/python3
|
||||
import sqlite3
|
||||
|
||||
if __name__ == '__main__':
|
||||
con = sqlite3.connect('alerts.db')
|
||||
cur = con.cursor()
|
||||
|
||||
cur.execute("""drop table alert_schedule""")
|
||||
cur.execute("""drop table alert_channels""")
|
||||
|
||||
cur.execute("""create table alert_schedule( id integer primary key, type, day, hour, minute, last_sent );""")
|
||||
cur.execute("""create table alert_channels( id integer primary key, type, channel_id);""")
|
||||
con.commit()
|
||||
cur.close()
|
||||
con.close()
|
||||
|
||||
Reference in New Issue
Block a user