Commit Graph

108 Commits

Author SHA1 Message Date
decentral1se 6788e6a4f1
fix: allow template loading without the web server
See https://git.vvvvvvaria.org/decentral1se/xbotlib/issues/12
2022-02-21 11:01:27 +01:00
Luke Murphy 711f4157fb
Always log tracebacks for errors
Closes https://github.com/decentral1se/xbotlib/issues/6.
2021-02-02 22:19:18 +01:00
Luke Murphy a81fa1af54
Use super for SimpleDatabase operations
Closes https://github.com/decentral1se/xbotlib/issues/5.
2021-02-02 22:05:56 +01:00
Luke Murphy 5526ad5313
Make log and other arguments explicit
Follow on from b71c2fedfc.
2021-02-02 22:05:45 +01:00
Luke Murphy b71c2fedfc
Thread logger correctly down to sub-objects 2021-02-02 21:34:03 +01:00
Luke Murphy 0043e7563a
Handle re-joining on restart
Closes https://git.vvvvvvaria.org/decentral1se/xbotlib/issues/11.
2021-02-02 21:27:51 +01:00
Luke Murphy 3c21c29437
Initialise internal data storage 2021-02-01 22:51:25 +01:00
Luke Murphy e2fb6d4f4a
Use `output` instead of `storage_file`
Closes https://git.vvvvvvaria.org/decentral1se/xbotlib/issues/9.
2021-02-01 22:29:05 +01:00
Luke Murphy 3bbb799ed4
Fix storing of rooms in the configuration file
Closes https://git.vvvvvvaria.org/decentral1se/xbotlib/issues/10.
2021-02-01 21:44:58 +01:00
Luke Murphy 8e7db79903
Pretty print JSON when dumping
Closes https://git.vvvvvvaria.org/decentral1se/xbotlib/issues/8.
2021-01-31 21:41:25 +01:00
Luke Murphy f275756451
Show tracebacks for bot exceptions 2021-01-31 21:37:45 +01:00
Luke Murphy 772a3e46a5
Use error logging when facing errors
See https://github.com/decentral1se/xbotlib/issues/2.
2021-01-31 21:37:45 +01:00
Luke Murphy bf8ccedca1
Support stylesheets and fix serving
Closes https://git.autonomic.zone/decentral1se/xbotlib/issues/38.
2021-01-24 13:27:39 +01:00
Luke Murphy 09e4c97597
Support additional routes
Closes https://git.autonomic.zone/decentral1se/xbotlib/issues/31.
2021-01-24 13:11:47 +01:00
Luke Murphy 6a30078351
Add setup
Closes https://git.autonomic.zone/decentral1se/xbotlib/issues/36.
2021-01-24 13:00:47 +01:00
Luke Murphy 3cd438c35d
Do attr checking for better logging 2021-01-24 12:48:04 +01:00
Luke Murphy 2e8c9e739e
Implement write auto-persist file storage
Closes https://git.autonomic.zone/decentral1se/xbotlib/issues/39.
2021-01-24 12:46:22 +01:00
Luke Murphy 998667c839
Support extras and stay slim on initial install
See https://git.vvvvvvaria.org/decentral1se/xbotlib/issues/7.
2021-01-23 23:56:07 +01:00
Luke Murphy 745a561409
Catch all exceptions there 2021-01-23 23:55:46 +01:00
Luke Murphy eecfc8cd38
Rig up first-class file system support
See https://git.vvvvvvaria.org/decentral1se/xbotlib/issues/3.
2021-01-23 23:31:00 +01:00
Luke Murphy 3228876383
Downcase all those 2021-01-23 21:40:45 +01:00
Luke Murphy 3627615e58
Add `--serve` flag
See https://git.vvvvvvaria.org/decentral1se/xbotlib/issues/2.
2021-01-23 21:40:12 +01:00
Luke Murphy 4c56134a30
Cover all mandatory options for generation
See https://git.vvvvvvaria.org/decentral1se/xbotlib/issues/1.
2021-01-23 21:11:00 +01:00
Luke Murphy d76210ef57
Fix response handling with kwarg 2021-01-21 19:21:02 +01:00
Luke Murphy 93ad1853b1
Fix multiple rooms in config file
Closes https://git.autonomic.zone/decentral1se/xbotlib/issues/33.
2021-01-19 20:39:51 +01:00
Luke Murphy 34aacc07cb
Re-work for simpler generation flow 2021-01-19 20:36:02 +01:00
Luke Murphy e7adfeaa51
Provide a respond function
Closes https://git.autonomic.zone/decentral1se/xbotlib/issues/34.
2021-01-19 08:29:56 +01:00
Luke Murphy 3584ce3460
Support full text search for commands 2021-01-18 20:48:01 +01:00
Luke Murphy 46d054243c
Pass uploads to Bot.group
Closes https://git.autonomic.zone/decentral1se/xbotlib/issues/32.
2021-01-18 11:13:25 +01:00
Luke Murphy fecb135f11
Remove unused import 2021-01-17 21:20:52 +01:00
Luke Murphy 12f3a0fc6f
Support file URLs 2021-01-17 20:49:57 +01:00
Luke Murphy 15e06852de
Support loading jinja templates
Closes https://git.autonomic.zone/decentral1se/xbotlib/issues/30.
2021-01-17 20:18:04 +01:00
Luke Murphy a8c46d51a6
Allow to configure the port 2021-01-17 15:09:34 +01:00
Luke Murphy 458d638fc1
Remove "f" 2021-01-17 15:00:49 +01:00
Luke Murphy d34cdff1c8
Remove example bots
Closes https://git.autonomic.zone/decentral1se/xbotlib/issues/29.
2021-01-17 14:42:45 +01:00
Luke Murphy d38921f7be
Support serving the web
Closes https://git.autonomic.zone/decentral1se/xbotlib/issues/22.
2021-01-17 14:38:37 +01:00
Luke Murphy 70fd4d906c
Don't run forever 2021-01-17 12:52:46 +01:00
Luke Murphy bee31b2126
Another pass on the docs
Added a TOC!
2021-01-16 22:26:22 +01:00
Luke Murphy f117a38bef
Improve UX on generation 2021-01-16 22:06:01 +01:00
Luke Murphy 07fd6edc05
Log loading 2021-01-16 21:48:33 +01:00
Luke Murphy eca289cb59
Allow to disable auto-join
Closes https://git.autonomic.zone/decentral1se/xbotlib/issues/26.
2021-01-16 21:46:22 +01:00
Luke Murphy bbad5150ed
Support auto-joining rooms
Closes https://git.autonomic.zone/decentral1se/xbotlib/issues/25.
2021-01-16 21:16:22 +01:00
Luke Murphy f7aed0d849
Push over the Redis URL short-hand option 2021-01-16 21:04:16 +01:00
Luke Murphy 2526ce330d
Allow to load plugins 2021-01-16 20:37:25 +01:00
Luke Murphy 866029256a
Thread True back from reply to stop flow
Closes https://git.autonomic.zone/decentral1se/xbotlib/issues/27.
2021-01-16 20:33:53 +01:00
Luke Murphy 7d5571afcb
Add missing properties 2021-01-16 20:30:08 +01:00
Luke Murphy b8a7c71a0f
Fix precedence loading of defaults 2021-01-16 20:24:03 +01:00
Luke Murphy c9dec93a4b
Expose Redis URL via conf and environ
Closes https://git.autonomic.zone/decentral1se/xbotlib/issues/23.
2021-01-16 20:21:22 +01:00
Luke Murphy 128d42c080
Support conf/env avatar loading 2021-01-16 19:59:09 +01:00
Luke Murphy 47ba30fe28
Mark as regex 2021-01-16 17:46:50 +01:00