projectmoon
ffda24833e
Fix build badge after rename.
continuous-integration/drone/push Build is passing
Details
2021-05-14 22:39:53 +00:00
projectmoon
9446435843
Version 0.10.0.
continuous-integration/drone/push Build is passing
Details
2021-05-14 22:27:57 +00:00
projectmoon
b894fb83db
Update binary entrypoint crate imports after rename.
2021-05-14 22:25:09 +00:00
projectmoon
30f800eb4a
Relicense to AGPL, change project name.
continuous-integration/drone/push Build is running
Details
2021-05-14 22:07:16 +00:00
projectmoon
e553472b7a
Update readme for user variables regarding Call Of Cthulhu.
continuous-integration/drone/push Build is passing
Details
2021-05-13 22:35:08 +00:00
projectmoon
2096af2512
Show username pill when executing multiple commands.
2021-05-13 22:31:38 +00:00
projectmoon
490d17790a
Add a few more aliases for cthulhu advancement rolls.
continuous-integration/drone/push Build is passing
Details
2021-05-13 22:12:47 +00:00
projectmoon
38fbef4101
Update help; add call of cthulhu.
continuous-integration/drone/push Build is passing
Details
2021-05-13 21:47:35 +00:00
projectmoon
0396911c56
Remove extraneous <p> tags in dice roll outputs.
continuous-integration/drone/push Build is running
Details
2021-05-13 21:29:44 +00:00
projectmoon
c4e0393d99
Update variables on advancement rolls.
continuous-integration/drone/push Build is passing
Details
2021-05-13 21:16:41 +00:00
projectmoon
d67328ac6b
Cthulhu dice only take one amount now
2021-05-13 20:24:17 +00:00
projectmoon
ec66bfa3d6
Add parse_single_amount
2021-05-13 20:06:37 +00:00
projectmoon
8939d6debd
Update dependencies.
continuous-integration/drone/push Build is passing
Details
2021-05-13 19:48:29 +00:00
projectmoon
0f35c1932b
Merge pull request 'Update to Rust 1.51' ( #57 ) from rust-1.51 into master
...
continuous-integration/drone/push Build is passing
Details
Reviewed-on: projectmoon/matrix-dicebot#57
2021-04-24 19:42:31 +00:00
projectmoon
7a506bdc4f
Update drone to 1.51
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
2021-04-20 21:39:08 +00:00
projectmoon
b62359c172
Update to rust 1.51 with rustup, for zeroconf 0.4 which requires const generics.
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/pr Build is failing
Details
2021-04-20 21:35:12 +00:00
projectmoon
8d1a1a5ca6
Update dependencies.
2021-04-20 21:19:47 +00:00
projectmoon
119321e01a
Update dependencies.
continuous-integration/drone/push Build is passing
Details
2021-04-02 16:07:15 +00:00
projectmoon
ba6a4c9679
Update matrix SDK to latest with Room enum 2.0
continuous-integration/drone/push Build is passing
Details
2021-03-22 15:01:49 +00:00
projectmoon
e5431a587d
Support complex expressions on CoC advancement rolls. ( #55 )
...
continuous-integration/drone/push Build is passing
Details
Also remove todo, update some CoC command descriptions.
Fixes #54 .
Co-Authored-By: projectmoon <projectmoon@noreply.git.agnos.is>
Co-Committed-By: projectmoon <projectmoon@noreply.git.agnos.is>
2021-03-18 20:54:49 +00:00
projectmoon
0821cf2bf5
Change to OpenSSL from LibreSSL.
continuous-integration/drone/push Build is passing
Details
2021-03-18 19:40:11 +00:00
projectmoon
85557c0382
Split handling of comand results from execution.
continuous-integration/drone/push Build is passing
Details
2021-03-15 20:27:57 +00:00
projectmoon
d30d39ff1e
Only consume max allowed commands + 1 when dealing with multiple commands
2021-03-15 20:13:27 +00:00
projectmoon
8e4eb574d2
Update to latest matrix SDK and other dependencies.
continuous-integration/drone/push Build is passing
Details
2021-03-15 20:10:42 +00:00
projectmoon
67291e6deb
Switch to Duration::from_secs, because we don't need nanos.
continuous-integration/drone/push Build is passing
Details
2021-02-10 20:30:17 +00:00
projectmoon
7e23f80e42
Get user list: replace format! with direct string conversion.
2021-02-10 20:25:42 +00:00
projectmoon
d813198cb0
Reply with executed command as quote (single commands only).
continuous-integration/drone/push Build is passing
Details
2021-02-09 22:22:09 +00:00
projectmoon
693167a581
Log when we are performing initial sync.
2021-02-09 21:59:32 +00:00
projectmoon
9ab65b8943
Update env_logger, rand, phf, itertools to newer semvers.
continuous-integration/drone/push Build is passing
Details
2021-02-09 21:56:13 +00:00
projectmoon
8817cae9da
Update dependencies. Should partially address rate limiting.
continuous-integration/drone/push Build is passing
Details
2021-02-09 21:27:14 +00:00
projectmoon
ef4f1ef02f
Small code cleanup in matrix.rs
continuous-integration/drone/push Build is passing
Details
2021-02-08 20:14:11 +00:00
projectmoon
d42e075c5c
Update dependencies.
continuous-integration/drone/push Build is passing
Details
2021-02-07 21:58:22 +00:00
projectmoon
b0707dff05
bot: Move multi-failure response join() call into the format!().
continuous-integration/drone/push Build is passing
Details
2021-02-07 21:42:32 +00:00
projectmoon
304c91c69d
Rename CommandResult to ExecutionResult
continuous-integration/drone/push Build is passing
Details
2021-02-07 21:39:21 +00:00
projectmoon
94be4d2578
Avoid key clone when deleting variables. Minor db code cleanup.
continuous-integration/drone/push Build is passing
Details
2021-02-07 21:16:58 +00:00
projectmoon
14f8bc8b39
Reuse device ID generated by matrix SDK after first login.
...
continuous-integration/drone/push Build is passing
Details
Adds new db tree for simple global state values (which also lays
foundation for other stuff), and stores device ID in that tree after
first login. The ID is then reused on subsequent runs of the
application.
This is simpler than storing device ID in config file.
Fixes #9 .
2021-02-07 14:21:28 +00:00
projectmoon
7db639f16c
Update cargo.lock for 0.9.0
2021-02-07 14:21:21 +00:00
projectmoon
b3cd7266e4
Version 0.9.0. Bug fix release.
...
continuous-integration/drone/push Build is passing
Details
- Properly reject large numbers outside bounds of i32 when rolling dice.
- Avoid unnecessary clone of error message when calculating dice amounts.
- Allow up to 50 commands to be executed per message.
- Show failed commands with errors when executing multiple commands.
- Properly format dice plurality when rolling CofD dice pools.
- Use 'username pills' instead of raw user ID in response messages.
- Update matrix SDK to latest.
- General code reorganization for better maintainability.
2021-02-04 19:37:22 +00:00
projectmoon
12b7d355d2
Docker image is 'tiny', not 'glibc-tiny'. Update to 0.8.0.
continuous-integration/drone/push Build is passing
Details
2021-02-04 18:56:15 +00:00
projectmoon
3c177dc304
Always point to glibc-tiny, not glibc.
continuous-integration/drone/push Build is failing
Details
2021-02-03 23:33:59 +00:00
projectmoon
f6099c657e
Always point to glibc image for Docker build.
continuous-integration/drone/push Build is passing
Details
2021-02-03 23:32:45 +00:00
projectmoon
932e06ad91
Fix database error name. Improve dice number conversion error message.
continuous-integration/drone/push Build is passing
Details
2021-02-03 23:27:47 +00:00
projectmoon
b7ccd4e7ad
Refactor dice amount parser to reusable parsers.
...
This follows the example in the Combine documentation to use impl
trait return types so we can isolate the parsers into their own
functions.
2021-02-03 23:27:14 +00:00
projectmoon
b32b761f82
Update combine and dependencies.
2021-02-03 23:23:15 +00:00
projectmoon
9a5a18268c
Parsing huge numbers are now errors, not variables.
...
Fixed the dice amount parsing code to propagate a parsing result
through the parser, while properly handling string to i32 conversion.
We now only attempt to convert to i32 if all characters in the
expression are numeric.
This commit also refactors the dice parsing by moving most of the
parsing closures into separate functions, which makes the parsing
function itself more readable. Some variable names were also changed,
for further clarity.
Fixes #21 .
2021-02-03 23:23:03 +00:00
projectmoon
f5a8e16ce0
Slight refactor of calculate_dice_amount. Lazy error handling.
...
continuous-integration/drone/push Build is passing
Details
Use unwrap_or_else instead of unwrap_or to prevent unnecessary error
string creation. Also some changes to make the code a bit more
readable.
2021-02-02 22:02:43 +00:00
projectmoon
7512ca0694
Allow up to 50 commands per message.
...
continuous-integration/drone/push Build is passing
Details
If the amount of commands in a single message is greater, the bot will
now return an error. Includes slight refactoring of command execution
code to make use of streams for async iter-like mapping of the command
list.
Fixes #24 .
2021-02-02 21:45:59 +00:00
projectmoon
3faca6a2df
Update dependencies.
continuous-integration/drone/push Build is passing
Details
2021-02-02 20:21:31 +00:00
projectmoon
042ecc40e0
Properly format dice plurality in CofD dice pools.
...
continuous-integration/drone/push Build is passing
Details
Fixes #30 .
2021-01-31 14:57:18 +00:00
projectmoon
df54e6555a
Use 'username bubbles' in responses instead of straight user ID.
continuous-integration/drone/push Build is passing
Details
2021-01-31 14:46:53 +00:00