52 Commits

Author SHA1 Message Date
13xforever
48fb3fcd5b
fix all the places where database is actually open for modification 2025-03-29 08:47:19 +05:00
13xforever
1a9359d863
switch to AsyncReadWriteLock to support async/await 2025-03-27 14:59:26 +05:00
13xforever
55f45457a2
use read/write locking for sqlite to fix Error 5: 'database is locked' 2025-03-27 12:20:33 +05:00
13xforever
3a804478e5
allow all psn commands in dms for now 2025-03-25 17:43:22 +05:00
13xforever
d4aeffc0ea
fix psn commands 2025-03-23 11:19:25 +05:00
13xforever
699016ce9d
fix misc commands 2025-03-22 12:42:39 +05:00
13xforever
54e4f3a721
comment most of the broken stuff, so the project can be compiled 2025-03-12 12:53:35 +05:00
13xforever
06b375b972
update command structure and markup 2025-03-12 09:29:36 +05:00
13xforever
207f7dc57a
clean up usings 2025-03-08 07:01:28 +05:00
13xforever
5f039d3939
add global usings 2025-03-08 07:01:22 +05:00
Ilya
72dbc4074a
Some performance and code optimizations (#955)
* upgrade deps, remove wrong ppu hashes

* upgrade compiler packages

will require container pull after build

* replace Regex with compiler-generated versions

* use new collection initialization syntax

* configure global defaults for regex

* bump min amd driver version

fixes #950

* add macos version check

fixes #948

* fix #954 (!sudo log date)
2024-05-18 14:26:34 +01:00
13xforever
92751ba6e9 use file-scoped namespaces to reduce nesting
some formatting might be fucked
2022-06-30 00:59:46 +05:00
13xforever
1c915e05b5 use await using where appropriate 2020-11-14 15:25:20 +05:00
13xforever
24f63858e0 replace object initialization with the new() 2020-11-14 14:33:29 +05:00
13xforever
610c01318a botupdate, part 2 2020-11-13 02:48:49 +05:00
13xforever
284bc51f6d remove psn scraping and related code now that web store redesign is live 2020-10-27 00:30:56 +05:00
13xforever
3217512065 !psn add 2020-10-17 03:35:44 +05:00
13xforever
c16e3ddaab remove old junk that was never used 2020-09-21 18:45:13 +05:00
13xforever
8d6930954c fix the breakage after package update 2020-06-02 18:19:25 +05:00
13xforever
a6069d617c change psn search results formatting 2020-03-10 18:38:08 +05:00
13xforever
95bc999cf8 normalize input for !psn rename command 2020-02-22 22:57:54 +05:00
13xforever
2bec7cad33 new command to fix game titles in the bot database 2020-02-02 19:47:13 +05:00
13xforever
eac6be7e23 refactor to use using statement whenever it makes sense 2019-11-25 18:07:01 +05:00
13xforever
b946c912bd retry getting thumbnail color if default value was saved before 2019-11-11 23:26:34 +05:00
13xforever
15ed3a64fe update to c# 8.0 syntax, mostly for .Substring() 2019-11-06 03:45:31 +05:00
13xforever
abb43d1a8a update sandbox detector 2019-10-31 16:00:27 +05:00
13xforever
68ba7d2d13 fix compiler warnings 2019-09-25 12:56:13 +05:00
13xforever
3cc4a44f55 fix annoying issue 2019-09-08 21:41:21 +05:00
13xforever
c06983f14a don't search for empty strings 2019-06-08 12:33:17 +05:00
13xforever
ecf439c92d fix an issue with psn game search 2019-06-08 12:29:49 +05:00
13xforever
4212c356a0 clamp psn search results count 2019-06-03 14:02:19 +05:00
13xforever
4f40998f86 relax the number of results for psn search 2019-06-03 13:52:28 +05:00
13xforever
412808cda1 update deps, fix broken stuff for the changed api calls 2019-04-20 17:56:16 +05:00
13xforever
8ddab740ff reduce spam for unknown command prompt 2019-03-18 20:00:12 +05:00
13xforever
a75c2e26eb try to search for weird stuff when people really want to 2019-03-18 17:10:41 +05:00
13xforever
cbc94b6392 allow to search for the disc games 2019-03-07 14:20:02 +05:00
13xforever
58984da69f fix some invalid results 2019-03-07 00:25:29 +05:00
13xforever
993cc54c98 return first game if filtering by score didn't work out 2019-03-07 00:12:17 +05:00
13xforever
11bd3915e5 make Asinine happy 2019-03-06 22:04:26 +05:00
13xforever
13326eb103 tweak some stuff 2019-03-06 21:47:32 +05:00
13xforever
50fc3c9711 increase cooldown, fix potential issue 2019-03-06 21:36:59 +05:00
13xforever
f1e5f2bce7 add instructions on how to play 2019-03-06 21:20:40 +05:00
13xforever
1a096b1de7 limit !download to spam channels 2019-03-06 21:05:15 +05:00
13xforever
d9dfabf0b4 thumbnail color caching 2019-03-06 20:49:57 +05:00
13xforever
6eebd91247 move databases to the user profile config folders 2019-03-06 19:51:41 +05:00
13xforever
e128633471 workaround segfault when running dotnet from the snap 2019-03-06 03:28:46 +05:00
13xforever
1919183095 various formatting fixes and whatnot 2019-03-05 22:50:41 +05:00
13xforever
dca59dbaa9 !download command to search for games 2019-03-05 21:04:19 +05:00
13xforever
cd7a5dbf62 IRD lookup command
Resolves #89 bar local cache
2018-11-05 01:51:08 +05:00
13xforever
0bc1e641d2 implemented persistent logging
by default config parameter `LogPath` is set to `logs/bot.log`
2018-10-06 12:03:09 +02:00