Brian S. Stephan
39290fb63c
allow : and , after @bot mentions
2023-02-19 22:55:14 -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
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
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
d24f74e53f
don't build trimmed_what until we know not to ignore chatter
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
b3b8f832a2
remove unused import
2021-05-04 19:30:11 -05:00
Brian S. Stephan
43f2b09057
don't add the empty string to additional nicks
...
thinko on my part, this was making the regex for matching all nicks to
'|nick' when the field is '', because of split producing ['']. in
particular this was making markov trigger on every line
2021-04-25 21:00:34 -05:00
Brian S. Stephan
9c1109107b
relate channels to their server
...
this is necessary for supporting multiple irc servers in one bot config.
this also has the side effect of requiring some code in ircbot and
markov which autocreates channels to also include the server (retrieved
via the connection). this will again help keep channels coherent for
multi-server arrangements
the twitter bot change here is untested but seems like the right idea (I
haven't used the twitter package in forever)
2021-04-25 11:13:10 -05:00
Brian S. Stephan
6136127c5f
move IRC server settings to database
...
this is the first step in trying to get the bot to support multiple
servers with different channels, countdown triggers, and so on
this also ends up affecting some configuration around:
* dispatch
* markov
* admin privmsg form
2021-04-25 10:17:41 -05:00
Brian S. Stephan
802072caed
add markov RPC method for learning a line
2019-09-19 00:21:18 -05:00
Brian S. Stephan
9e4bc595a4
add markov RPC method for generating a line from a context
2019-09-19 00:12:36 -05:00
Brian S. Stephan
f2fb0a26a4
remove unnecessary unicode_literal future imports, we py3 now
2019-06-21 15:23:33 -05:00
Brian S. Stephan
2f98a64cdd
version bumps and migration to django 2.2
2019-06-21 10:05:40 -05:00
Brian S. Stephan
0589939137
support multiple strings as counting as nick highlights
...
also, treat @nicks as being addressed, since we are doing discord
through bitlbee now
2019-01-10 08:48:15 -06:00
Brian S. Stephan
dbc4e6fe6f
rename event._recursing to event.recursing
2017-03-10 18:29:31 -06:00
Brian S. Stephan
8f8af4e6b4
package updates and resulting compat stuff
...
changes to urls.py in the django views, trivial __init__ change for the
irc library stuff
bss/dr.botzo#16
2017-02-06 22:58:51 -06:00
Brian S. Stephan
cd23f062a9
collapsing all of dr_botzo one directory
2017-02-04 11:51:22 -06:00
Brian S. Stephan
2ffdf26ec2
reorganizing project directories, part 1
2015-05-08 20:37:22 -05:00
Brian S. Stephan
2917ea9626
Markov: indicate # sentences we want in a line
...
before we were just adding words until we hit the min/max, now let's
also count the number of sentences and have a cutoff there, if we don't
want the whole appending thing no matter what
2014-05-03 20:56:33 -05:00
Brian S. Stephan
dbc3d16f65
Markov: only add sentence punctuation if necessary
2014-05-03 20:54:26 -05:00
Brian S. Stephan
676d109f57
Markov: even more unicode fixes
2014-05-03 20:50:15 -05:00
Brian S. Stephan
244720934c
Markov: rename internal methods to make them clear
2014-05-03 20:47:48 -05:00
Brian S. Stephan
f9ed58ad52
Markov: some indexes to MarkovState, might help
2014-04-05 23:09:50 -05:00
Brian S. Stephan
bf6a43ec9e
Markov: improve performance of state transitions
2014-04-05 22:54:39 -05:00
Brian S. Stephan
c193b7f4be
Markov: support ignoring prefixes in import/learn
...
this is so we can ignore/strip "botname: " ish lines
2014-04-05 18:00:45 -05:00
Brian S. Stephan
54efe617d0
Markov: only split two \ts on file import
2014-04-05 16:39:44 -05:00
Brian S. Stephan
97070d495f
Markov: assuming file uploads are utf8
2014-04-05 16:18:48 -05:00
Brian S. Stephan
6a50db0e3d
Markov: field changes: uniqueness, max_length
2014-04-05 15:55:06 -05:00
Brian S. Stephan
169f73cb36
Markov: view/form/etc for teaching lines
2014-04-05 14:53:30 -05:00
Brian S. Stephan
9c08a203c7
Markov: generate markov chains into sentences
...
some view stuff to get at it through django while we're here
2014-04-05 14:52:30 -05:00
Brian S. Stephan
ad2044a178
Markov: unicode debugging lines
2014-04-05 14:24:30 -05:00
Brian S. Stephan
acfcd574b5
Markov: add a permission for importing from a log
2014-04-05 11:20:59 -05:00
Brian S. Stephan
399d419824
Markov: heed k1/k2/v length limit when importing
2014-04-05 11:09:03 -05:00
Brian S. Stephan
77e52acc75
Markov: first cut of markov in django
...
this is just a basic port of the tables into django models right now.
there's some serious slowness in the state creation that i need to fix
before this does anything, but i want to get this in a real database on
a real linode before i go too much further, so here it is
2014-04-05 10:52:29 -05:00