PlexBot is a WhatsApp bot built to restart the StreamBoy TV server. That’s it—no fancy extra features, no unnecessary bloat. It listens to specific WhatsApp group chats for the /restart
command and runs a server restart, logging everything along the way. If you’re looking for a bot to handle anything else, this ain’t it.
- Listens to designated WhatsApp group chats for the
/restart
command. - Logs all messages in the group chats it monitors.
- Sends an automated confirmation when the restart is done.
- Includes a
/test
command to check if the bot is running properly.
-
Node.js: Install Node.js (v18 or above).
-
PM2: Install PM2 for continuous operation.
npm install -g pm2
- Venom handles WhatsApp Web authentication and bot interaction. Dependencies are included in the npm install step
git clone https://github.com/0xb0mb3r/PlexBot.git
cd PlexBot
npm install
3. Set Up WhatsApp Authentication with Venom Bot
The first time you start the bot, Venom Bot will prompt you to authenticate via WhatsApp Web. A QR code will be displayed in the terminal. Scan this QR code using your WhatsApp account.
Venom Bot will store the session data in the tokens
folder for future use.
Run the login script to log in to the StreamBoy TV dashboard:
node login.js
- This opens a browser in non-headless mode. Log in manually with your credentials and ensure you select the "Remember Me" option.
- A
user_data
folder will be created to store your session data for the dashboard.
Use the bot’s logging feature to identify the group chat IDs. Any messages sent to group chats will be logged in messages.log
in the following format:
GROUP_ID | GROUP_NAME | MESSAGE
Add the IDs of the groups you want the bot to monitor in bot.js
:
const targetGroupIds = ['<GROUP_ID_1>', '<GROUP_ID_2>'];
Run the bot as a PM2 task for continuous operation:
pm2 start bot.js --name plexbot
To view real-time logs:
pm2 logs plexbot
- Restart:
pm2 restart plexbot
- Stop:
pm2 stop plexbot
bot.js
: The main script that handles commands, interactions, and logging.login.js
: Logs in to the StreamBoy TV dashboard and sets up the session.messages.log
: Logs all messages from monitored group chats (empty by default).user_data/
: Stores session data for the StreamBoy TV dashboard login.tokens/
: Stores WhatsApp session data for Venom Bot.
This project is licensed under the MIT License. See the LICENSE file for details.