-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f70c1c6
commit a3fc245
Showing
31 changed files
with
69 additions
and
513 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,36 @@ | ||
# AierBot | ||
# save_it | ||
|
||
A telegram bot to sync messages to https://aier.app | ||
A telegram bot who save what you love in internet. | ||
|
||
![save memo to AIer.app](./docs/assets/save-memo-to-aier.gif) | ||
## supported services | ||
|
||
- [x] https://x.com/ | ||
- [x] https://instagram.com/ | ||
- [x] https://www.youtube.com/ | ||
- [x] https://www.pinterest.com/ | ||
|
||
## Usage | ||
|
||
Just send the link to the bot. | ||
|
||
## Build with | ||
|
||
- [Elixir](https://elixir-lang.org/) | ||
- [ex_gram](https://github.com/rockneurotiko/ex_gram) | ||
|
||
## Usage | ||
|
||
TODO: | ||
- [cobalt api](https://github.com/imputnet/cobalt/blob/current/docs/api.md) | ||
|
||
## Development | ||
|
||
```sh | ||
# install | ||
mix deps.get | ||
``` | ||
|
||
```sh | ||
# run | ||
export TELEGRAM_BOT_TOKEN= | ||
export AIER_API_TOKEN= | ||
export OPENAI_API_KEY= | ||
export GOOGLE_OAUTH_CLIENT_ID= | ||
export GOOGLE_OAUTH_CLIENT_SECRET= | ||
|
||
mix run --no-halt | ||
iex -S mix run --no-halt | ||
``` | ||
|
||
## Deployment | ||
|
||
### CI/CD | ||
|
||
GitHub Actions | ||
|
||
Secrets: | ||
|
||
- `TELEGRAM_BOT_TOKEN` | ||
- `AIER_API_TOKEN` | ||
- `FLY_API_TOKEN` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
import Config | ||
|
||
config :aier_bot, :telegram_bot_token, System.fetch_env!("TELEGRAM_BOT_TOKEN") | ||
config :aier_bot, :aier_api_token, System.fetch_env!("AIER_API_TOKEN") | ||
config :aier_bot, :openai_api_key, System.fetch_env!("OPENAI_API_KEY") | ||
|
||
config :save_it, :telegram_bot_token, System.fetch_env!("TELEGRAM_BOT_TOKEN") | ||
config :ex_gram, token: System.fetch_env!("TELEGRAM_BOT_TOKEN") | ||
config :save_it, :google_oauth_client_id, System.fetch_env!("GOOGLE_OAUTH_CLIENT_ID") | ||
config :save_it, :google_oauth_client_secret, System.fetch_env!("GOOGLE_OAUTH_CLIENT_SECRET") |
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.