forked from TheRealRhyle/TwitchBot_full_rebuild
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_command_table.py
40 lines (33 loc) · 1.15 KB
/
build_command_table.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import sqlite3
global conn
global c
conn = sqlite3.connect("dxchatbot.db")
c = conn.cursor()
# c.execute('drop table commands')
# conn.commit()
#
# c.execute("""create table commands (
# ex_command text,
# target text,
# action text)""")
# conn.commit()
#
#
# c.execute("""insert into commands values ('!help', '',' the current commands are !insult, !sso, !so, !permit. If I do """ \
# """not respond to an issued command it is because you are not in my preferred list of users.')""")
# conn.commit()
print(c.execute('select * from commands').fetchall())
# c.execute("""update commands
# set action = ' this command is being worked on. there are currently no user triggerable commands other than !help (or are there?)'
# where ex_command = '!help'""")
# conn.commit()
# c.execute('delete from commands where ex_command = "!discord"')
# conn.commit()
# print(type(c.execute("select count (*) from commands")))
# command_count = list(c.execute("select count (*) from commands"))
# command_count = int(command_count[0][0])
# for itr in range(command_count):
#
#
# print(command_count)
#