F-Node-Karlsruhe
a19e124cdf
use whitelist for invites instead of rooms
2022-11-23 12:08:04 +01:00
F-Node-Karlsruhe
b5c9c3874f
actually add the variable to the statement
2022-11-20 12:57:42 +01:00
F-Node-Karlsruhe
9811e2328f
add homeserver_only option
2022-11-20 12:39:58 +01:00
Frank Becker
69a7aae939
apod - fix broken image metadata and error response / logging on room avatar event errors
...
There was a parameter off by one error. Propably introduced with the
room_send wrapper.
While testing the avatar feature I noticed that nothing happens if the bot is not at least a moderator in
the room. So I decided to send that info to the room and log the error
message as a warning.
The explanation was not altered by the apod module.
Turns out it was broken that day at the api level. See https://api.nasa.gov/planetary/apod?api_key=DEMO_KEY&hd=true&date=2022-09-13
fixes #216
2022-09-15 21:38:08 +02:00
Andrea Spacca
cd6a86dfb9
this fixed it
2022-08-15 12:45:40 +09:00
gammafn
057fa1dca8
fix: send_text has an extra arg
2022-08-02 14:17:29 -05:00
gammafn
194febde42
m.thread: downgrade 'warning' to 'info'
2022-07-31 17:06:09 -05:00
gammafn
a1004ff950
Base bot: Support m.thread
2022-07-31 10:12:32 -05:00
Ville Ranki
b34f3eb636
Fixed loc module, added options to enable/disable it per-room.
2022-05-30 21:12:16 +03:00
gammafn
dcd69da85f
Update userdata uri_cache after uploading image
2022-01-31 15:45:54 -06:00
EnigmaCurry
d3c337e50c
Fix upload_image for blobs
2021-10-17 23:19:49 +00:00
Andrea Spacca
1e9ac6035f
Fix upload_and_send_image error message
2021-09-14 08:51:03 +02:00
Ville Ranki
fb3046b11e
Fixes and tuning to users module
2021-09-11 23:21:19 +03:00
gammafn
9b5ac99a40
Merge branch 'upload-image-and-avatar'
2021-09-01 10:12:47 -05:00
Fredrik Rönnvall
0c122dda12
Bugfix: filesize required for AsyncClient upload
2021-08-31 07:20:32 +02:00
gammafn
074bd36451
Support room avatar, and refactor image uploading
...
Rationale:
Refactor caching into get_uri_cache for use in both upload_and_send and
in module-specific uses. I don't want to also make "uplaod_and_set_avatar".
2021-08-22 16:10:56 -05:00
Ville Ranki
f66c76e09c
Option not to cache uploaded image
2021-07-19 22:44:10 +03:00
Ville Ranki
1291e324ce
Handle sync error and quit if initial sync fails
2021-07-18 22:50:34 +03:00
Ville Ranki
c7697f2994
Nicer and more correct error on image failure
2021-05-27 23:36:18 +03:00
Ville Ranki
c4eeae2e7b
\!room tombstoning support, dont send blank urls ( fixes #156 ), \!loc quotes ( fixes #152 ), \!user ( fixes #144 ), better explanation ( fixes #151 )
2021-05-19 23:01:04 +03:00
gammafn
1800b0c0fc
Simplify !bot ping by having bot return await room_send()
2021-05-17 16:20:41 -05:00
Andrea Spacca
a9681e04d7
url_or_bytes as more explaining param of upload_image
2021-05-15 21:55:10 -05:00
Andrea Spacca
d553750941
idiomatic upload_image with raise
2021-05-15 21:55:10 -05:00
Andrea Spacca
4e42b14e50
fix cache for blob
2021-05-15 21:55:10 -05:00
gammafn
44bd02d3b4
Fix bot.upload_and_send()
...
- Move matrix_uri_cache idea from apod into global bot, persist on restart
- TODO: add "!bot uricache [ view | clean ]" command
2021-05-11 12:52:40 -05:00
gammafn
528a596d68
Split find_and_create_room out of send_msg
2021-05-06 16:08:49 -05:00
gammafn
9fefb730a9
Replace traceback.print_exc() with logger.exception()
2021-05-04 23:56:06 -05:00
Ville Ranki
3754423848
Added location sending to bot.py, added sar command to flog
2021-04-25 03:00:52 +03:00
Andrea Spacca
63035eea8d
documentation
2021-04-22 17:57:55 +02:00
Andrea Spacca
030ec5d779
New bots (giphy, gfycat, tautulli), changes for upload and send image with url or blob content
2021-04-22 09:46:19 +02:00
Ville Ranki
f6571b8f26
Merge pull request #133 from xPMo/powerlevel
...
Allow passing custom power level to admin check
2021-04-12 21:08:15 +03:00
gammafn
1efce55ff8
Add module aliases
...
A module can add an alias by simply defining
def matrix_start(self, bot):
super().matrix_start(bot)
bot.module_aliases['my_alias'] = self.name
No alias will override a module name
2021-03-29 22:16:58 -05:00
gammafn
9851a24886
Allow passing custom power level to admin check
2021-03-29 15:34:41 -05:00
Ville Ranki
06a35f5a0b
Merge branch 'master' into master
2021-01-23 22:10:49 +02:00
Dylan Hackworth
6722fd01a4
Added LEAVE_EMPTY_ROOMS env var
2021-01-23 13:41:24 -06:00
Dylan Hackworth
f27d0af90f
Revisioned Join on Invite env var
2021-01-23 13:23:48 -06:00
Ville Ranki
e7b35d9c55
Moved image upload code to shared function in bot.py. Removed the original urls for less spam.
2020-12-20 21:42:18 +02:00
Ville Ranki
578ec4908e
Log when all modules started or stopped
2020-11-23 00:19:23 +02:00
Andreas Kotes
b403e947ae
Allow connecting to SSL endpoints
2020-11-15 20:03:57 +01:00
Ville Ranki
39c1b98f88
Added relay module for relaybot functionality
2020-11-04 21:53:23 +02:00
Ville Ranki
a1f1a53a84
Disregard previous - PL50 should be fine. Problem is with IRC bridge. Probably.
2020-09-12 18:13:22 +03:00
Ville Ranki
34b642840a
Set admin power level to be more than 50 as that's what bridged users seem to get.
2020-09-12 17:28:25 +03:00
Ville Ranki
e372aadd73
Mastodon: Per-room accounts
2020-09-12 16:48:47 +03:00
Ville Ranki
87998001f5
Added mxma module
2020-03-29 23:50:33 +03:00
Ville Ranki
48d8298828
Add support to ignore m.text messages and fix url module to use this. Fix url not saving message type.
2020-03-29 20:34:57 +03:00
Ville Ranki
f566955239
Merge pull request #62 from dhghf/owners-only
...
Added whitelisting feature
2020-03-20 10:42:44 +02:00
Dylan Hackworth
6814cae5ca
> Except in cron module to allow running timed commands.
2020-03-17 12:40:41 -05:00
Dylan Hackworth
4d4309531e
Added whitelisting feature
2020-03-17 12:35:33 -05:00
Dylan Hackworth
91b2683d65
Modified msgtype of send_text & send_html methods
2020-03-17 12:07:06 -05:00
Frank Becker
967ab33528
added Astronomy Picture of the Day module
...
* upload astronomy picture of the day to the room
* cache latest response
* use own api key by setting environment variable
APOD_API_KEY (default: DEMO_KEY)
2020-03-14 21:10:27 +01:00