basic reworked bot

This commit is contained in:
Remy Moll
2021-01-29 21:45:16 +01:00
parent ec8983eb57
commit 39ae1ec038
18 changed files with 589 additions and 174 deletions

View File

@@ -71,4 +71,9 @@ class HookedDict(dict):
ret_val = super().__getitem__(key)
if type(ret_val) == dict:
ret_val = HookedDict(key, self, ret_val)
return ret_val
return ret_val
def pop(self, k, d=None):
retvalue = super().pop(k, d)
self.parent.__setitem__(self.name, self)
return retvalue