Commit Graph

125 Commits

Author SHA1 Message Date
projectmoon d0e6ffdc43 Switch to Github container registry. 2020-09-25 22:32:24 +00:00
projectmoon fafae6175b Update to latest matrix SDK; dynamic libolm; Dockerfile cleanup.
Updates to the latest matrix SDK, which has a new version of olm-sys
(must be dynamically linked at the moment). Also cleans up the
Dockerfile to remove rustup because Void has reached Rust 1.46.0, for
a faster build.
2020-09-25 22:31:11 +00:00
projectmoon 06ff6562c1 Add more tests for handling weird input. 2020-09-01 08:17:59 +00:00
projectmoon 33c41bce7e Update readme for automated Docker builds. 2020-09-01 08:11:19 +00:00
projectmoon f3f5846826 Fix command parser returning non-commands/empty messages as errors.
This behavior became broken again after switching away from the
macro-based command parsing. The bot would return any non !command
message as an error, which would cause it to read more messages, and
return those as errors, until finally the matrix SDK would throw up.

Command parser now more properly handles empty messages and
non-commands, but we also simply abort processing if the incoming
message doesn't start with an exclamation point.
2020-08-31 23:33:46 +00:00
projectmoon 16a9aeebcd Only run Docker CI stages when necessary.
Instead of building the image all the time, and only pushing if
necessary.
2020-08-31 22:30:44 +00:00
projectmoon ae6922dd6c Correct image name. 2020-08-31 22:06:35 +00:00
projectmoon 0388daa8ac Fix docker push for master 2020-08-31 21:40:42 +00:00
projectmoon 374f426961 Switch to docker hub because github packages is useless. 2020-08-31 21:35:19 +00:00
projectmoon b90f1fe92a No point in building docker image only to build it again. 2020-08-31 20:57:47 +00:00
projectmoon 4ff8e95640 One CI pipeline for build, test, docker push. 2020-08-31 20:48:46 +00:00
ProjectMoon 0d16d9f2cd
Add GitHub CI Docker build 2020-08-31 20:24:57 +00:00
ProjectMoon 1e5331a7ee
Add rust github CI 2020-08-31 20:18:49 +00:00
projectmoon 8803b83ddb Remove useless trim function and unnecessary uses of eat_whitespace. 2020-08-31 20:16:43 +00:00
projectmoon da0819745a Switch to non-macro nom parser with better text handling.
By using the alpha1 function in complete mode, we are able to handle
arbitrary single-word commands (e.g. "!help") and proprly map the
remaining input to an empty string.
2020-08-31 00:07:56 +00:00
projectmoon 1f5c6d7553 Actually only trim the start and end of the string.
Be careful what you find on Stack Overflow, kids.
2020-08-31 00:05:40 +00:00
projectmoon d36a38d16f Basic documentation for the !help command. 2020-08-30 22:17:33 +00:00
projectmoon 0a2c5d5ce6 Remove editor-specific configuraton for vscode. 2020-08-30 22:15:46 +00:00
projectmoon 531844fbb7 Implement basic, not-well-formatted help. 2020-08-30 21:54:01 +00:00
projectmoon 8484e9ffde Allow extraneous whitespace at the end of command input. 2020-08-30 21:45:42 +00:00
projectmoon 32573d2e7c Update version to 0.5.0, and update license copyright. 2020-08-29 13:08:55 +00:00
projectmoon 16b5a3a51a Chance die should only succeed on 10. Added no-explode rolls. 2020-08-28 21:47:09 +00:00
projectmoon dfa96f51bd Update matrix SDK to latest master. 2020-08-28 21:10:59 +00:00
projectmoon bfc25ca30e Update readme documentation. 2020-08-28 21:06:57 +00:00
projectmoon e85196e105 Change readme header. 2020-08-28 00:42:56 +00:00
projectmoon 940e83077a Version 0.4.0: limit display of large dice pools, basic logging. 2020-08-28 00:37:39 +00:00
projectmoon 5983592eb3 Limit large the display of large dice pools. 2020-08-28 00:30:28 +00:00
projectmoon 54a3cc0880 Add basic logging to the dice bot. 2020-08-28 00:13:04 +00:00
projectmoon f0a1fe53fc Move CofD dice rolling into dice.rs file under cofd/ 2020-08-27 23:56:19 +00:00
projectmoon 18a05ebd7c Add auto-join, adapted from matrix SDK examples. 2020-08-27 23:50:32 +00:00
jeff 12fdc2a1c9 Add tar files to gitignore 2020-08-27 19:49:21 +00:00
projectmoon e8ce058e5d Properly format dramatic failures. 2020-08-27 19:49:21 +00:00
projectmoon 33ac91063b Set cache dir to something more accessible. 2020-08-27 19:49:21 +00:00
jeff f3de145663 New Dockerfile to work with glibc. 2020-08-27 19:49:21 +00:00
jeff 0eb181a7a9 Clean up dependencies and upgrade to 0.3.0 after matrix SDK port. 2020-08-27 00:05:19 +00:00
jeff 6572e1d04e Port dice bot to use matrix-rust-sdk.
This gives us many things for free, like automated state management,
no need to declare special API structs and use HTTP requests directly,
and most importantly: ENCRYPTION!
2020-08-26 23:53:30 +00:00
jeff 0f41acd078 gitignore updates 2020-08-23 21:24:04 +00:00
jeff a62727070a Update Cargo files for fork. 2020-08-23 21:24:04 +00:00
jeff 2a90927760 Add Dockerfile for self-contained deployment. 2020-08-23 21:24:04 +00:00
jeff e4e2122d81 Update readme about the fork. 2020-08-23 21:24:04 +00:00
projectmoon 2c08eb41ad Implement Chronicles of Darkness dice system, improve error handling.
Adds the Chronicles of Darkness 2E dice system to the bot, and also
somewhat improves the error handling when weird commands are received.
2020-08-23 21:24:04 +00:00
jeff b2b15f9a85 Update dependencies for LibreSSL 3.1 2020-08-23 21:24:04 +00:00
Taylor C. Richberger 05d1f92ae1 update readme 2020-04-21 22:51:00 -06:00
Taylor C. Richberger 13e62e053d flesh out the readme 2020-04-21 22:50:07 -06:00
Taylor C. Richberger 19fc5a6bc9 update Cargo.lock 2020-04-21 22:36:34 -06:00
Taylor C. Richberger f5b046e93b remove license-file 2020-04-21 22:36:17 -06:00
Taylor C. Richberger b727d3b076 add metadata to Cargo.toml 2020-04-21 22:34:50 -06:00
Taylor C. Richberger 6cb88a566c get everything working and slightly documented 2020-04-21 22:30:00 -06:00
Taylor C. Richberger 8e50218c03 cargo fix 2020-04-21 22:20:05 -06:00
Taylor C. Richberger 6d180734d5 make actually work with messages 2020-04-21 22:19:15 -06:00