You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
1.9 KiB

7 years ago
# Twitch and Discord chat bot
7 years ago
The bot listens for responses to `!quote add`, `!quote edit` and `!quote remove` commands, and updates the quotes database accordingly
6 years ago
using [HTTP API](https://gitea.brno.mraveniste.cc/turbotraktor/ladylilia.com/src/branch/master/quotes-api/README.md).
7 years ago
## Supported commands
6 years ago
* `!lastquote` - posts the most recent quote
* `!findquote PATTERN` - searches for quotes matching `PATTERN` and in case multiple matches are found, posts one of them randomly
- `PATTERN` has to be at least 3 characters long
* `!bellagram`, `!bellapics`, `!instabella`, `!instagram` - posts a link to a random Instagram picture of Bella
* `!yt QUERY` - queries Lady Lilia's Youtube channel and posts a link to the most relevant result
7 years ago
- `QUERY` can contain `|` (logical **or**) and `-` (logical **not**) operators, for example: `!yt oblivion -nehrim`
6 years ago
* `!clip PATTERN`, `!findclip PATTERN` - searches for Twitch clips matching `PATTERN` and in case multiple matches are found, posts one of them randomly
- `PATTERN` has to be at least 3 characters long
6 years ago
* `!roll FORMULA` - performs a dice roll
- `FORMULA` syntax is inspired by [roll20.net](https://wiki.roll20.net/Dice_Reference)
* `!convert EXPRESSION [UNITS]`, `!conv EXPRESSION [UNITS]` - performs unit conversion and posts the result
* `!cheese QUERY` *(Discord only)* - queries [cheese.com](https://cheese.com) and posts details about a cheese
* `!nextstream` *(Discord only)* - posts details about the next scheduled stream (if any)
* `!giveaway` *(Twitch only)* - posts info about current giveaway (if any)
### Mod-only commands
6 years ago
* `!syncquotes` *(Twitch only)* - performs synchronization of the quotes database with Twitch VODs
* `!command set COMMAND TEXT` *(Twitch only)* - adds a new extra command or updates an existing one
- instances of `{user}` in `TEXT` will be substituted when the command is executed
6 years ago
* `!command unset COMMAND` *(Twitch only)* - removes an existing extra command