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
Ville Ranki
1a74091e04
Removed support for password login (use access token). Removed logout functionality as it's also unnecessary. Fixes #56 .
2020-03-10 20:11:19 +02:00
Ville Ranki
0dfcb4963a
Added hack to avoid running old commands after join.
2020-02-27 22:19:56 +02:00
Frank Becker
df224a1b03
only logout on shutdown if MATRIX_PASSWORD is set
2020-02-23 21:32:34 +01:00
Frank Becker
ce8eaac33d
fix: missing import of json module and broken reload_modules method
...
Fixes #50
2020-02-19 22:06:50 +01:00
Frank Becker
892c84a974
fixed loglevel and evaluation to enable debugging
2020-02-16 16:56:34 +01:00
Frank Becker
6869d9bcbb
handle signals SIGTERM and SIGINT for shutdown
2020-02-16 16:56:34 +01:00
Frank Becker
de96c3de06
add basic filebased logging configuration
2020-02-16 16:56:34 +01:00
Frank Becker
b40be62cb1
use logging for console output
2020-02-16 16:56:34 +01:00
Ville Ranki
bbf782f89e
Disable unknown command message for real
2020-02-16 14:49:00 +02:00
Frank Becker
53cd32b2ab
add comment describing regex. remove unnecessary length check
2020-02-15 11:28:04 +01:00
Frank Becker
6d0d960eef
use regex match to check if message starts with command
2020-02-13 22:50:23 +01:00
Frank Becker
267b4241f8
fix: persistent settings for pollservices
...
pollservices didn't return the settings dictionary and the call to
super was missing.
2020-02-08 11:02:58 +01:00
Frank Becker
8ff616246c
handle unknown command
2020-02-07 17:54:36 +01:00
Frank Becker
2f9d7a708e
add stop and start message to BotModule class. add remove_callback
2020-02-06 23:21:59 +01:00
Frank Becker
b1f428517e
enable / disable bot module
...
use !bot enable <module_name> oder !bot disable <module_name> to enabel
or disable a module.
to get a list of available modules and see if they are enabled run !bot
modules
2020-02-06 23:21:59 +01:00
Frank Becker
46fce1c3d6
check environment variables. handle invalid access token
2020-02-06 23:21:55 +01:00
Frank Becker
ca462c8ee3
implement proper shutdown. only show the last 16 digits of access token. handle login error
2020-02-06 23:19:38 +01:00
Frank Becker
93f8c65d0c
extract BotModule class
2020-02-06 21:58:40 +01:00
Ville Ranki
1e97742e13
Various fixes, added bot leave command, handle left rooms in polling modules.
2020-01-26 19:20:03 +02:00
Ville Ranki
a37938fbff
Added twitter, refactored polling services to own class. Fixed \!bot reload losing settings.
2020-01-10 21:59:59 +02:00