Ville Ranki
1291e324ce
Handle sync error and quit if initial sync fails
2021-07-18 22:50:34 +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
c7697f2994
Nicer and more correct error on image failure
2021-05-27 23:36:18 +03: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
Andrea Spacca
a9681e04d7
url_or_bytes as more explaining param of upload_image
2021-05-15 21:55:10 -05:00
Andrea Spacca
d553750941
idiomatic upload_image with raise
2021-05-15 21:55:10 -05:00
Andrea Spacca
4e42b14e50
fix cache for blob
2021-05-15 21:55:10 -05:00
gammafn
c1dff18c60
Correct note on names and aliases
2021-05-12 13:39:48 -05:00
gammafn
7fc86fc30c
Add missing bot long help
2021-05-12 06:43:22 -05:00
xPMo
7cdecaf4f6
Merge pull request #153 from xPMo/upload-send-uri
...
Change bot.upload_and_send() and !apod
2021-05-12 05:43:41 -05:00
gammafn
8888a6265c
Add uricache to readme, and move bot owner commands to a subheading
2021-05-11 12:56:32 -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
e1e2613845
Add !bot logs to readme
2021-05-06 16:12:20 -05:00
gammafn
809df07c14
!bot logs: Codeblock, argument to match against module name
2021-05-06 16:09:17 -05:00
gammafn
528a596d68
Split find_and_create_room out of send_msg
2021-05-06 16:08:49 -05:00
Ville Ranki
d212dcf2bd
Merge pull request #150 from aspacca/patch-1
...
Send only text notification without art
2021-05-06 11:20:29 +03: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
9fefb730a9
Replace traceback.print_exc() with logger.exception()
2021-05-04 23:56:06 -05: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
Andrea Spacca
cd0870d0b3
lock on tautulli send entry
2021-05-03 08:49:55 -05:00
gammafn
6c30a47ce5
Add more info on using !help and !alias
2021-04-30 17:36:31 -05:00
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