Commit graph

101 commits

Author SHA1 Message Date
HgO
96ee7f068a create matrix bot to send and acknowledge alerts 2022-07-04 01:03:24 +02:00
HgO
6ab094acdc fix typing and configure mypy 2022-06-14 23:37:54 +02:00
HgO
ad324c63c3 rename project 2022-06-13 20:55:01 +02:00
Andrew Morgan
3d8fbf142b Update suggested python version to 3.10 in dockerfiles 2022-01-27 16:35:44 +00:00
Andrew Morgan
25e35af3fa Update suggested version of libolm in dockerfiles 2022-01-27 16:28:47 +00:00
Andrew Morgan
1f9f109bd6 Alpine 3.11 is no longer around. Change docker base to alpine latest 2022-01-27 16:27:16 +00:00
Kevin Li
71d520239c
Await invite callback (#32)
Co-authored-by: Kev <>
Co-authored-by: Andrew Morgan <andrew@amorgan.xyz>
2021-10-25 20:28:38 +01:00
reivilibre
54c2b88d60
Skip InviteMemberEvents that are not our invites (#30)
Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
2021-10-14 14:53:52 +01:00
Tom Lant
c7752db54c
Tolerate BSD sed and don't try to sed inside the .pyc files (#25) 2021-02-26 17:48:24 +00:00
chc4
eebfcac9bb
Add matrix-pinbot to projects (#24)
I made a pinbot
2021-01-17 19:26:48 +00:00
Andrew Morgan
6b1a29e96a Fix rename_project script to rename files and folders recursively 2021-01-10 23:43:31 -05:00
Andrew Morgan
59b28eec3f Add a script to rename all project files when starting out 2021-01-10 22:51:08 -05:00
Andrew Morgan
b28ce6d5e1 Use a Mock instead of creating a fake config class 2021-01-10 22:14:20 -05:00
Andrew Morgan
106c452ee6 Take test_config out of tests/config for now
I think we'll only have one file in the for now, so let's take it out.
2021-01-10 22:02:46 -05:00
Andrew Morgan
a2245071e7 Add a unit test for the invite callback 2021-01-10 22:00:33 -05:00
Andrew Morgan
008ac9b7a6 Ensure we run linting on test files 2021-01-10 21:55:40 -05:00
Andrew Morgan
f3f946b784 Additional linting for unit tests 2021-01-10 21:54:27 -05:00
Andrew Morgan
1ed54e8d0f Run unit testing jobs in Github Actions 2021-01-10 19:52:52 -05:00
Andrew Morgan
8afc5491c2 Add Github Actions linting 2021-01-10 19:27:40 -05:00
Andrew Morgan
0e37bc724d Add some unit testing, starting with the config 2021-01-10 19:22:10 -05:00
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
4aa1e2d0f4 React to undecryptable messages 2021-01-09 22:03:03 -05:00
Andrew Morgan
9774851d5b lint 2021-01-03 23:54:03 -05:00
Andrew Morgan
647233cfac Add example commands for reactions and event reply
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.
2021-01-03 23:53:45 -05:00
Andrew Morgan
f2d1967aab Prevent peewee debug logging 2021-01-03 23:34:56 -05:00
Jason Robinson
27cfa81f4e
Add Middleman (#23)
Add Middleman, which is a bot to be used for support accounts for example.

https://github.com/elokapina/middleman
2020-12-23 23:06:31 +00:00
Jason Robinson
d9ad225a51
Add build and dist to .gitignore (#22) 2020-12-14 22:39:03 +00: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
Jason Robinson
6b0c82ccde
Add Bubo to projects using template (#19) 2020-10-21 20:49:10 +01:00
8go
0a41420426
added matrix-eno-bot to "using nio-template" list (#18) 2020-10-21 15:17:31 +01:00
Andrew Morgan
8c7a5dbd2e Remove references to GETTING_STARTED.md for now 2020-10-05 15:32:57 +01:00
Andrew Morgan
62111f0ca6 Add a SETUP.md file with setup instructions, and link to it from the README 2020-10-05 15:32:57 +01:00
Hofer Julian
36cf756f04
Remove unneeded key_upload (#16)
It is automatically called by `sync_forever()`.
See https://matrix-nio.readthedocs.io/en/latest/nio.html?highlight=keys_upload#nio.AsyncClient.keys_upload
2020-08-27 11:36:30 +01:00
8go
8c0ec5f759
built-with-matrix-nio badge + permit aliases (#15)
* 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>
2020-08-24 11:39:50 +01:00
Andrew Morgan
98e1262b16 Merge branch 'anoa/docker_docs' into master
* anoa/docker_docs:
  Improve docker documentation
2020-08-16 17:01:49 +01:00
Andrew Morgan
fd62cd106e Improve docker documentation 2020-08-16 17:01:44 +01:00
Andrew Morgan
b8c41a5377 lint 2020-08-16 17:00:55 +01:00
Andrew Morgan
2f81ebc8ce Fix docker setup 2020-08-16 17:00:38 +01:00
Andrew Morgan
155f81ca44 Print why startup script was unsuccessful 2020-08-16 17:00:23 +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
dc3b83694b Fix matrix room link in README 2020-08-16 15:14:55 +01:00
Andrew Morgan
63a5fc7b64 Fix discrepencies in CONTRIBUTING.md 2020-08-12 23:19:10 -07:00
Andrew Morgan
d5b580e4c8 Merge branch 'anoa/docker'
* anoa/docker:
  Add CONTRIBUTING doc
  Docker development and run support
2020-08-12 18:40:25 -07:00
Andrew Morgan
371a212005 Add CONTRIBUTING doc 2020-08-11 17:38:25 -07:00
Andrew Morgan
049925642e Fix some lingering matrix-reminder-bot refs 2020-08-11 17:37:54 -07:00
Andrew Morgan
ba9be7a0f9 Docker development and run support 2020-08-11 17:37:23 -07:00
Andrew Morgan
af22f00868 Lint and add lint.sh dev script 2020-08-09 15:02:07 -07:00