https://github.com/geexup/clockify-telegram-bot
Telegram bot for Clockify (@clockify_bot)
https://github.com/geexup/clockify-telegram-bot
bot clockify telegram timetracker
Last synced: 7 months ago
JSON representation
Telegram bot for Clockify (@clockify_bot)
- Host: GitHub
- URL: https://github.com/geexup/clockify-telegram-bot
- Owner: geexup
- License: mit
- Created: 2019-06-15T20:55:02.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-05T00:41:37.000Z (about 5 years ago)
- Last Synced: 2025-01-14T10:34:14.758Z (9 months ago)
- Topics: bot, clockify, telegram, timetracker
- Language: TypeScript
- Homepage:
- Size: 55.7 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Clockify Telegram Bot
[](https://hub.docker.com/r/geexup/clockify-telegram-bot)
[](https://hub.docker.com/r/geexup/clockify-telegram-bot)Telegram bot for better & faster interaction with Clockify Timetable
## Try deployed version
Just search in Telegram Messenger for @clockify_bot## Install
1. Clone this repository:
```
$: git clone https://github.com/geexup/clockify-telegram-bot.git && cd ./clockify-telegram-bot
```2. Install dependencies:
```
$: npm i
```
OR
```
$: yarn
```3. Get [mongoDB](https://www.mongodb.com/) up and running
## Run
1. Go to Bot Father (@BotFather) in Telegram and get your bot token
2. Paste token into `BOT_TOKEN` in `src/environment/presets/dev.ts`
3. Run bot:
```
$: yarn dev
```## Docker
[Here](https://hub.docker.com/r/geexup/clockify-telegram-bot) you can find ready images### Build
To build docker image just execute this command:
```
$: docker build -t .
```### RUN
Simple run:
```
docker run --cap-add=SYS_ADMIN --name clockify-bot geexup/clockify-telegram-bot
```You can pass into container your own environment preset with bot token and mongoDB address as well:
```
docker run -it --cap-add=SYS_ADMIN \
-v :/srv/environment/presets/preset.js \
-e BOT_CURRENT_PRESET= \
geexup/clockify-telegram-bot
```## TODO
- Add tests
- Add state machine to scenes
- Add Google Authenticator for Admin proof