Skip to content

Commit 79fcbbd

Browse files
committed
Update configuration docs with case_sensitive token option
1 parent c76293e commit 79fcbbd

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

docs/configuration.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,14 @@ color = "#ff5f5f"
5151

5252
[[olli.tokens]]
5353
token = "INFO"
54+
case_sensitive = true
5455
# When no color is provided it falls back to blurple.
5556
```
5657

5758
Tokens accept a `token` and `color` key, the first one is required. `token` represents the phrase that should be searched for and `color` is a hex color (**with** hashtag) that will be used for the generated embeds.
5859

60+
Tokens also accept a `case_sensitive` key which defaults to `false`. If you want to match the case as written in the `token` field set `case_sensitive` to `true` in the token config.
61+
5962
## `loki`
6063

6164
`api_url`: The base URL of your Loki instance, for example `"http://localhost:3100/"`.
@@ -94,6 +97,7 @@ color = "#ff5f5f"
9497
[[olli.tokens]]
9598
token = "WARN"
9699
color = "#ffe24d"
100+
case_sensitive = true
97101

98102
[[olli.tokens]]
99103
token = "INFO"

0 commit comments

Comments
 (0)