Commit Graph

1235 Commits

Author SHA1 Message Date
Brian S. Stephan a1a256ca3b
adopt the DCO and clean up license, etc. information
NOTE: for the moment this project is GPLv3 ONLY (no "or later" was ever
present). I will hopefully reach out to the couple other authors later
to see about adding the "or later" part

Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2024-02-23 00:09:44 -06:00
Brian S. Stephan ee6ae7080e
remove the bridge-speaker from the message when relevant
this allows downstream event handlers to react to e.g.:

<discord_user> !weather 12345

as if they were normal leading IRC commands
2023-09-12 09:16:38 -05:00
Brian S. Stephan 333424025b support markov targets with identical names on different servers
markov targets are queried and autogenerated based on chatter, but had a
legacy name which is no longer in use for this, preferring the foreign
keys to channel and consequently server. the name is really just
informative these days, but was still being used to find targets, and
thus was breaking when two servers had the same channel name in them.
this fixes that
2023-05-04 17:24:07 -05:00
Brian S. Stephan 98abab560e
flake8 cleanups 2023-03-27 16:14:11 -05:00
Brian S. Stephan 86e55cb812
ignore migrations in the flake8 checking 2023-03-27 16:13:52 -05:00
Brian S. Stephan 420a7b1472
add the ability to disable the web display of some apps 2023-03-27 16:05:42 -05:00
Brian S. Stephan a214d8acfd
remove unused weather underground key 2023-03-27 14:26:51 -05:00
Brian S. Stephan 93c522037f
use r-string for the regex path 2023-03-27 14:20:07 -05:00
Brian S. Stephan b7976c46d1 fix the loading of the karma UI 2023-03-07 15:04:35 -06:00
Brian S. Stephan d962b275ff
remove the gitlab bot, it's its own project now 2023-03-02 08:05:42 -06:00
Brian S. Stephan f898f35ce6
replace execute_delayed with reactor.scheduler.execute_after
the former was deprecated forever ago, and apparently removed. this may
fix the disconnect detection logic
2023-03-02 00:51:22 -06:00
Brian S. Stephan 4289f95800
report on the version of dr.botzo in CTCP VERSION 2023-03-02 00:45:55 -06:00
Brian S. Stephan 572ecddceb
do some small cleanups 2023-03-02 00:45:29 -06:00
Brian S. Stephan 3aadde4b71
remove XMLRPC inheritence that overrode a method no longer in existence
this is probably from python 2 days; we inherited from
SimpleXMLRPCRequestHandler to change the logging, but the method
overrode no longer exists so this did nothing
2023-03-02 00:20:25 -06:00
Brian S. Stephan c2d26f404e
deduplicate Channel object from irc library
I think this is an extremely ancient copy and paste job I never fully
corrected
2023-03-02 00:19:27 -06:00
Brian S. Stephan ecaabbce89
unpin the irc library 2023-03-02 00:16:32 -06:00
Brian S. Stephan 051e656a82
fix errant reference to IrcChannel object rather than just the name 2023-03-02 00:15:06 -06:00
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