1287 Commits

Author SHA1 Message Date
49f3d35f2e add a simple oracle to the dice roller
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2026-07-25 09:03:19 -05:00
2cdb6feb44 allow roll strings on IRC to have an 'a' natural language prefix
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2026-07-25 07:27:20 -05:00
59d462fcd0 dice: cypher GM intrusions should not be auto-fails
this also has some code reorg around IRC styles

Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2026-07-25 07:15:09 -05:00
e0ae5335f4 dice: more tests of the cypher roll string
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2026-07-24 10:41:19 -05:00
533a74db6d dice: more fork syncing, this time changing some output
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2026-07-24 10:02:57 -05:00
3c953ba822 dice: more syncing from the fork
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2026-07-24 09:45:04 -05:00
76b669be07 dice: more syncs from the fork, returning more about a result
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2026-07-24 09:30:44 -05:00
915afbf5ec dice: more test method granularity
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2026-07-24 09:26:10 -05:00
6fec81917e cypher dice: some cleanups from my fork that I'm merging back
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2026-07-24 07:57:14 -05:00
eb325f98b0 tweak cypher result output string
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2026-06-01 11:02:47 -05:00
ba076b846a handle empty string comments in cypher results
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2026-06-01 10:49:15 -05:00
9c0a459540 construct the lex/yacc dice roller in the package
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2026-05-17 12:48:36 -05:00
c14afe478a move the generic roll result code into a common place
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2026-05-17 12:38:13 -05:00
c41a2211d0 move the cypher roll result code into a common place
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2026-05-17 12:02:01 -05:00
128bf3aca1 fix the parser to account for comments with other important tokens 2026-05-14 20:23:13 -05:00
4e9661aafa add a placeholder dice page to the website 2026-05-14 18:58:04 -05:00
3f1e0e7af3 rework cypher rolls to be via the lex/yacc parser
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2026-05-14 16:09:45 -05:00
025cf58b91 couple cleanups and unit tests for acro
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2026-05-14 16:09:45 -05:00
cd79a97f06 fixes and cleanups to make acro vaguely functional again
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2026-05-14 16:09:45 -05:00
0c7a55044f Revert "wttr.in nests the data in the response now, account for that"
guess they went back to the old format

This reverts commit 4d2b1d5eb0.
2026-03-30 10:30:50 -05:00
4d2b1d5eb0 wttr.in nests the data in the response now, account for that
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2026-03-18 16:23:14 -05:00
a45b8f41eb allow more rolls at once, 30 seems ok
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2026-03-18 16:23:14 -05:00
ddbe32060e use django whitenoise for static files
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2026-03-18 16:23:11 -05:00
2ceed526d6 fix non-uniqueness oversight is checking for discord bridge
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2026-03-18 16:23:06 -05:00
b212eb0e00 tweak the green-ness of the middle !reaction result
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2026-03-18 16:22:57 -05:00
e7d63ee963 slight tweak to the !reaction reply string
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2025-02-24 16:43:44 -06:00
3100efd4a9 add a !reaction dice roll for a very simple oracle-style vibe check
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2025-02-24 16:39:06 -06:00
6d8ba18380 cypher: distinguish between a task roll and an attack roll
attack = A, otherwise the same options as with a generic task (= T)

Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2025-02-08 23:57:23 -06:00
3b7c871a94 cypher: case insensitivity when matching task difficulties
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2025-02-08 23:57:23 -06:00
fa4815153a cypher: slightly better display of output with no difficulty or mods
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2025-02-08 23:57:23 -06:00
cc9b110531 fix a display issue in the karma key score
this would probably only matter if adding a key manually that doesn't
have a score, but a fix is a fix

Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2025-02-08 23:57:23 -06:00
af4746fb90 allow Markov contexts to be hidden from the web
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2025-02-08 23:57:23 -06:00
d0cbc815d1 update post_connect to accept a /command to do things other than "msg"
these are just /msg and /mode for now, and the slash is retained out of
convention

Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2024-12-16 23:47:32 -06:00
166b506843 the weather module depends on requests
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2024-11-08 08:29:30 -06:00
12adb2a205 plug the cypher system roller into the irc plugin
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2024-11-07 16:32:06 -06:00
8e22ccb2a3 start a TODO for myself
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2024-11-07 16:16:12 -06:00
02e5769ab5 irc 20.5.0 breaks recursion checks/bot.reply()
it seems like the Command object (the event used in basically
everything) expects an argument to __new__() that deepcopy can't
resolve, and deepcopy is critical to recursion currently, so until that
can be refactored, just pin our library

Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2024-11-07 16:13:06 -06:00
ac16ec99e5 add a Cypher System dice rolling library method
not available to the bot, yet, but that's next

Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2024-11-07 14:33:00 -06:00
994f9ef50b Revert "replace dice sanity checks as asserts"
not sure why I would have done this, asserts are not great

This reverts commit b917f78ca5.

Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2024-11-07 12:24:33 -06:00
f43b9e4de4 updates to the packages under test
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2024-10-31 13:41:25 -05:00
58fd0d0728 remove unused gitlab CI configuration
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2024-10-31 13:41:08 -05:00
cf8d24187f requirements bumps, pinning Django to 5.0 for now
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2024-10-31 00:25:55 -05:00
8f76e54d30 add a couple dice roller tests
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2024-10-31 00:18:56 -05:00
1674300ec3 convert to pyproject.toml (no versioneer)
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2024-10-31 00:10:03 -05:00
355d17d171 flake8 cleanups
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2024-07-17 00:30:27 -05:00
e5b9f1634a completely remove usages of django-adminplus
it was futzing up some /admin/ login stuff, and I hadn't actually used
the three views using it in years, so probably better to just yeet it
(technical term) into the sun.

Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2024-05-03 13:24:38 -05:00
e63740ca70 replace discord bridge nick with sender nick inside the bot
when the bot has received a message through the discord bridge that
it'll end up reacting to (by creating a countdown item, for instance),
the nick in the event should, for all intents and purposes, be the
sender's nick on the discord side, not the discord bridge itself

Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2024-05-03 12:52:58 -05:00
03e1269cf2 updates to bump the whole app to Django 5.0
note that this removes support for python 3.8 and 3.9!

Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2024-05-03 12:44:57 -05:00
2dfb942f91 some trivial setup.py cleanups until we convert
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2024-05-03 12:17:09 -05:00
a92d0041cf add the REUSE tool, not that this repo is compliant yet
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2024-05-03 12:16:43 -05:00