jesopo
62df014b29
Don't pass around full server details more than we have to.
2018-09-21 11:34:38 +01:00
jesopo
b7dda02951
Add optional aliases for IRCServers, mostly to make logging prettier.
2018-09-19 01:13:54 +01:00
jesopo
1cafc3462a
Table name typo
2018-08-31 16:02:48 +01:00
jesopo
525de94c02
Actually, we do need find_all_by_setting
2018-08-31 15:34:56 +01:00
jesopo
303cf85ac6
Turns out we didn't need find_all_by_setting
2018-08-31 15:17:15 +01:00
jesopo
8a80d8e67d
Add Database.UserChannelSettings.find_all_by_setting
2018-08-31 15:13:56 +01:00
dngfx
301d3cb45a
Revert the god awful database edits I made and make ducks.py convert to int. Might be an idea to make a make_int function?
2018-08-31 05:48:53 +01:00
dngfx
8d6f0fffa9
Make channel values being inserted into SQLite integers if they're numbers.
...
Update ducks.py, you can now .bef and .bang! Coming soon: .friends, .killers, and .ducks
Update google to use gb instead of us. We're British goddamnit.
2018-08-31 04:14:56 +01:00
jesopo
3398398a11
Fix typo in database.user_settings.delete
2018-08-28 12:38:59 +01:00
jesopo
e5a5fa5c4b
modules/logging.py -> IRCLogging.py; IRCLog.py -> IRCBuffer.py; change logging
...
to be an object on the server object instead of an event call
2018-08-28 12:23:57 +01:00
jesopo
9a3f2e5de6
Change the database to give channels and users ids and use those in the settings
...
tables
2018-08-19 00:19:53 +01:00
jesopo
8386e45343
check if a table exists before making it instead of catching the sqlite
...
exception
2018-08-18 21:53:50 +01:00
jesopo
ea9073d12f
Add indexes to settings tables
2018-08-18 18:26:04 +01:00
jesopo
213bf999b9
Changed find_all_by_setting to not return setting, added !richest
2018-08-09 13:49:44 +01:00
jesopo
f7e4d08eb0
Switch to using monotonic time in Database.py timing
2018-08-09 10:38:13 +01:00
jesopo
ce05b98f61
Moved table-specific logic to their own "table" classes in Database.py
2018-08-05 22:41:38 +01:00
jesopo
6a7369f7de
changed words.py to use new user_channel_settings table
2018-08-05 17:16:15 +01:00
jesopo
28debfa919
Add "user_channel_settings" table in Database.py, for settings per user per
...
channel
2018-08-05 12:52:29 +01:00
jesopo
5e42608ead
Improved logging, added TRACE logging in Database.py to see how it performs
2018-08-05 11:30:43 +01:00
jesopo
ffd41d0771
Added addition "find" methods to Database.py, along with a "get all" for user
...
settings to search without a nickname
2018-08-03 13:43:45 +01:00
jesopo
f6a5d97842
Don't make a database cursor per thread as there should only be 1 thread
2018-07-02 12:13:54 +01:00
Evelyn
3b232d9959
Enable foreign key constraint, don't poll it
2017-12-06 10:43:06 +00:00
jesopo
7cf4552ab8
fixed a problem with Database.py.
2016-06-28 00:08:40 +01:00
jesopo
5a27823244
added get_server to Database.py, for some future use. dunno.
2016-04-29 12:43:22 +01:00
jesopo
644b2ea630
added a new settings table for bot settings in general.
2016-04-14 16:44:27 +01:00
jesopo
f943d63098
first commit.
2016-03-29 12:56:58 +01:00