Skip to content

My coworker and I were fed up with the other trainees always reading along on our iPads when we were talking trash about them. So I built Altchat. Now we can write freely – and the others have no idea what it says. The language is fast and easy to learn 😎 We finished it in under 180 minutes.

Notifications You must be signed in to change notification settings

mrgloeckchen/altchat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

38 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🟒 ALTCHAT v1.0.5-beta

(WhatsApp Notification Bot included)

AltChat is a secure, private, terminal-style web chat system designed for closed communities. It runs on a Flask + Socket.IO server with custom encoding and real-time features.

This version includes a WhatsApp Notification Bot to alert offline users when they receive a new message.


πŸ“ Project Structure

altchat-project/
β”œβ”€β”€ altchat/             # Flask-Socket.IO server (AltChat)
β”‚   β”œβ”€β”€ templates/       # HTML files (chat, login, etc.)
β”‚   β”œβ”€β”€ static/          # CSS, JS, fonts
β”‚   β”œβ”€β”€ database/        # SQLite DBs
β”‚   └── app.py           # Main server logic
β”‚
β”œβ”€β”€ whatsapp-bot/        # WhatsApp Notification Bot
β”‚   β”œβ”€β”€ bot.cjs          # Node.js bot code
β”‚   β”œβ”€β”€ package.json     # Bot dependencies
β”‚   β”œβ”€β”€ package-lock.json
β”‚   └── auth_info/       # WhatsApp session (auto-created)
└── README.md

βš™οΈ Requirements

  • Python 3.10+
  • Node.js v18+
  • pip (Python)
  • npm (Node.js)
  • WhatsApp account for pairing

πŸ₯ͺ Installation

1. Clone the project

git clone https://github.com/mrgloeckchen/altchat.git
cd altchat

2. Install AltChat (Python backend)

cd altchat
pip install -r requirements.txt

Make sure flask, flask_socketio, eventlet, sqlite3, etc. are installed.


3. Install WhatsApp Bot

cd ../whatsapp-bot
npm install

This installs:

  • @whiskeysockets/baileys
  • express
  • pino
  • qrcode-terminal
  • @hapi/boom

πŸš€ Run the System

1. Start WhatsApp Bot

cd whatsapp-bot
node bot.cjs

🟑 On first launch, a QR code will appear in the terminal. Scan it using WhatsApp β†’ Settings β†’ Linked Devices.


2. Start AltChat Server

cd ../altchat
python3 app.py

Now visit: πŸ‘‰ http://localhost:5000


πŸ”” How Notifications Work

  • If a user receives a message while offline,
  • AltChat sends a POST to http://localhost:3000/send
  • The bot delivers the message via WhatsApp.

βœ… Format:

{
  "number": "491234567890",
  "message": "New message in AltChat!"
}

πŸ›‘οΈ Security

  • Auth system with admin & mod roles
  • Offline user tracking
  • User-specific color assignments
  • Altspracheβ„’ transformation system

πŸ“· Screenshot

WhatsApp Notification Preview

Login


❗ Don't Track This

Make sure .gitignore includes:

node_modules/
auth_info/
__pycache__/
*.db
.env

πŸ’‘ Tip

You can create a start_all.sh script to run both services:

#!/bin/bash
(cd whatsapp-bot && node bot.cjs) &
(cd altchat && python3 app.py)

πŸ₯ƒ Maintainer

Made with πŸ’š by @mrgloeckchen Follow on TikTok & Instagram: @mrgloeckchen


🧠 License

MIT – free to use, mod, remix & enhance.

About

My coworker and I were fed up with the other trainees always reading along on our iPads when we were talking trash about them. So I built Altchat. Now we can write freely – and the others have no idea what it says. The language is fast and easy to learn 😎 We finished it in under 180 minutes.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published