Privacy Policy ๐๐๐:
This bot is written in JavaScript and uses the api from offical Discord.js and Whatsapp-web.js.
It does not cache any user information, nor does it store any messages.
This bot reads the messages sent by users on WhatsApp/Discord and performs two actions:
- If it’s plain text, it will forward it to the other side.
- If it’s a command, it will respond with the appropriate answer.
As of August 25, 2023: It connects three channels:
# | Typ | Group / Channel | Join | Read | Privacy |
---|---|---|---|---|---|
1 | Berlin Mahjong Community | ๐ | ๐ | Requires Approval from Admins. | |
2 | Discord | BMC D/W Interface – whatsapp | ๐ | ๐ | Requires specific Role to view the Msg in the channel. |
3 | Discord | Riichi Germany – berlin | ๐ | ๐ | Accessible to everyone. |
Mission 1: <Messages> Pass Msgs
All messages in the [#1 Berlin Mahjong Community] will be forwarded to the [#2 bmc-whatsapp channel of BMC Discord-Whatsapp Interface] by the bot. The other direction is also possible. Because both of these are private spaces for the clubs, they are, in another word, interconnected.
#1 Berlin Mahjong Community
โ all Msgs โ
#2 BMC D/W Interface
(bmc-whatsapp channel)
The messages between [#1 Berlin Mahjong Community] and the [#3 berlin channel of Riichi Germany] will only pass to each other, when the messages contain “/bot”.
#1 Berlin Mahjong Community
โ Msg with “/bot” โ
#3 Riichi Germany
(berlin channel)
Mission 2: <Command> Club Management and Mahjong Utilities
All commands start with a slash “/”.
There are 2 kinds of commands: Public Command, Private Command.
We defined 4 Use Case Scenario, 3 Private Scenarios, 1 Public Scenarios.
# | Typ | Group / Channel | Grade |
---|---|---|---|
1 | Berlin Mahjong Community | ๐ | |
2 | Discord | BMC D/W Interface – whatsapp | ๐ |
3 | Discord | Riichi Germany – berlin | ๐ |
4 | Private Message | ๐ |
The Public Command can be used in all Scenarios. And the Private Command can only be used in Private Scenarios.
The following Command 4 – 7 are Private Commands. The other commands are Public Commands.
1 Test Connection
/tsuomo
2 Ranking Result
/e
3 Ranking Result
/e <date>
4 Player Stat
/p <name>
5 Registration and Deregistration
/do <name1> [name2] ...
/-do <name1> [name2] ...
/sa <name1> [name2] ...
/-sa <name1> [name2] ...
/clubturnier <name1> [name2] ...
/-clubturnier <name1> [name2] ...
6 Show All Registration of Thursday
/donnerstag
/samstag
/wer
7 Draw Lots
/auslosen <num>
<Obj1>
<Obj1>
...
8 Fortune Cookie
/keks
9 Tile Efficiency: Tenhou Nanikiru
/? <tiles>
/?b <tiles>
10 Tile Efficiency: Pystyle Nanikiru
/?x <tiles> [melded] [rounds] [round wind] [seat wind] [dora indicators]
11 Hand Calculate
/c <tiles> <melded> <win tile> [tsumo/ron] [round wind] [seat wind]
12 Help
/h
/help
/hilfe
# <> are the required parameters, and [] are the optional parameters
# | P | #1 Group ๐ | #2 Discord Private Channel ๐ | #3 Discord Public Channel ๐ | #4 Private Message ๐ | |
---|---|---|---|---|---|---|
1 | Test | ๐ | ๐ฌ | ๐ฌ | ๐ฌ | ๐ฌ |
2 | Result | ๐ | ๐ | ๐ | ๐ฌ | ๐ฌ |
3 | Result | ๐ | ๐ฌ | ๐ฌ | ๐ฌ | ๐ฌ |
4 | Player | ๐ | ๐ค | ๐ฌ | ๐ซ | ๐ค |
5 | Reg & Dereg | ๐ | ๐ | ๐ | ๐ซ | [๐] |
6 | RegInfo | ๐ | ๐ | ๐ | ๐ซ | ๐ฌ |
7 | Lots | ๐ | ๐ | ๐ | ๐ฌ | ๐ฌ |
8 | Luck | ๐ | ๐ฌ | ๐ฌ | ๐ฌ | ๐ฌ |
9 | Question | ๐ | ๐ฌ | ๐ฌ | ๐ฌ | ๐ฌ |
10 | Question | ๐ | ๐ฌ | ๐ฌ | ๐ฌ | ๐ฌ |
11 | Question | ๐ | ๐ฌ | ๐ฌ | ๐ฌ | ๐ฌ |
12 | Help | ๐ | ๐ฌ | ๐ฌ | ๐ฌ | ๐ฌ |
M1 | Msg | ๐๏ธ | ๐๏ธ | ๐ซ | ||
M2 | /botMsg | ๐๏ธ | ๐๏ธ | ๐๏ธ | ||
M3 | Media | ๐๏ธ | ๐๏ธ | ๐ซ |
๐: Public Command, you can use it in all 4 Scenarios.
๐: Private Command, ๐ซ: Not Usable in the Public Scenario.
—-
๐: If you call it, you will receive several Sync Messages in Private Scenarios.
๐ฌ: If you call it, you will receive one reply message directly at the current dialogue.
๐ค: You will receive a whatsapp private message
—-
๐๏ธ: The Msg will be visible in this Scenario.
๐ซ: The Msg will not be visible in this Scenario.