https://github.com/codecanna/telegram-clock-bot
A simple bot to track my time at work.
https://github.com/codecanna/telegram-clock-bot
Last synced: 8 months ago
JSON representation
A simple bot to track my time at work.
- Host: GitHub
- URL: https://github.com/codecanna/telegram-clock-bot
- Owner: CodeCanna
- License: gpl-3.0
- Created: 2021-07-12T15:27:34.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2023-02-13T03:15:35.000Z (over 3 years ago)
- Last Synced: 2025-10-18T05:33:59.654Z (8 months ago)
- Language: Python
- Size: 57.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# telegram-clock-bot
A simple bot to track my time at work.
# How to use
Clone the project in the directory you want it to live, paste in your Telegram API key you got from BotFather into
the secret_sauce.json file where it says `YOUR_API_KEY_HERE`; keep the double quotes.
`cd` into the directory you just cloned.
Run `python src/cogsworth.py`, or on Windows `python src\cogsworth.py` and start your bot from the telegram app using `/start`.
# Available Commands
* `/in` - Clocks you in
* `/out` - Clocks you out and calucates your time with or without taking a lunch
* `/lunch` - Clocks you out for lunch
* `/lunchstop` - Clocks you back in from lunch and records your lunch times
## NOTE
Telegram BotFather allows you to define quick command buttons so you don't have to physically type in these commands everytime.
Go the the BotFather and type `/mybots`, select your bot and hit the `Edit Bot` button, then hit `Edit Commands` and follow
the BotFather's prompts to add the above commands to your bot. When sending them to the bot father leave off the `/`.
### Example
When bot father asks you to give a list of commands give them in this format
* `in - Clock me in`
* `out - Clock me out`
* `lunch - Start lunch`
* `lunchstop - End Lunch`