From 944324252c0682086f5c336bf20482e997e57c6b Mon Sep 17 00:00:00 2001 From: starlord Date: Mon, 22 Apr 2024 08:29:26 -0700 Subject: [PATCH] original --- bots/dice.yaml | 16 ++++++++++ bots/librarian.yaml | 75 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 91 insertions(+) create mode 100644 bots/dice.yaml create mode 100644 bots/librarian.yaml diff --git a/bots/dice.yaml b/bots/dice.yaml new file mode 100644 index 0000000..c4e17a9 --- /dev/null +++ b/bots/dice.yaml @@ -0,0 +1,16 @@ +# Whether or not the output should include the results of each XdY statement. +show_statement: false +# Whether or not the output should include the results of individual dice rolls. +show_rolls: false + +# Number of dice rolls (the Y in XdY) after which show_rolls is ignored. +show_rolls_limit: 20 +# Number of dice rolls after which dice rolls will not be individually randomized, +# but rather picked randomly from a normal distribution. +gauss_limit: 100 + +# Maximum number of digits in result. +result_max_length: 512 + +# Number of decimal places that results should be rounded to. Set to -1 to disable rounding. +round_decimals: 2 diff --git a/bots/librarian.yaml b/bots/librarian.yaml new file mode 100644 index 0000000..a7cc69f --- /dev/null +++ b/bots/librarian.yaml @@ -0,0 +1,75 @@ +templates: + page: + type: m.room.message + content: + msgtype: m.notice + body: $${message} + formatted_body: $${formatted_message} + format: org.matrix.custom.html + +default_flags: +- ignorecase +antispam: + room: + max: 1 + delay: 15 + user: + max: 5 + delay: 15 + +rules: + purpose: + matches: [^\!lib$] + template: page + variables: + message: | + I am the Librarian. Use `!lib {command}` to request I cite pages. + # Commands: + - *no command* - Access this help file. + - `intro` - General information on the origin of the game. + - `rules` - Get the rulebook. + - `dice` - How to use the **Dice Bot** + formatted_message: | + I am the Librarian. Use !lib {command} to request I cite pages. +

Commands:

+ + + format: + matches: [^\!lib rules$] + template: page + variables: + message: | + [Click here for the rulebook in markdown...](https://md.4267656.xyz/s/Armada) + formatted_message: | + Click here for the rulebook in markdown... + + dice: + matches: [^\!lib dice$] + template: page + variables: + message: | + ## Using the Dice Bot + To roll some dice, use the command as follows: `!roll` `XdY` `+|-` `Z` + > For example: `!roll 2d8 + 5` + Note: If only rolling 1 die, the `X` can be omitted. + Also: using `!roll` alone will roll **1d6** + formatted_message: |- +

Using the Dice Bot

+ To roll some dice, use the command as follows: !roll XdY +|- Z
+
For example: !roll 2d8 + 5
+ Note: If only rolling 1 die, the X can be omitted.
+ Also: using !roll alone will roll 1d6 + + intro: + matches: [^\!lib intro$] + template: page + variables: + message: | + To get an idea of the origin/background of the game, or to find out more about the author and to help contribute, [click here...](https://md.4267656.xyz/s/Intro) + formatted_message: | + To get an idea of the origin/background of the game, or to find out more about the author and to help contribute, click here...