Commit graph

10 commits

Author SHA1 Message Date
Andrew Morgan
015ef12782 Add punctuation to the end of docstrings 2021-01-09 22:33:59 -05:00
Andrew Morgan
2b03c03891 Add typing to every method definition 2021-01-09 22:30:07 -05:00
Andrew Morgan
f2d1967aab Prevent peewee debug logging 2021-01-03 23:34:56 -05:00
Jason Robinson
b808119a73
Enable logging in using an access token (#21)
We do a `client.load_store()` to restore a previous session.

If both token and password are defined, token is preferred, since it wont create a new device for the bot. One or the other needs to be defined.

Requires https://github.com/anoadragon453/nio-template/pull/20 for the configuration change since password and access token must both be optional (but one must be given).
2020-12-14 22:38:47 +00:00
Jason Robinson
ff008a6aac
Allow config items to really be required=False (#20)
In the case of `required or not default` with default defaulting to `None` it's impossible to have a `required=False` config item, without supplying a default

To make `required=False` actually mean "you don't need to specify this at all", it needs to be `required and not default` when checking if we should raise `ConfigError`.
2020-12-14 22:27:58 +00:00
Andrew Morgan
b8c41a5377 lint 2020-08-16 17:00:55 +01:00
Andrew Morgan
95aa7943c1 Fix store and database config option names 2020-08-16 16:17:57 +01:00
Andrew Morgan
ec25fead72 Add support for postgres as a db backend 2020-08-16 15:51:59 +01:00
Andrew Morgan
af22f00868 Lint and add lint.sh dev script 2020-08-09 15:02:07 -07:00
Andrew Morgan
232258e8a0 Move files under module dir 2020-08-09 14:33:57 -07:00
Renamed from config.py (Browse further)