Commit Graph

1184 Commits

Author SHA1 Message Date
dfdd6d6dc5 remove registration stuff from templates 2021-10-27 07:50:57 -05:00
75a1b8d7f3 version bump (new Django!) and remove twitter lib 2021-10-27 07:50:13 -05:00
fd5c4dad1a remove unused import 2021-10-26 23:10:45 -05:00
7264deee2a remove the long unsupported and unused twitter module 2021-10-26 22:58:24 -05:00
76e5546bcb remove django registration stuff, unused/desired 2021-10-26 22:25:08 -05:00
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
6ab86f773c irc plugin to turn text into zalgo text 2021-05-17 10:07:34 -05:00
3d5e6754e8 add zalgo-text and bump pip-tools 2021-05-17 09:46:43 -05:00
ab1d3456ad only show PRIVMSGed if we had something to PRIVMSG 2021-05-06 09:36:28 -05:00
a550bf07ac discard from set to ignore KeyError 2021-05-06 09:36:28 -05:00
3fe0a8e59e initialize state stuff in __init__
this shouldn't practically matter but whatever
2021-05-06 09:36:23 -05:00
0ccb49e7ed make catchup regex insensitive, use alt wording 2021-05-06 09:27:41 -05:00
651399f5fc delete history pointer after reporting 2021-05-05 08:44:40 -05:00
0b3386e183 display channel count in the privmsg report 2021-05-05 08:42:23 -05:00
b21421a395 give feedback on lines missed regardless of pub/privmsg 2021-05-05 08:36:32 -05:00
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
def5964658 track, display timestamp of history 2021-05-05 08:08:47 -05:00
e43807fb27 initial (and working?) version of history tracking plugin 2021-05-05 08:03:56 -05:00
b3b8f832a2 remove unused import 2021-05-04 19:30:11 -05:00
b971b72af8 put current weather and forecast on separate lines
the long location string means this is often bleeding into two lines at
the very end anyway, so this just looks nicer
2021-04-26 11:52:43 -05:00
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