added iloveyoubot command

This commit is contained in:
tamservo
2024-01-08 10:22:31 -05:00
parent c91c0e6e05
commit 96e9b11bdf
7 changed files with 274 additions and 3 deletions

16
create_alerts_db.py Executable file
View 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()