Skip to content

lluisd/cr-decks-bot

Repository files navigation

Clash royale decks Telegram Bot

You can save more than 5 decks with this bot. Share your deck link with this bot or create a new one by using the bot menu. Then you can list all your decks and use / modify / delete anyone.

Configure it

You will need to configure the config/index.js by specifying the next environment variables (can be don by creating a .env file in the root)

  1. Your Telegram API Key provided by BotFather bot
TELEGRAM_TOKEN
  1. Database uri based on MONGO DB
MONGODB_URI
  1. A Cloudinary account
CLOUDINARY_CLOUD_NAME
CLOUDINARY_API_KEY
CLOUDINARY_API_SECRET
  1. ENABLING WEBHOOKS (ONLY FOR PROD)
USE_WEBHOOKS=1
PORT
EXTERNAL_URL

Demo

Test it with that telegram bot https://t.me/CrDecksBot (it takes some seconds to wake up)

image