Commit Graph

230 Commits

Author SHA1 Message Date
Aciid 3d17818737
Rename Twitter module to Nitter 2023-03-06 11:58:48 +02:00
Aciid 3bdf703639
Twitter module initial commit 2023-03-04 16:58:34 +02:00
Ville Ranki 5da7e36e94
Merge pull request #232 from european-epc-competence-center/status_module
improved status list formatting (html) and added save state on clear
2023-02-01 13:57:12 +02:00
Sebastian Schmittner 9dff166f15
improved status list formatting (html) and added save state on clear
Signed-off-by: Sebastian Schmittner <sebastian.schmittner@eecc.de>
2023-02-01 12:10:32 +01:00
Ville Ranki 3f4c0d7d9b
Merge pull request #231 from european-epc-competence-center/status_module
Status module
2023-02-01 09:25:06 +02:00
Sebastian Schmittner 72acb78fba
flake8
Signed-off-by: Sebastian Schmittner <sebastian.schmittner@eecc.de>
2023-01-31 21:57:48 +01:00
Sebastian Schmittner 3c3a6535a5
added user status module
Signed-off-by: Sebastian Schmittner <sebastian.schmittner@eecc.de>
2023-01-31 21:57:10 +01:00
Sebastian Schmittner 91dfcf8328
flake
Signed-off-by: Sebastian Schmittner <sebastian.schmittner@eecc.de>
2023-01-31 21:04:26 +01:00
Sebastian Schmittner 43e7dca53b
fixing minor bugs in xkcd bot
Signed-off-by: Sebastian Schmittner <sebastian.schmittner@eecc.de>
2023-01-31 20:44:26 +01:00
Sebastian Schmittner 0b4b02e144
added module to query comics from xkcd. This module is derived from the apod module.
Signed-off-by: Sebastian Schmittner <sebastian.schmittner@eecc.de>
2023-01-31 20:26:27 +01:00
Sebastian Schmittner d72ea71d71
removed old code snipped
Signed-off-by: Sebastian Schmittner <sebastian.schmittner@eecc.de>
2022-11-23 10:42:18 +01:00
Sebastian Schmittner 56594e6e13
Adding a simple module to query randomly generated pictures from inspirobot api
Signed-off-by: Sebastian Schmittner <sebastian.schmittner@eecc.de>
2022-11-23 10:34:30 +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 5a06a6baab the order matters 2022-08-19 10:05:30 +09:00
Andrea Spacca 42affd5a52 some fixes 2022-08-15 13:00:26 +09:00
Andrea Spacca cd6a86dfb9 this fixed it 2022-08-15 12:45:40 +09:00
Ville Ranki b34f3eb636 Fixed loc module, added options to enable/disable it per-room. 2022-05-30 21:12:16 +03:00
Cromfel eab4ec243f Allow array of colors per domain
New JSON format example: 'domains={"koneet":["#BFDADC","#0CBBF0","#0CBBF0","#E15D19","#ED49CF"],"tilat":["#0E8A16","#1E8A16"]}'
2022-05-22 21:14:53 +03:00
gammafn 0f3957a319 Fix #195 AttributeError 2022-02-16 21:25:24 -06:00
gammafn e3e353aab4 apod: prettier output for non-images 2022-01-12 22:09:23 -06:00
gammafn abe43693ca apod: Set avatar at the end, it reads better in Element 2022-01-12 22:08:44 -06:00
Ville Ranki 2d19affee8 Fixes to users, better room listing in bot module. 2021-09-12 14:03:14 +03:00
Ville Ranki e1e162643d More fixes to users.. i can't use break it seems 2021-09-11 23:54:09 +03:00
Ville Ranki fb3046b11e Fixes and tuning to users module 2021-09-11 23:21:19 +03:00
Ville Ranki 87aa703512 users module: add user classification and stats commands. 2021-09-11 22:35:41 +03:00
gammafn 9b5ac99a40 Merge branch 'upload-image-and-avatar' 2021-09-01 10:12:47 -05:00
gammafn bdc9713a14 Add avatar support to !apod
Check if is_admin before allowing avatar
2021-08-24 23:03:28 -05:00
Andrea Spacca 1ef7344b4f fix for new version of tautulli 2021-08-21 17:12:31 +02:00
Ville Ranki d62e6d8079
Merge pull request #162 from pintman/spaceapi
added module space api
2021-08-09 00:00:46 +03:00
gammafn b0f96911c3 Add !mumble 2021-08-02 14:33:50 -05:00
gammafn 2fe571c665 Use "- " for list instead of second newline 2021-07-28 15:32:30 -05:00
gammafn 373ed1331d Add !sethelp info 2021-07-28 15:29:34 -05:00
Marco Bakera 99dd2858af added module space api
Allows for polling the open/closed status of hackspaces supporting the SpaceAPI.
2021-07-21 11:56:16 +02:00
Ville Ranki 3e2ef459fe Don't cache RASP image as it changes in same url 2021-07-19 22:44:32 +03:00
Ville Ranki 40aa62282d Use requests library instead of urllib. Fixes #160 2021-07-19 00:03:48 +03:00
gammafn 549fa08918 bot ping: send_text is a bot attribute, not a client attribute 2021-06-06 10:10:50 -05:00
Ville Ranki 4c3a21e562 Added RASP module 2021-05-27 23:35:53 +03:00
Ville Ranki 0361814459 Added some power level checks 2021-05-20 10:03:19 +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 ff281e0e2e !bot reload: update message when all modules are loaded 2021-05-17 16:21:13 -05:00
gammafn 1800b0c0fc Simplify !bot ping by having bot return await room_send() 2021-05-17 16:20:41 -05:00
gammafn 7fc86fc30c Add missing bot long help 2021-05-12 06:43:22 -05:00
gammafn 0a95377893 Add !bot uricache [view | clean] command 2021-05-11 12:52:50 -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
xPMo 6b9bd1620d
Merge pull request #149 from xPMo/bot-logs
Print recent logs with !bot logs
2021-05-08 19:18:49 -05:00
gammafn 47c1c4d0ec Add [count] arg to !bot logs 2021-05-08 19:18:29 -05:00
gammafn 809df07c14 !bot logs: Codeblock, argument to match against module name 2021-05-06 16:09:17 -05:00
Andrea Spacca 52bbc4ffca
Send only text notification without art
if `entry["art"]` is empty `pms.get_image` will return `None` and previous implementation would return without sending any notification
Now at lest the text notification without image will be sent
2021-05-06 10:19:39 +02:00
gammafn 321a20d721 Add !bot logs
Partial solution to #48.
2021-05-04 23:28:44 -05:00
gammafn b77b361d2a !loc: send_location takes room object, not room_id
Fixes #148
2021-05-03 08:50:18 -05:00