There is now a 'react' command that the bot will react to when used. When a reaction is
made on a message that the bot sent, then it will acknowledge that reaction using a
reply.
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).
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`.
* added built-with-matrix-nio badge to README
* permit aliases
- using room.is_group is not ideal to determine if a room is a DM
- if a room alias is created for a DM, the existing code will break
- changing to check for room.member_count seems to be more appropriate
- new code also works on DMs that have aliases
* moving badge next to existing badge
* Update my_project_name/callbacks.py
Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>