A bot for telegram that searches SESC events and reminds about them.
- Run
mix deps.get && mix setup
to install and setup dependencies - Install ngrok and run
ngrok http 8443
- Update
dev.exs
anddev.secret.exs
with your new url and token, example:
config :seschedule, webhook_url: "https://long-ngrok-url.com" # on dev.exs
config :telegex, token: "123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11" # on dev.secret.exs
Tip: You can create a fixed domain in ngrok in the domain page
- Start server with inside IEx with
iex -S mix
- Use this
fly.toml
withfly apps create --name {{yourappname}}
to create an app - Set the correct secrets:
config :seschedule, webhook_url: "https://{{yourappname}}.fly.dev" # on prod.exs
config :telegex, token: "{{bot-token}}" # on prod.secret.exs
- Run
fly deploy
Tip:
fly scale count 1
, if you want to have only one machine working at a time
In order of relevance.
Create more doctests and tests.
- In particular it'll be nice to test if
Texts
places
,categories
, anddates
matches withprotobufs
. - We will most likely need Mox.
- Ensure docs for every module and method.
- Generate docs page.
Ensure tests and docs are complete via CI.
Random events from command using filters:
- Filter by city
- Filter by category
There is a reference for what SESC units are in Grande SP, if we search in storage we can
Currently the search is limited to SESC SP, although there is a lot of SESC units in SP, there are tons in other states.
- We must find what are the other SESCs websites and reverse engineer their APIs.
- We must include them as options to search and possibly change the search flow a little bit.
Give support for more than one filter:
- More than one city
- More than one category
Create workflow for remind functionallity.
Use sqlite3 and Ecto to save events in storage.
Create a feedback command that sends an email for bug report and suggestions.
Give support for english, spanish and french.