101 Commits

Author SHA1 Message Date
13xforever
1709f445b4 oops, forgot this debug print() 2018-06-17 12:27:22 +02:00
13xforever
d5835739a6 show unknown user ids only in dms 2018-06-17 12:27:22 +02:00
13xforever
03daa484f9 fix reporter and reportee on adding a new warning
fix report generation in case reporter is no longer available
2018-06-17 12:27:22 +02:00
13xforever
f37e44f782 fix some type hinting 2018-06-17 11:40:22 +02:00
13xforever
f043028090 check moderated channel history on startup in case people were chatting while the bot was down 2018-06-17 11:40:22 +02:00
13xforever
8c369e0d60 make it so users can use !warn list on themselves, and only show warn details in DM for mods 2018-06-17 11:40:22 +02:00
13xforever
c49b3f391d fix starbucks moderation 2018-06-17 11:40:22 +02:00
13xforever
136fde04d4 Show explicit message when user doesn't have any warnings to their name 2018-06-17 11:40:22 +02:00
13xforever
d5d631371f fix saving warning on piracy trigger 2018-06-17 11:40:22 +02:00
13xforever
6bff5708c7 show only text names of warned users in public
show user ids in DM
2018-06-17 11:40:22 +02:00
13xforever
e9b0b971b9 fix multiline explanations 2018-06-17 11:40:22 +02:00
13xforever
fbcac892ef fixed reaction for denied commands 2018-06-17 11:40:22 +02:00
13xforever
850773ff44 implemented !explain command 2018-06-17 11:40:22 +02:00
13xforever
b1482efcde added reporter to the warning db
added db schema migrations with the new column and new index
fixed `except:` to use `except Exception:` instead
2018-06-17 11:40:22 +02:00
13xforever
e711407b23 add usage example for !warn 2018-06-17 11:40:22 +02:00
13xforever
134bf2fa74 warning support for unknown (banned / kicked) users 2018-06-17 11:40:22 +02:00
13xforever
a2d3f2070f add reactions to failed mod and sudo commands, and also log user names 2018-06-17 11:40:22 +02:00
13xforever
4d77a1ed1b implemented !warn list to list all users with warnings 2018-06-17 11:40:22 +02:00
13xforever
3ec520a243 add piracy trigger context logging 2018-06-09 10:38:38 +02:00
Roberto Anić Banić
eb0fe5af34 Anime stuff 2018-06-09 09:59:52 +02:00
Roberto Anić Banić
c0cdcada68 Implement warning system 2018-06-09 10:07:47 +02:00
13xforever
92c8839592 only append search query if report requires attention from moderators 2018-06-07 15:35:26 +02:00
13xforever
3cce43bf1f add piracy trigger to logs 2018-06-07 15:35:26 +02:00
13xforever
59f5ef0aa6 Support logs with multiple runs
* Try to parse last run from the logs
* Optimized memory usage by flushing buffer every 256 KB
* Indicate if log was too large and parsed settings could reflect not the last run
2018-06-07 15:35:02 +02:00
Roberto Anić Banić
eded517871 UGH 2018-05-10 23:27:15 +02:00
Nicba1010
5129d68e15 Fixed a pretty bad piracy check bug 2018-05-09 09:10:38 +02:00
Ilya
65a819ac21 Do not fail when reporting empty messages with logs attached (#41)
* Do not fail when reporting empty messages with logs attached

Embed field cannot be empty, so just mention that it was log

* better reporting of attachments

* fml
2018-05-08 11:37:06 +02:00
Nicba1010
a09bbad1f3 piracy reports on in bot-log for pirated releases 2018-04-26 18:08:14 +02:00
Nicba1010
e8b3d4b7f2 Fix importance 2018-04-24 18:02:07 +02:00
Nicba1010
d14b0cc571 Zip support added 2018-04-22 11:16:48 +02:00
Nicba1010
e2b725d506 Removed auto delete and added actual logging 2018-04-21 00:27:49 +02:00
Nicba1010
c0de70c926 Implement auto delete in #media and #bot-spam by reacting with coffee emote, works for ppl with roles only. 2018-04-20 20:45:18 +02:00
Ilya
a3235f61ff New feature: os detection (#37)
* detect OS in logs

* Returned Frame Limit option in embed version of log, and moved detected OS around
2018-04-09 15:57:55 +02:00
Roberto Anić Banić
a175ef0ac4 Juhn-proof bot 2018-04-03 10:47:35 +02:00
Nicba1010
ed32e6051b Remove code limit in Direct Messages 2018-04-03 10:43:41 +02:00
Roberto Anić Banić
aff2b43066 Add !sudo restart (#36)
* Add !sudo restart

* Remove reference line

* Send via context instead of channel

* Hotfix

* Fix sudo say 1

* Remove debug print

* Bytes to string

* I cannot into bytes

* UTF8

* I still cannot into string
2018-04-03 10:35:48 +02:00
13xforever
54aa4d9ed0 Fix !compat results formatting
Fix !top without parameters
Use plain text for product code lookup when in maintenance mode to be less obnoxious
2018-04-03 01:47:28 +05:00
13xforever
6511495589 better solution that doesn't break log analyzer 2018-04-02 23:21:05 +05:00
13xforever
ac89e3bbc3 fix product code lookup when api is in maintenance mode
freshen up !top examples
2018-04-02 23:00:59 +05:00
13xforever
3a40aad98a cap product code lookup number at 5, but show results in any case 2018-03-29 19:05:05 +05:00
13xforever
4d60a77614 More flexible !top command 2018-03-29 18:32:43 +05:00
13xforever
58950387e9 Fix :cell_ok_hand: response
Fix AF Override: Disabled formatting
2018-03-29 18:32:19 +05:00
Talkashie
84ec77d00c Add a couple more 8ball responses 2018-03-20 20:09:33 -05:00
Roberto Anić Banić
291584a907 Juhn being an asshole and ruining stuff for others 2018-03-21 00:09:11 +01:00
13xforever
14fa77e4ba usable log analysis result as embed
fix thread scheduler parsing
2018-03-20 15:31:27 +05:00
13xforever
258e51927d Use actual urlencode instead of html encoder (???)
Sanitize user input when showin compat search results
Truncate compat search text to 40 characters to prevent dos with giant strings
2018-03-15 18:26:47 +05:00
13xforever
e728e5b1aa do case insensetive piracy checks
do not execute piracy subcommands on public channels
2018-03-09 22:49:50 +05:00
13xforever
75f575c9dd log analyzer result as embed (disabled) 2018-03-09 22:29:26 +05:00
13xforever
5af2d2eed3 separate info parsing and result formatting
use vulkan gpu info if available, else d3d one, and show it after the cpu info
more tweaks to what settings to show
do code format sanitization to prevent injections through modified logs
2018-03-09 17:33:32 +05:00
13xforever
6cada8e5c8 only query infor for commercial product codes 2018-03-09 17:30:45 +05:00