This telegram bot uses FFmpeg to generate "Dancing Shrimp with Beer" videos, with a given audio on top of it.
Chat with a live version of the bot https://t.me/dancingshrimpbot.
Requirements: A Telegram Bot and its API Token, Node.js and npm.
- Clone the project:
git clone https://github.com/g-otn/telegram-bot-dancing-shrimp.git
cd telegram-bot-dancing-shrimp/
- Install dependencies:
npm i
- Download and/or install FFmpeg.
- Create a file named
.env
in the project root:
touch .env # Linux
cd > .env # Windows
- Type in the
.env
file the required environment variables:
# Your Telegram Bot API Token
BOT_TOKEN=12345678:AABBCCDDEEFFGGHHIIJJKKLLMMNNOOPPQQ
# Path to the ffmpeg executable, not needed if you can access it from the command line
FFMPEG_PATH=ffmpeg/ffmpeg.exe
# The path for the "Dancing Shrimp with Beer" video
VIDEO_PATH=assets/video/shrimp-15s.mp4
- Start the bot, you should see a " has started." message in a few seconds
node .
Inspired by @shrimpdancing2's tweet.