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
Ville Ranki
69ae607c2a
Deleted uptime (moved functionality to bot), added stats and reload commands to bot module.
2020-01-06 00:33:42 +02:00
Ville Ranki
6cf40488d4
Added initial bot module for bot mgmt commands.
2020-01-05 00:28:57 +02:00
Tatu Wikman
2b51544f07
flake8 passes
2020-01-02 14:27:29 +02:00
Ville Ranki
13cd238a22
Consider owner admin always. Fixes #9
2019-12-30 22:40:55 +02:00
Ville Ranki
0822230eb9
Fix JOIN_ON_INVITE bug
2019-12-29 22:42:44 +02:00
Ville Ranki
73084a15f9
Changed join on invite logic and added debug print. Fixes #5 (hopefully).
2019-12-29 17:26:47 +02:00
Ville Ranki
f93069fc4b
Ignore no account data (just changed the message). Fixes #4
2019-12-29 17:22:23 +02:00
Ville Ranki
99089683af
Join invites by bot owners even if JOIN_ON_INVITE is False
2019-12-26 00:21:32 +02:00
Ville Ranki
687194a0ff
Added instagram module, some finetuning
2019-12-25 23:58:36 +02:00
Ville Ranki
4017a53e5b
Version 1.1: access control, commands can require admin or owner status.
2019-12-25 20:49:20 +02:00
Ville Ranki
680af79fd8
Start modules in run(), loc tuning
2019-12-11 00:04:24 +02:00
Ville Ranki
a773efb7af
Google cal enhancements, fix room lookup
2019-12-10 23:43:08 +02:00
Ville Ranki
b8c9df8a31
Don't crash if no data saved, mount gcal stuff in docker
2019-12-10 22:09:21 +02:00
Ville Ranki
68e3c454af
Added cron module
2019-12-10 19:03:19 +02:00
Ville Ranki
9431d7a267
Google cal seems to work now!
2019-12-10 18:05:40 +02:00
Ville Ranki
5dc8c0b9c4
Added help module, added googlecal module(wip), readme enhancements.
2019-12-09 22:30:06 +02:00