BMC Discord-Whatsapp Bot

Privacy Policy πŸ™ˆπŸ™‰πŸ™Š:

This bot is written in JavaScript and uses the api from offical Discord.js and Whatsapp-web.js. And it is running on our own server.

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:

  1. If it’s plain text / media, it will forward it to the other side.
  2. If it’s a command, it will respond with the appropriate answer.

Mission 1: <Messages> Pass Msgs

As of Mar04, 2024: It connects:

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.

#TypGroup / ChannelGrade
1WhatsAppBerlin Mahjong CommunityπŸ”’
2DiscordBMC D/W Interface – #bmc-whatsappπŸ”’
3DiscordRiichi DACH- #berlin🌐
4WhatsAppPrivate Message to BotπŸ”’

The Public Command can be used in all Scenarios. And the Private Command can only be used in Private Scenarios.

The following Command 4 – 6 are Private Commands. The other commands are Public Commands.

<>: required parameters
[]: optional parameter

1 Test Connection
/tsuomo
/keks

2 Ranking Result
/e

3 Player Stat
/p <name>

4 Registration and Deregistration
/do <name1> [name2] ...
/-do <name1> [name2] ...
/sa <name1> [name2] ...
/-sa <name1> [name2] ...
/both <name1> [name2]
/beide <name1> [name2]
/clubturnier <name1> [name2] ...
/-clubturnier <name1> [name2] ...

5 Show All Registration of Thursday
/donnerstag
/samstag
/wer

6 Draw Lots
/auslosen <num>
<Obj1>
<Obj1>
...

7 Tile Efficiency: Tenhou Nanikiru
/? <tiles>
/?b <tiles>

8 Tile Efficiency: Pystyle Nanikiru
/?x <tiles> [melded] [rounds] [round wind] [seat wind] [dora indicators]

9 Hand Calculate
/c <tiles> <melded> <win tile> [tsumo/ron] [round wind] [seat wind]

10 Help
/h
/help
/hilfe

# <> are the required parameters, and [] are the optional parameters
#P#1
Whatsapp
Group

πŸ”’
#2
Discord
Private
Channel
πŸ”’
#3
Discord
Public
Channel
🌐
#4
Whatsapp
Private
Message
πŸ”’
1TestπŸŒπŸ’¬πŸ’¬πŸ’¬πŸ’¬
2ResultπŸŒπŸ”„πŸ”„πŸ’¬πŸ’¬
3PlayerπŸ”’πŸ€πŸ’¬πŸš«πŸ€
4Reg & DeregπŸ”’πŸ”„πŸ”„πŸš«[πŸ”„]
5RegInfoπŸ”’πŸ”„πŸ”„πŸš«πŸ’¬
6LotsπŸŒπŸ”„πŸ”„πŸ’¬πŸ’¬
7QuestionπŸŒπŸ’¬πŸ’¬πŸ’¬πŸ’¬
8QuestionπŸŒπŸ’¬πŸ’¬πŸ’¬πŸ’¬
9QuestionπŸŒπŸ’¬πŸ’¬πŸ’¬πŸ’¬
10HelpπŸŒπŸ’¬πŸ’¬πŸ’¬πŸ’¬
M1Msg / MediaπŸ‘οΈπŸ‘οΈπŸš«
M2/botMsgπŸ‘οΈπŸ‘οΈπŸ‘οΈ
A super difficult table to show the react of a command πŸ˜… [ask me]

🌐: 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.

0 0 votes
Article Rating
Abonnieren
Benachrichtige mich bei

0 Comments
Inline Feedbacks
View all comments