Commit Graph

414 Commits

Author SHA1 Message Date
Dylan Hackworth 4c693205a7 CMD module refactor 2020-03-20 15:32:56 -05:00
Ville Ranki b7bda46261
Merge pull request #64 from dhghf/#63-patch
Fixes #63
2020-03-20 10:43:44 +02: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 edf5c3d6fe #63 patch 2020-03-19 15:27:49 -05:00
Dylan Hackworth c3d4a75a09 Added OWNERS_ONLY env variable to the README 2020-03-18 13:35:27 -05:00
Ville Ranki 2e78289a2b
Merge pull request #60 from ancho/feature/nasa-apod-module
apod send order title -> picture -> description
2020-03-18 20:09:12 +02:00
Ville Ranki d11498cd9f
Merge pull request #61 from dhghf/#57-patch
Modified msgtype of send_text & send_html methods
2020-03-18 20:08:21 +02:00
Frank Becker fbf7932c4a remove original-url from explanation. add date to title 2020-03-17 21:44:04 +01: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 9e2fb2ba6a apod send order title -> picture -> description 2020-03-16 07:37:52 +01:00
Ville Ranki 37301597d9
Merge pull request #59 from ancho/feature/nasa-apod-module
add apod bot owner command apikey
2020-03-15 23:47:38 +02:00
Frank Becker 58c12ebae8 apod split messages for better irc support 2020-03-15 19:30:46 +01:00
Frank Becker e537bbc84d remove unsupported media type message 2020-03-15 18:56:11 +01:00
Frank Becker 1ad251d184 add apod bot owner command apikey 2020-03-15 18:49:24 +01:00
Ville Ranki cd5b16fb66
Merge pull request #58 from ancho/feature/nasa-apod-module
add Astronomy Picture of the Day module
2020-03-15 19:23:06 +02:00
Frank Becker facec3111d add apod bot commands help, stats and clear 2020-03-15 18:11:00 +01:00
Frank Becker fb10d73f61 add support to query astronomy picture by date and cache all uploads
* !apod 2020-03-04
2020-03-15 17:38:17 +01: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 55d9c55948 More info link text 2020-02-27 22:28:57 +02:00
Ville Ranki 77bcbf0862 Simple html stripping 2020-02-27 22:28:42 +02:00
Ville Ranki 72a9595122 Added cmd command. 2020-02-27 22:20:13 +02:00
Ville Ranki 0dfcb4963a Added hack to avoid running old commands after join. 2020-02-27 22:19:56 +02:00
Frank Becker b8499e1c99 Merge branch 'fix/logout-on-password-set' into upstream-master 2020-02-23 22:21:29 +01:00
Frank Becker 0febd01103 restored from original master after accident 2020-02-23 22:17:07 +01:00
Frank Becker df224a1b03 only logout on shutdown if MATRIX_PASSWORD is set 2020-02-23 21:32:34 +01:00
Frank Becker 9d4c2227ff Merge branch 'upstream-master' 2020-02-23 10:13:25 +01:00
Frank Becker ab7f803e9b
Merge pull request #51 from ancho/fix/missing-import
fix: missing import of json module and broken reload_modules method
2020-02-23 08:40:44 +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 f37651e1bd Merge branch 'upstream-master' 2020-02-17 21:44:14 +01:00
Frank Becker 3ce0d80ecb
Merge pull request #42 from ancho/feature/logging-and-signals
use logging and register signal handlers
2020-02-16 19:13:24 +01:00
Frank Becker 892c84a974 fixed loglevel and evaluation to enable debugging 2020-02-16 16:56:34 +01:00
Frank Becker 561338fc10 document DEBUG environment variable 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 bd22fd55d3 docker configuration for logging. use SIGINT as stop signal 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
Frank Becker 238b32fbe0 Merge branch 'master' of github.com:vranki/hemppa 2020-02-16 16:45:26 +01:00
plocki 19767bf32b Merge branch 'feature/devdispatch-subcommands' into 'master'
add subcommands list-bots, add-bot, del-bot

See merge request cfdisk/hemppa!13
2020-02-16 14:29:13 +00:00
Ville Ranki bbf782f89e Disable unknown command message for real 2020-02-16 14:49:00 +02:00
Ville Ranki e841108066 Ignore unknown commands 2020-02-16 14:23:20 +02:00
Frank Becker c8f2e12bd6 add subcommands list-bots, add-bot, del-bot 2020-02-16 12:08:56 +01:00
Frank Becker 44a888270a
Merge pull request #45 from ancho/feature/handle-command
use regex match to check if message starts with command
2020-02-15 12:04:36 +01:00
Frank Becker 53cd32b2ab add comment describing regex. remove unnecessary length check 2020-02-15 11:28:04 +01:00
plocki 413d879fae Merge branch 'feature/devlugdispatch' into 'master'
devlug dispatch module

See merge request cfdisk/hemppa!12
2020-02-15 09:57:04 +00:00
Frank Becker 419c890502 added a few todo's 2020-02-15 10:47:36 +01:00
Frank Becker 86a89c7d44 devlug dispatch module
dispatch messages from matterbridge formatted like

[irc] <ancho> This is a message

that is. only "This is a message" is passed to the bot
command handler
2020-02-15 10:43:19 +01:00
Frank Becker 6d0d960eef use regex match to check if message starts with command 2020-02-13 22:50:23 +01:00