This is a code bundle for Brainhack.
Run npm i to install the dependencies.
Run npm run dev to start the development server.
To run the bot:
- Install Python dependencies with
pip install -r apps/telegram-bot/requirements.txt. - Set
TELEGRAM_API_ID,TELEGRAM_API_HASH,TELEGRAM_BOT_TOKEN, and optionallyBACKEND_URL. - Start the bot with
python apps/telegram-bot/bot.py.
The Telegram linking flow is:
- Sign in to the ShieldVerse web app.
- Open the Telegram page and generate a link code.
- Send
/link <code>to the Telegram bot. - Forward suspicious messages to the bot so scans and XP are saved to your profile.
The bot responds to /start, /link, /help, /stats, /missions, and any forwarded or pasted suspicious message.