fix: this was wip, im not ready to migrate yet
This commit is contained in:
parent
b14ca9d862
commit
ba721a4b30
1 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
from datetime import datetime
|
||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
@ -84,13 +85,16 @@ class Addon:
|
||||||
else: # not really necessary since it's a dataclass but whatever
|
else: # not really necessary since it's a dataclass but whatever
|
||||||
opts[field.name] = default
|
opts[field.name] = default
|
||||||
self.config = self.Options(**opts)
|
self.config = self.Options(**opts)
|
||||||
self.storage = client.storage.addon_storage(self.name)
|
self.storage = self.init_storage()
|
||||||
self.logger = self._client.logger.getChild(self.name)
|
self.logger = self._client.logger.getChild(self.name)
|
||||||
self.register()
|
self.register()
|
||||||
|
|
||||||
def register(self):
|
def register(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
def init_storage(self) -> AddonStorage:
|
||||||
|
return self.client.storage.addon_storage(self.name)
|
||||||
|
|
||||||
async def initialize(self):
|
async def initialize(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue