This commit is contained in:
starlord 2024-04-22 08:29:26 -07:00
parent 497ae05ce0
commit 944324252c
2 changed files with 91 additions and 0 deletions

16
bots/dice.yaml Normal file
View file

@ -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

75
bots/librarian.yaml Normal file
View file

@ -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 <b>Librarian</b>. Use <code>!lib {command}</code> to request I cite pages.
<h1>Commands:</h1>
<ul>
<li><i>no command</i> - Access this help file.</li>
<li><code>intro</code> - General information on the origin of the game.</li>
<li><code>rules</code> - Get the rulebook.</li>
<li><code>dice</code> - How to use the <b>Dice Bot</b></li>
</ul>
format:
matches: [^\!lib rules$]
template: page
variables:
message: |
[Click here for the rulebook in markdown...](https://md.4267656.xyz/s/Armada)
formatted_message: |
<a href="https://md.4267656.xyz/s/Armada">Click here for the rulebook in markdown...</a>
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: |-
<h2>Using the Dice Bot</h2>
To roll some dice, use the command as follows: <code>!roll</code> <code>XdY</code> <code>+|-</code> <code>Z</code><br />
<blockquote>For example: <code>!roll 2d8 + 5</code></blockquote>
Note: If only rolling 1 die, the <code>X</code> can be omitted.<br />
Also: using <code>!roll</code> alone will roll <b>1d6</b>
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, <a href="https://md.4267656.xyz/s/Intro">click here...</a>