Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/b1z0n/fonlybot

A friendly little telegram bot to view your docs in google drive.
https://github.com/b1z0n/fonlybot

bot googledrive telegraf telegram-api telegram-bot

Last synced: 26 days ago
JSON representation

A friendly little telegram bot to view your docs in google drive.

Awesome Lists containing this project

README

        

# Installation and local launch

1. Clone this repo
2. Launch the [mongo database](https://www.mongodb.com/) locally
3. Create `.env` with the environment variables listed below
4. Create `credentials.json` with your app credentials in google.
5. Run `yarn install` in the root folder
6. Run `yarn develop`

And you should be good to go! Feel free to fork and submit pull requests. Thanks!

# Environment variables

- `TOKEN` — Telegram bot token.
- `MONGO` — URL of the mongo database.
- `GOOGLE` — URL of your google app oauth.
- `CB_PORT` - port of the google api callback site.
- `HOOK_PORT` - telegram webhook port.

Also, please, consider looking at `.env.sample`.

# TODO

- Enable periodic bot db backup
- Switch to grammy-i18n and add lots of other languages
- Make code execute concurrently with `cluster`s
- Refactor all code

# License

MIT — use for any purpose. Would be great if you could leave a note about the original developers. Thanks!