From f010a7bf19229c0f088a8d5f6ddfecf83a3e128d Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Sat, 22 Aug 2015 17:03:26 +0300 Subject: [PATCH] bot: convert previous commit into table --- pages/bot.markdown | 71 +++++++++++++++++++++++++++++++++++----------- 1 file changed, 54 insertions(+), 17 deletions(-) diff --git a/pages/bot.markdown b/pages/bot.markdown index 3225883..b8f6f81 100644 --- a/pages/bot.markdown +++ b/pages/bot.markdown @@ -33,24 +33,61 @@ written by me. ### Addressing the bot -* Currently the bot replies to the following globally: - * prefix characters: `%` `+` `!` - * `+ping` `%ping` `+ping` - * can be changed per-channel - * nick in the beginning and end - * `bot: ping` `ping, bot` - * prefix strings: `msb1` & `msb2` (for legacy reasons) and `__` - * can be changed per-channel - * MessageParser (in the middle of line): `__` & `__()` - * Does the bot work?`__ping` for single-worded commands and - `what is Linux? __(wiki Linux)` for commands with multiple words. - * **I won't change this per channel.** +The following table opens where the bot will reply to in channel. In PM +the bot replies to everything *(without prefix)*. -* Checking the different channel-specific addressing methods: - * prefix characters: `channel reply.whenaddressedby.chars` - * nick in the beginning and end: `channel reply.whenaddressedby.nick` - `channel reply.whenaddressedby.nick.atend - * prefix strings: `channel reply.whenaddressedby.strings` + + + + + + + + + + + + + + + + + + + + + + + + + +
Replies toExamplesChangeable per-channel>/th> +
prefix characters: `%` `+` `!`+ping` `%ping` `+ping`yes
nick in the beginning and end`bot: ping` `ping, bot`Yes (not nick), but why?
prefix strings: `msb1` & `msb2` (for legacy reasons) and + `__``msb1ping` `msb2ping` `__ping`yes
MessageParser (in the middle of line): `__` & `__()``Does the bot work? __ping` for single-worded commands and + `what is Linux? __(wiki Linux)` for commands with multiple + words.**no**(too difficult, but possible)
+ +For checking the channel specific prefixes, refer to the following +commands. They can be used in channel (if you know the prefix) or PM. + + + + + + + + + + + + + + + +
PrefixCommand
Prefix characters`channel reply.whenaddressedby.chars
Nick (beginning & end)`channel reply.whenaddressedby.nick` & + ` channel reply.whenaddressedby.nick.atend` +
prefix strings`channel reply.whenaddressedby.strings` +
### Quick start