Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sbence/teletube
https://github.com/sbence/teletube
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/sbence/teletube
- Owner: SBence
- Created: 2024-10-02T17:58:45.000Z (about 2 months ago)
- Default Branch: master
- Last Pushed: 2024-11-11T06:20:57.000Z (9 days ago)
- Last Synced: 2024-11-11T07:24:17.072Z (9 days ago)
- Language: TypeScript
- Size: 400 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TeleTube
A Telegram bot that provides extra inforamtion on video links
## Preparation
### Creating a bot on Telegram
Creating a bot is done through [@BotFather](https://t.me/BotFather). See the [official documentation](https://core.telegram.org/bots/features#creating-a-new-bot) for more details.
**Make sure to disable [privacy mode](https://core.telegram.org/bots/features#privacy-mode) to allow the bot to work in group chats as well.**
### Project installation
1. Install dependencies:
```sh
yarn install
```2. Add your bot token from BotFather to the `.env` file in the project directory:
```properties
TOKEN=
```## Development
### Running the bot
```sh
yarn run dev:start
```### Building for production
```sh
yarn run build
```Build files will be output to `build/prod`.
## Deployment
_The steps below should be done in the deployment environment._
1. Copy the contents of the `build/prod` folder to the desired location on the server.
2. Follow the steps in the [Project installation](#project-installation) section.
3. Run the bot:```sh
node index.cjs
```## Usage
The bot automatically replies to messages containing video links.