gcentauri / tuvix

A Matrix client in Erlang
GNU General Public License v3.0
0 stars 0 forks source link

Add: bot configuration from file #11

Open gcentauri opened 4 years ago

gcentauri commented 4 years ago

Seems like as long as you don't log out your bot user, you can just store the access token in a file and it will continue working.

I was looking at this: https://github.com/diffbot/diffbot-erlang-client/blob/master/src/dfbcli.hrl and thought it would be nice to define a lot of the matrix api configuration in a file like this.

ghost commented 4 years ago

Ah yeah that'd be handy. Erlang's way to do "constants".