From 3ef6f8e6e63b13a8cd598fcd887c72414f0f2f53 Mon Sep 17 00:00:00 2001 From: Mute Date: Sat, 9 Jul 2022 01:22:47 +0000 Subject: [PATCH] Update 'TARGET' --- TARGET.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 TARGET.md diff --git a/TARGET.md b/TARGET.md new file mode 100644 index 0000000..95d419a --- /dev/null +++ b/TARGET.md @@ -0,0 +1,20 @@ +# Target selection +Some commands require a target, this page explains all the ways you can provide one. + +## Empty target +Empty target means you. Example: `/mbchc donate`. Note that this isn't a valid command, because you can't donate to yourself. + +## Relative positions +`<` and `>` symbols indicate people left and right of you, the offset is equal to the amount of symbols, so `<<<<` means fourth person to your left. It wraps around, so for example if there are only two persons in the room including you, `>>` means yourself. Example: `/mbchc donate >`. + +## Absolute positions +A single digit means the person't position in the room, starting from zero. Numbers between 11 and 15, as well as 21 and 25 mean the person's position in the row (top and bottom). Example: `/mbchc donate 22` means the second person from the left in the bottom row. + +## General match +Target is treated as a substring that is matched against everyone's MemberNumber, name and nickname. Example: `/mbchc donate 823`. + +## Explicit MemberNumber match +If a target is prefixed by `=`, it will only match the MemberNumber. Example: `/mbchc donate =22`. + +## Explicit name match +If a target is prefixed by `@`, it will only match the name and nickname. Example: `/mbchc donate @1337`.