https://github.com/diohabara/honjitsu
Tweet daily reports
https://github.com/diohabara/honjitsu
bot rust todoist toggl twitter twitter-api twitter-bot
Last synced: over 1 year ago
JSON representation
Tweet daily reports
- Host: GitHub
- URL: https://github.com/diohabara/honjitsu
- Owner: diohabara
- License: mit
- Created: 2022-08-01T06:34:57.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-01-15T04:58:27.000Z (over 3 years ago)
- Last Synced: 2025-01-30T03:25:41.171Z (over 1 year ago)
- Topics: bot, rust, todoist, toggl, twitter, twitter-api, twitter-bot
- Language: Rust
- Homepage:
- Size: 89.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# honjitsu
Create daily report for you
## lint/format
```bash
cargo fmt
cargo clippy --fix
```
## doc
```bash
cargo doc --open
```
## run
```bash
cargo run --release
```
## set environment variables using GitHub CLI
You need to set the following secrets
- `TOGGL_EMAIL`
- Your toggl account's email
- `TOGGL_PASSWORD`
- Your toggl account's password
- `TODOIST_TOKEN`
- Your todoist account's API token
- `TWITTER_CONSUMER_KEY`
- Twitter API key
- `TWITTER_CONSUMER_SECRET`
- Twitter API secret
- `TWITTER_ACCESS_TOKEN`
- Twitter Access token
- `TWITTER_ACCESS_TOKEN_SECRET`
- Twitter Access token secret
Write the pairs of the key and its value in `.env`
```bash
gh secret set -f .env
```
## references
- [Toggl Track](https://developers.track.toggl.com/docs/)
- [todoist API](https://developer.todoist.com/sync/v9/)
- [GitHub CLI secrets](https://cli.github.com/manual/gh_secret_set)
- [Twitter API](https://developer.twitter.com/en/docs/twitter-api)
- [Twitter API samples](https://github.com/twitterdev/Twitter-API-v2-sample-code)
## TODO
- [ ] Specify the timezone in a single file