8503a36df4
ops xor was wrong
2022-04-28 12:57:40 +02:00
7c4c523562
print timestamp on stdout too
2022-04-28 12:54:23 +02:00
cfd5dd079a
added notifier/provider structure, moved addon out
...
now treepuncher has 1 notifier, which holds many providers for various
services. Each provider is an Addon, but not the Notifier itself.
Moved Addon and Notifier out of Treepuncher, and added type hints without
dependancy cycle with TYPE_CHECKING control
2022-04-28 01:57:19 +02:00
1307869d9c
Allow to enable logging of ignored packets
2022-04-27 13:30:19 +02:00
aeea271547
Merge branch 'microsoft' of github.com:alemidev/treepuncher into microsoft
2022-04-26 23:24:13 +02:00
61cfd72d1f
Assure notifier is initialized first
2022-04-26 23:23:46 +02:00
a3aacd6291
catch addon exc with bare traceback
2022-04-26 23:23:33 +02:00
Francesco Tolomei
b92791ce04
windows fix
2022-04-26 02:31:42 +02:00
91afbbc28a
fallback to string
2022-04-25 15:36:05 +02:00
f0c34376fa
keep and expose single loop
2022-04-25 04:43:15 +02:00
4e4bb50e4a
add sub logger to each addon
2022-04-25 04:43:00 +02:00
b73a352484
fix double logger
2022-04-24 03:21:45 +02:00
e52b4d5a37
hopefully clearer exception handling and _work fn
2022-04-23 22:09:53 +02:00
261d18f854
try/catch importing modules for help
2022-04-23 22:06:09 +02:00
086e59a0ce
sort union types so str comes last
2022-04-23 15:55:19 +02:00
977ce7a9de
reordered stop sequence
2022-04-23 15:22:04 +02:00
d5d1f8c036
added force_proto config, catch connection errors in ping
2022-04-23 15:18:11 +02:00
15c2fc09dc
bump version
2022-04-23 14:34:05 +02:00
5a652f1710
try to parse Union hints
2022-04-23 14:33:30 +02:00
6f53778fc9
typo :(
2022-04-20 00:20:24 +02:00
eefa1bf211
separated auth storage from sys storage
2022-04-20 00:02:24 +02:00
6a39e61e03
give self to default notifier
2022-04-19 12:06:21 +02:00
c6ff6a6bf7
oof fix
2022-04-19 11:59:55 +02:00
5527d50ff3
hopeful fix for self-stop
2022-04-19 11:54:13 +02:00
c87dbd63e2
set proto only if it was given
2022-04-19 11:46:35 +02:00
923dfa3532
readded ability to specify plugins via CLI
2022-04-19 11:31:37 +02:00
cdc5e9301f
CLI improvements
2022-04-19 04:05:38 +02:00
fa4f0dc58a
was importing wrong packet?
2022-04-19 03:54:27 +02:00
c0f698ac7d
oops run the events
2022-04-19 03:51:02 +02:00
4da1a9f834
load each addon only once but for real
2022-04-19 03:36:30 +02:00
6d64973c54
join_game_event holds args inside itself
2022-04-19 03:36:20 +02:00
db01f5d5b7
install notifiers first
2022-04-19 03:22:53 +02:00
148c809628
don't initialize notifier multiple times
2022-04-19 03:14:34 +02:00
6813181800
pass args kwargs in notifier
2022-04-19 02:36:21 +02:00
49fe4f185f
all the opposite
2022-04-19 02:26:40 +02:00
631ff0bc2c
fixed imports
2022-04-19 02:17:35 +02:00
3b9880ad6b
circular import
2022-04-19 02:14:46 +02:00
7b7c46e184
notifier is an addon and is taken from installed addons
2022-04-19 01:56:20 +02:00
7b5958dde3
various improvements
...
add print-token flag, put logs in log folder, load previous session after
aiocraft client setup, don't sleep if stopping
2022-04-19 01:17:37 +02:00
ab2170e669
fancier missing required parameter
2022-04-19 00:43:39 +02:00
9d7badba5d
handle auth exception
2022-04-19 00:23:56 +02:00
280d97afc8
didn't work but I found get_origin!
2022-04-19 00:19:13 +02:00
e18c725a6b
improved config parsing
...
now should try to respect type hint arguments (such as list[int]) and
work with typing stuff (List, Set)
2022-04-19 00:10:43 +02:00
28f84ca095
default to only configured addons
2022-04-18 21:45:02 +02:00
aebe8c1965
also in main
2022-04-18 20:46:26 +02:00
ab9d45c244
various fixes
2022-04-18 20:44:20 +02:00
814e489142
pass --mojang ...
2022-04-18 20:43:57 +02:00
a29cd737e8
fix: prepare dispatcher properly
2022-04-18 20:25:52 +02:00
d53272e411
some typing magic for retro compatibility
2022-04-18 20:06:54 +02:00
016e4170df
allow to use legacy token in config
2022-04-18 20:06:42 +02:00