Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/g-otn/telegram-bot-dancing-shrimp
Telegram bot that generates "Dancing Shrimp with Bear" videos with a given audio
https://github.com/g-otn/telegram-bot-dancing-shrimp
ffmpeg meme-generator telegram-bot video-generation
Last synced: 4 days ago
JSON representation
Telegram bot that generates "Dancing Shrimp with Bear" videos with a given audio
- Host: GitHub
- URL: https://github.com/g-otn/telegram-bot-dancing-shrimp
- Owner: g-otn
- License: mit
- Created: 2019-11-10T23:12:44.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T08:28:46.000Z (almost 2 years ago)
- Last Synced: 2023-03-06T00:10:52.908Z (over 1 year ago)
- Topics: ffmpeg, meme-generator, telegram-bot, video-generation
- Language: JavaScript
- Homepage: https://t.me/dancingshrimpbot
- Size: 2.26 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://core.telegram.org/bots#3-how-do-i-create-a-bot) and its API Token, Node.js and npm.1. Clone the project:
```bash
git clone https://github.com/g-otn/telegram-bot-dancing-shrimp.git
cd telegram-bot-dancing-shrimp/
```
2. Install dependencies:
```bash
npm i
```
3. Download and/or install [FFmpeg](https://www.ffmpeg.org/download.html).
4. Create a file named `.env` in the project root:
```bash
touch .env # Linux
cd > .env # Windows
```
5. Type in the `.env` file the required environment variables:
```ini
# 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
```
6. Start the bot, you should see a " has started." message in a few seconds
```
node .
```## Acknoledgements
Inspired by
[@shrimpdancing2](https://twitter.com/shrimpdancing2)'s
[tweet](https://twitter.com/shrimpdancing2/status/1190010801140256768).