https://github.com/stepanzubkov/florgon-cc-paste-bot
Telegram bot for Florgon CC Pastes
https://github.com/stepanzubkov/florgon-cc-paste-bot
Last synced: over 1 year ago
JSON representation
Telegram bot for Florgon CC Pastes
- Host: GitHub
- URL: https://github.com/stepanzubkov/florgon-cc-paste-bot
- Owner: stepanzubkov
- License: agpl-3.0
- Created: 2023-11-18T17:34:15.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-03-08T13:44:44.000Z (over 2 years ago)
- Last Synced: 2025-01-23T14:15:10.889Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 102 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# Florgon CC Pastes Bot
Simple telegram bot for **Florgon CC Pastes** using it official [api](https://github.com/florgon/cc-api), written in python using aiogram.
It is free software and licensed under **AGPLv3 or later**.
## Deploy
For deployment you should create telegram bot at BotFather and install docker with docker-compose via your package manager.
1.
```
cd src
cp config_example.env config.env
```
2. Open `config.env` file and fill in your values for environment variables.
3. (I recommend you to use docker with docker-compose)
```
docker-compose build
docker-compose up
```
4. Check docker logs and then check the bot with `/start` command
## Using
Available commands:
- */start* - Standart start bot command.
-
```
/paste ```
```
```
Create new paste with *language* and *code* (text). *Language* is optional. *Code* may be multiline.
- */read * - Print text and info about paste. *Url* is url to paste.
- */stats * - Print statistics about paste if allowed. *Url* is url to paste.
## Contribution
Contributors are welcome! You can send issues and PRs.