40286eeafc
replace IRC color codes with nothing
2021-04-25 23:19:18 -05:00
d888c5f03b
add Pi simulation values to serializer
2021-04-25 21:08:38 -05:00
d7b7bdf73d
add another word match for countdown text triggers
2021-04-25 21:05:09 -05:00
a03c69258f
use per-server IrcChannel for reminders
...
this makes it so that if we have multiple bot instances running, they
will only pay attention to the countdown items for their current server
2021-04-25 21:04:11 -05:00
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
3aa3fb14e4
add RPC API to retrieve fact(s)
2021-04-25 18:48:34 -05:00
1fc8af09f8
use nearest area to produce return location
2021-04-25 16:34:01 -05:00
53c874dc21
option to replace IRC control chars with markdown
...
^C^B isn't allowed through Discord's API, and I'm sure some other stuff
like colors that I don't use. this makes it a server option to replace
them with Markdown, though I think this would only ever be interesting
for BitlBee + Discord
2021-04-25 12:11:59 -05:00
1036c08147
only autojoin channels for this connection
2021-04-25 11:38:19 -05:00
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
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
44d8b7db00
lint cleanups
2021-04-24 20:49:19 -05:00
d518cb2b77
lint cleanups
2021-04-24 20:49:14 -05:00
cbbf6eb311
Merge branch 'backend-frameworkification' of bss/dr.botzo into master
...
Merge the (aborted) backend/Discord attempt. See PR #2
2021-04-24 15:36:22 -05:00
2f4156ce26
quote wttr.in requests
2021-04-24 13:00:18 -05:00
e64af1a0a1
report on karma keys
2021-04-24 13:00:18 -05:00
ca8798453c
fix Dice plugin init
2021-04-24 13:00:18 -05:00
dc5f243608
optionally provide name of new countdown items
2021-04-24 13:00:18 -05:00
ab0d738851
for migrated pi history, set their x,y to -1.0 to be more obvious
2020-10-25 12:28:08 -05:00
9d94155f66
implement basic API GETs for countdown items
2020-10-25 12:20:39 -05:00
a6f8fc5dc1
make more countdown item fields optional in admin
2020-10-25 12:16:33 -05:00
bcc5f767ba
little cleanup TODO in PiLog simulate()
2020-10-25 11:19:20 -05:00
a0a1aa10f4
wow, unit tests! pi is covered (except for the irc plugin)
...
I think I'm going to move the irc stuff into a separate project in the
future so I'm not worried about testing that one yet
2020-10-25 11:16:48 -05:00
d5e5343193
have pi simulate via API return a 201
2020-10-25 11:16:23 -05:00
da815a1fc3
provide DRF action to run a pi simulation
2020-10-24 23:58:45 -05:00
ef08cec0fb
fix field reference in the PiLog.hit property
2020-10-24 23:58:02 -05:00
691ee7696b
serve basic list/detail pi log simulation views
2020-10-24 11:58:43 -05:00
665f56a430
avoid divide by 0 in getting pi simulation value
2020-10-24 11:56:48 -05:00
4d94322c55
refactor PiLog to retain x,y values
2020-10-24 11:47:36 -05:00
10d73f570a
start using tox, despite 100000 errors
2020-10-24 10:06:41 -05:00
819bbe74c6
recompile requirements
...
basically everything changed here, so... fingers crossed
2020-10-24 10:06:37 -05:00
1833430c5d
put requirements in my now-usual spot
2020-10-24 09:54:58 -05:00
42a1efed79
Merge branch 'backend-frameworkification' of bss/dr.botzo into master
2019-10-11 09:00:37 -05:00
c670072c86
add versioneer stuff to the project
2019-10-11 08:37:37 -05:00
d5e1a2ed45
actually use an f-string when querying wttr.in
2019-10-06 10:44:21 -05:00
5f6e255ded
fix some line length violations in weather/ircplugin.py
2019-10-06 09:34:01 -05:00
c0c0306419
expose weather report as an rpc view
2019-10-06 09:33:46 -05:00
56d0e26c6d
reimplement !weather in the IRC bot
2019-10-06 09:13:51 -05:00
b42d0ac0e9
pin irc==15.0.6 in requirements
2019-10-05 11:34:28 -05:00
31758b80b6
weather: start rewriting weather plugin to use wttr.in
2019-10-05 10:36:28 -05:00
802072caed
add markov RPC method for learning a line
2019-09-19 00:21:18 -05:00
9e4bc595a4
add markov RPC method for generating a line from a context
2019-09-19 00:12:36 -05:00
d34fb18949
rename 'home' view as 'index', fixes DEBUG page behavior
2019-06-29 09:41:28 -05:00
abce0262f3
provide dice_str in exceptions, where applicable
2019-06-29 09:24:16 -05:00
b917f78ca5
replace dice sanity checks as asserts
2019-06-29 09:23:35 -05:00
c2aa3df13f
fix some '!= None' checks, rewrite as 'is not None'
2019-06-29 09:23:02 -05:00
6b8dd1a645
dos2unix dice/*
2019-06-22 11:45:09 -05:00
649a148209
don't assert on trials if they aren't provided
2019-06-22 11:43:30 -05:00
8fcc8365e3
add a dice rolling API view to the django app
2019-06-21 18:07:10 -05:00
f78d407d4c
move DiceRoller to its own module
...
while I'm doing that, standardize the usage of raising exceptions when parsing goes wrong
2019-06-21 16:53:40 -05:00