Skip to content

Telegram bot that generates "Dancing Shrimp with Bear" videos with a given audio

License

Notifications You must be signed in to change notification settings

g-otn/telegram-bot-dancing-shrimp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

telegram-bot-dancing-shrimp

This telegram bot uses FFmpeg to generate "Dancing Shrimp with Beer" videos, with a given audio on top of it.

Usage

Chat with a live version of the bot https://t.me/dancingshrimpbot.

Installation

Requirements: A Telegram Bot and its API Token, Node.js and npm.

  1. Clone the project:
git clone https://github.com/g-otn/telegram-bot-dancing-shrimp.git
cd telegram-bot-dancing-shrimp/
  1. Install dependencies:
npm i
  1. Download and/or install FFmpeg.
  2. Create a file named .env in the project root:
touch .env # Linux
cd > .env  # Windows
  1. 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
  1. Start the bot, you should see a " has started." message in a few seconds
node .

Acknoledgements

Inspired by @shrimpdancing2's tweet.

About

Telegram bot that generates "Dancing Shrimp with Bear" videos with a given audio

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published