Commit Graph

34 Commits

Author SHA1 Message Date
Ville Ranki 2d19affee8 Fixes to users, better room listing in bot module. 2021-09-12 14:03:14 +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 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 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
gammafn 321a20d721 Add !bot logs
Partial solution to #48.
2021-05-04 23:28:44 -05:00
gammafn e592d8ead9 Add percentages to user count
Closes #76
2021-04-30 11:35:32 -05:00
gammafn afacb02d7e BotModule: remove can_be_disabled flag, use exception instead 2021-04-28 15:46:38 -05:00
gammafn 40b810bec8 !bot stats rewrite
- Only count users once
- Report total homeserver count
- Nicer format of top ten
2021-04-28 13:26:41 -05:00
gammafn c4d075a97f !bot status rewrite:
- Use time.time() for timestamps to prevent DST from breaking uptime
  calculations
- Remove decimal part of uptime
- Use time.ctime() format for date
- Get list of bot modules
2021-04-28 13:10:51 -05:00
gammafn 4ce81ec8f3 Add !bot ping 2021-04-27 08:47:20 -05:00
gammafn 86b1144b8c Add long helps for some commands 2021-04-24 12:38:28 -05:00
gammafn 9d852b6735 Add !bot import|export 2021-04-21 21:40:59 -05:00
Dylan Hackworth 6640fdeb70
Revisioned Module Listing
It's a little spammy
2021-01-23 14:16:21 -06:00
Ville Ranki cfe303d654 Fixes 2020-11-24 23:02:47 +02:00
Frank Becker b40be62cb1 use logging for console output 2020-02-16 16:56:34 +01:00
Ville Ranki e841108066 Ignore unknown commands 2020-02-16 14:23:20 +02:00
Frank Becker 730ee7ca35 shorter modules list 2020-02-10 00:04:34 +01:00
Frank Becker a246af645a ordered output of modules 2020-02-09 14:24:57 +01:00
Frank Becker 81d07cebfd enable all modules per default. bot cannot be disabled. 2020-02-09 14:07:05 +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 299548b41f minor cleanup and a fix for the type mapping of matrix_message parameters 2020-02-06 21:59:29 +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 81af6599cd Rename room variable due to name collision 2020-01-21 00:17:15 +02:00
Ville Ranki 80c1bc3f95 Fixed slow polling service issue, some minor tuning. Fixes #16. 2020-01-20 23:54:10 +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