Commit Graph

361 Commits

Author SHA1 Message Date
gammafn e592d8ead9 Add percentages to user count
Closes #76
2021-04-30 11:35:32 -05:00
Ville Ranki 54e986156b
Merge pull request #146 from xPMo/bot-disable
BotModule: remove can_be_disabled flag, use exception instead
2021-04-30 13:41:04 +03: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 911c18eda7 Clearer logging for add_module_alias
Also, don't report anything if attempting to create an alias that
already exists
2021-04-27 08:36:40 -05:00
gammafn fb20033900 !wa: handle empty success response
Fixes #145
2021-04-27 06:26:28 -05:00
gammafn ce0b9a7ccd Fix: !help [module_name] args check off by one 2021-04-24 21:54:54 -05:00
Ville Ranki 3754423848 Added location sending to bot.py, added sar command to flog 2021-04-25 03:00:52 +03:00
Ville Ranki 0b97ebb107
Merge pull request #143 from xPMo/shorter-alias-list
Use a shorter alias list
2021-04-25 01:15:39 +03:00
gammafn 24e4b42986 Use a shorter alias list
With my !eval module, the "- {alias} => {name}" format was really long,
so here I invert the dictionary to shorten it up considerably.
2021-04-24 16:55:30 -05:00
Ville Ranki dae3daba4a
Merge pull request #135 from xPMo/long-help
Enhancing !help
2021-04-24 20:44:23 +03:00
gammafn 86b1144b8c Add long helps for some commands 2021-04-24 12:38:28 -05:00
gammafn 4e1787aa14 Add "!sethelp msg true" to get !help to respond to only the user. 2021-04-24 12:38:00 -05:00
gammafn 77d30c6a82 Add !help [modulename] 2021-04-23 14:05:14 -05:00
Ville Ranki b6774f15a4
Merge pull request #141 from aspacca/master
Adding giphy, gfycat and Tautulli bot, splitted handling for image upload and send
2021-04-23 12:42:30 +03:00
Andrea Spacca 8da787b586 cr fix 2021-04-23 11:24:12 +02:00
Andrea Spacca e528b9600b cr fix 2021-04-23 11:01:50 +02:00
Ville Ranki 030f10b8e8
Merge pull request #142 from xPMo/import-export
!bot import export
2021-04-23 10:54:03 +03:00
Andrea Spacca 63035eea8d documentation 2021-04-22 17:57:55 +02:00
Andrea Spacca 4af5825bff fix bug 2021-04-22 15:39:44 +02:00
Andrea Spacca 030ec5d779 New bots (giphy, gfycat, tautulli), changes for upload and send image with url or blob content 2021-04-22 09:46:19 +02:00
gammafn 9d852b6735 Add !bot import|export 2021-04-21 21:40:59 -05:00
Ville Ranki 52414d5da5
Update README.md 2021-04-21 18:06:54 +03:00
Ville Ranki 4228779748
Merge pull request #139 from xPMo/wa-oneline
!wa: Make short response all one line
2021-04-18 19:19:13 +03:00
gammafn 1c58f33c79 Make short response all one line
Fixes #138
2021-04-17 16:14:41 -05:00
Ville Ranki ef061deaa1 Store indices of flights, not just count to make sure all landed flights are notified. Fixes #136 2021-04-14 23:02:50 +03:00
Ville Ranki 2cf1f75ec9 Lie user-agent for google. Seems to fix Youtube titles. Thank Google for this nonsense! 2021-04-14 22:20:37 +03:00
Ville Ranki f6571b8f26
Merge pull request #133 from xPMo/powerlevel
Allow passing custom power level to admin check
2021-04-12 21:08:15 +03:00
Ville Ranki 2f34059d57
Merge pull request #134 from xPMo/pt-fix
Fall back to video['uuid'] if video['url'] doesn't exist
2021-04-12 21:07:00 +03:00
gammafn 669530a8c8 Fall back to video['uuid'] if video['url'] doesn't exist 2021-04-12 12:37:20 -05:00
Ville Ranki 5ee81f4f0f Fix peertube init when no config set 2021-04-11 23:11:07 +03:00
Ville Ranki eff9c4153c Added Peertube (pt) module 2021-04-11 23:01:23 +03:00
Ville Ranki 8b655663b5 Fix flog's live mode 2021-04-10 23:22:11 +03:00
Ville Ranki 166757674b flog module changed to use glidernet log api 2021-04-10 00:31:54 +03:00
Ville Ranki 35593de3b9 Url: support blacklisting certain urls (to work around youtube suckiness) 2021-04-08 20:47:49 +03:00
Ville Ranki 2bc62c7a37
Merge pull request #130 from xPMo/wa-fixes
Fix !wa module
2021-04-06 20:59:15 +03:00
gammafn 3fcce6c611 Add !wafull to readme 2021-04-06 12:54:19 -05:00
gammafn f0aa5530db docstring for parse_api_response 2021-04-06 12:54:09 -05:00
gammafn 0e69efcc11 Rewrite !wa to use html output 2021-04-06 12:39:38 -05:00
gammafn b6e10928f0 Rewrite wa:
- Work around upstream bug when result has only one pod
- Add !wafull alias to output all result
2021-04-05 13:45:15 -05:00
Ville Ranki dd95c7f0ad
Merge pull request #128 from xPMo/aliases
Allow a module to declare aliases
2021-03-30 23:17:51 +03:00
gammafn 6ce7e36b18 Add !alias commnd to user-alias modules 2021-03-30 11:53:06 -05:00
gammafn 874b24e081 Mention aliasing modules in the README 2021-03-30 11:49:42 -05:00
gammafn 87dd319385 Add add_module_aliases convenience function 2021-03-30 11:04:43 -05:00
gammafn 1efce55ff8 Add module aliases
A module can add an alias by simply defining

def matrix_start(self, bot):
    super().matrix_start(bot)
    bot.module_aliases['my_alias'] = self.name

No alias will override a module name
2021-03-29 22:16:58 -05:00
gammafn 9851a24886 Allow passing custom power level to admin check 2021-03-29 15:34:41 -05:00
Ville Ranki 6f6acfd681
Merge pull request #123 from vranki/dependabot/pip/pyyaml-5.4
Bump pyyaml from 5.3 to 5.4
2021-03-26 17:32:44 +02:00
dependabot[bot] 43b0513c2c
Bump pyyaml from 5.3 to 5.4
Bumps [pyyaml](https://github.com/yaml/pyyaml) from 5.3 to 5.4.
- [Release notes](https://github.com/yaml/pyyaml/releases)
- [Changelog](https://github.com/yaml/pyyaml/blob/master/CHANGES)
- [Commits](https://github.com/yaml/pyyaml/compare/5.3...5.4)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-25 23:34:18 +00:00