Commit Graph

48 Commits

Author SHA1 Message Date
Frank Becker 59d9fad9ef add stop and start message to BotModule class 2020-02-06 20:56:53 +01:00
Frank Becker 0ffb4d681f 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 00:19:45 +01:00
Frank Becker 1e35be27cd minor cleanup and a fix for the type mapping of matrix_message parameters 2020-02-03 21:45:14 +00:00
Frank Becker 16ade59c0c extract BotModule class 2020-02-02 22:09:09 +01:00
plocki 78901ea505 umbenannt: modules/googlecal.py -> modules/off/googlecal.py
umbenannt:      modules/ig.py -> modules/off/ig.py
umbenannt:      modules/metar.py -> modules/off/metar.py
umbenannt:      modules/notam.py -> modules/off/notam.py
umbenannt:      modules/taf.py -> modules/off/taf.py
umbenannt:      modules/teamup.py -> modules/off/teamup.py
umbenannt:      modules/twitter.py -> modules/off/twitter.py
umbenannt:      modules/url.py -> modules/off/url.py
neue Datei:     modules/ping.py (check web urls)
2020-02-01 22:48:35 +01:00
plocki 166aa957b9 changed blacklist to whitelist 2020-01-31 21:26:01 +01:00
plocki 041ac0e976 weather.py für ansiweather 2020-01-30 21:56:03 +01:00
plocki bef686bd29 weather.py für ansiweather 2020-01-30 21:54:59 +01:00
Tatu Wikman b2641068ed
add setting methods for url module, fixes #31 2020-01-29 12:34:22 +02:00
Tatu Wikman 3df9c52512
Use Beautiful Soup for content parsing
This will help with pages that have broken html..

closes #29
2020-01-29 11:43:23 +02: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 5b81671691 Added NOTAM module. Fixes #22 2020-01-26 18:17:07 +02:00
Ville Ranki 81af6599cd Rename room variable due to name collision 2020-01-21 00:17:15 +02:00
Ville Ranki d2a505257d Merge branch 'master' of github.com:vranki/hemppa 2020-01-20 23:54:15 +02:00
Ville Ranki 80c1bc3f95 Fixed slow polling service issue, some minor tuning. Fixes #16. 2020-01-20 23:54:10 +02:00
Tatu Wikman 5dffd2db50
Remove old todo comment 2020-01-20 23:32:26 +02:00
Tatu Wikman 9113aa19e5
blackened 2020-01-11 02:01:41 +02:00
Tatu Wikman a2f4d7c999
renamed to url
Added different on off statuses
* title, spams titles
* description, spams descriptions
* both, spams both
* off, dont spam

And a bit of refactoring
2020-01-11 01:59:07 +02:00
Tatu Wikman f3d42aa1ed
New module, url titles
If activated in a room this will spit out the titles of urls mentioned in the room.
2020-01-11 00:11:35 +02:00
Ville Ranki 0723dea55e fix twitter account setting and catch exceptions 2020-01-10 22:19:49 +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 4f40c50c62 More timedelta fixes 2020-01-05 22:12:35 +02:00
Ville Ranki 9aa17e389e Fix datetime calling 2020-01-05 21:52:39 +02:00
Ville Ranki 6cf40488d4 Added initial bot module for bot mgmt commands. 2020-01-05 00:28:57 +02:00
Ville Ranki 7ac37e1831 Moved exception handling to poll_account, fix #10 really? 2020-01-05 00:03:37 +02:00
Ville Ranki d8d38415d1 ig: survive exceptions by ig library - fixes #10. loc: allow multi-word search strings 2020-01-04 23:28:07 +02:00
Tatu Wikman 2b51544f07
flake8 passes 2020-01-02 14:27:29 +02:00
Tatu Wikman b82dc4b720
Small googlecal changes
* if we did a add del or something else return after the operation is done
* always check if events list is empty and send a "no events" message if we got that far
2020-01-02 11:54:31 +02:00
Ville Ranki e7a7595731 ig polling fixes - fixes #8 2019-12-30 23:52:29 +02:00
Ville Ranki 19057ec0c7 ig: added clear command, random intervals and other tuning. 2019-12-30 23:16:39 +02:00
Ville Ranki b6435f0c27 Include link in plaintext ig message. Fixes #7 2019-12-30 22:36:25 +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 e1c444024f Fixed dockerfile, always setup googlecal files. 2019-12-23 18:34:58 +02:00
Ville Ranki 50ada1d6d7 Fix google calendar event sending, fixes #1. Readme updates. 2019-12-23 18:04:45 +02:00
Ville Ranki 0f702ff8ec List all events with teamup 2019-12-12 22:10:25 +02:00
Ville Ranki 83d3c1f2f2 Added teamup module 2019-12-12 21:16:50 +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 b48884fd5b Added location module 2019-12-10 22:00:15 +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
Ville Ranki d4bfe1f020 Added uptime module 2019-12-09 20:44:45 +02:00
Ville Ranki e26aea6f54 Added taf module 2019-12-09 20:41:30 +02:00
Ville Ranki 5a2c125b61 Added metar module 2019-12-09 20:38:25 +02:00
Ville Ranki a1b7d0b1ab Added echo module 2019-12-09 20:24:51 +02:00