Commit Graph

1218 Commits

Author SHA1 Message Date
Brian S. Stephan 0ea54a5ee2
require authentication to get dispatch objects via API 2023-02-28 18:37:05 -06:00
Brian S. Stephan ffcdc3f8d8
rename dispatcher action type to action_type 2023-02-28 18:31:53 -06:00
Brian S. Stephan cff1a183cf
fix dispatcher API URLs to allow key-by-name 2023-02-28 18:19:46 -06:00
Brian S. Stephan 68f7c80b7e put the security middleware as the first middleware
I don't think I've ever gotten a solid idea that this is *necessary*,
but I've seen other docs refer to/assume this, so sure?
2023-02-20 10:30:13 -06:00
Brian S. Stephan 7baa70d8f6 customize the list view in the django admin 2023-02-20 08:59:54 -06:00
Brian S. Stephan 39290fb63c
allow : and , after @bot mentions 2023-02-19 22:55:14 -06:00
Brian S. Stephan 55d856b8fd
account for the discord bridge in the core bot addressed flag 2023-02-19 21:12:01 -06:00
Brian S. Stephan 88ea0dbbb4
test that <somebody> is only stripped when from the bridge user itself 2023-02-19 21:00:12 -06:00
Brian S. Stephan cfeddfdc4e
markov state queries need the context to be unique 2023-02-19 19:36:16 -06:00
Brian S. Stephan d516c1b08e
also clean up mentions that weren't cleaned because of the bridge nick 2023-02-19 18:39:36 -06:00
Brian S. Stephan 667a85aa46
add a basic learn/retrieve test since I broke it a while back 2023-02-19 18:27:05 -06:00
Brian S. Stephan 0227b74eee
when creating a markov target, tie it to ircbot models 2023-02-19 18:26:00 -06:00
Brian S. Stephan 76a052e091
genericize chain remover to use it for bridge and addressed chains 2023-02-19 18:26:00 -06:00
Brian S. Stephan 19cd23879f
management command to remove nicks from chains due to bridge 2023-02-19 18:26:00 -06:00
Brian S. Stephan f59dc35b25
test the combination of bridge and addressing learning 2023-02-19 18:26:00 -06:00
Brian S. Stephan debf086b8d
test the ability to not learn our nick when addressed 2023-02-19 18:26:00 -06:00
Brian S. Stephan ec1767e38b
remove the speaker from messages coming over the bridge when learning 2023-02-19 18:26:00 -06:00
Brian S. Stephan 0bfe3f9549
variable tweak to match other plugins (nick -> who) 2023-02-19 18:26:00 -06:00
Brian S. Stephan 363ec49097
add test to confirm markov irc plugin behavior 2023-02-19 18:25:57 -06:00
Brian S. Stephan 8549c2ef8a
set pytest settings to aid testing 2023-02-19 17:55:42 -06:00
Brian S. Stephan d24f74e53f
don't build trimmed_what until we know not to ignore chatter 2023-02-19 17:55:41 -06:00
Brian S. Stephan f812857d75
add discord bridge field to the channel model
will be used in a future change to clean up markov chains
2023-02-19 17:55:41 -06:00
Brian S. Stephan 3d0be3c25a
linter fixes for markov library methods 2023-02-19 17:55:38 -06:00
Brian S. Stephan 8b3caabb57
linting fixes on the markov models 2023-02-16 16:17:49 -06:00
Brian S. Stephan 1cf0364268
move templates aroudn to satisfy packaging now that it's being tested 2023-02-16 16:14:06 -06:00
Brian S. Stephan 337e4db650
update urls.pyes to use path() and add some tests 2023-02-16 00:04:25 -06:00
Brian S. Stephan 95396802de
add safety dependency checking 2023-02-15 20:09:26 -06:00
Brian S. Stephan 4bcf06d5e7
version bumps, with some hopefully temporary pins
* django pinned to <4 since there are compatibility things to fix first
* tox pinned to <4 because of issues where it's incompatbile with safety

(safety itself coming in a moment)
2023-02-15 19:51:46 -06:00
Brian S. Stephan 54bf00b167
remove references from deleted twitter module 2023-02-15 19:49:27 -06:00
Brian S. Stephan 133c1df638
add python 3.9, 3.10 to support via tox 2023-02-15 18:17:32 -06:00
Brian S. Stephan 7c44becaa0
drop unsupported python 3.6, 3.7 2023-02-15 18:00:21 -06:00
Brian S. Stephan 76bcdd5fef
config flag for having !dice/!random prefix the nick
with the discord-irc bridge in play, the bot was sending all !roll
results to the bridge user, which wasn't all that useful
2022-07-14 23:00:05 -05:00
Brian S. Stephan 1f5dc50d89 remove dead auth_login login URL variable 2021-12-13 15:08:24 -06:00
Brian S. Stephan bc7108cfb7 properly calculate relative offsets via parseDT 2021-12-01 07:51:58 -06:00
Brian S. Stephan dfdd6d6dc5 remove registration stuff from templates 2021-10-27 07:50:57 -05:00
Brian S. Stephan 75a1b8d7f3 version bump (new Django!) and remove twitter lib 2021-10-27 07:50:13 -05:00
Brian S. Stephan fd5c4dad1a remove unused import 2021-10-26 23:10:45 -05:00
Brian S. Stephan 7264deee2a remove the long unsupported and unused twitter module 2021-10-26 22:58:24 -05:00
Brian S. Stephan 76e5546bcb remove django registration stuff, unused/desired 2021-10-26 22:25:08 -05:00
Brian S. Stephan 739d3fa2b7 new coat of paint on facts: !f shortcut, natural language fact adding
note that for now anyone can add a fact, going to assume responsible
usage on the part of users on my networks
2021-10-14 08:17:54 -05:00
Brian S. Stephan 6ab86f773c irc plugin to turn text into zalgo text 2021-05-17 10:07:34 -05:00
Brian S. Stephan 3d5e6754e8 add zalgo-text and bump pip-tools 2021-05-17 09:46:43 -05:00
Brian S. Stephan ab1d3456ad only show PRIVMSGed if we had something to PRIVMSG 2021-05-06 09:36:28 -05:00
Brian S. Stephan a550bf07ac discard from set to ignore KeyError 2021-05-06 09:36:28 -05:00
Brian S. Stephan 3fe0a8e59e initialize state stuff in __init__
this shouldn't practically matter but whatever
2021-05-06 09:36:23 -05:00
Brian S. Stephan 0ccb49e7ed make catchup regex insensitive, use alt wording 2021-05-06 09:27:41 -05:00
Brian S. Stephan 651399f5fc delete history pointer after reporting 2021-05-05 08:44:40 -05:00
Brian S. Stephan 0b3386e183 display channel count in the privmsg report 2021-05-05 08:42:23 -05:00
Brian S. Stephan b21421a395 give feedback on lines missed regardless of pub/privmsg 2021-05-05 08:36:32 -05:00
Brian S. Stephan 9368c8b823 also report on where history was said
kind of an obvious thing to do which I naturally missed
2021-05-05 08:13:04 -05:00