Fix dbrand config error
This commit is contained in:
parent
8226320640
commit
cd78b0e002
1 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@ from naff.models.naff.application_commands import (
|
|||
from naff.models.naff.command import cooldown
|
||||
from naff.models.naff.cooldowns import Buckets
|
||||
|
||||
from jarvis.config import get_config
|
||||
from jarvis.config import JarvisConfig
|
||||
from jarvis.data.dbrand import shipping_lookup
|
||||
from jarvis.utils import build_embed
|
||||
|
||||
|
@ -33,7 +33,7 @@ class DbrandCog(Cog):
|
|||
self.base_url = "https://dbrand.com/"
|
||||
self._session = aiohttp.ClientSession()
|
||||
self._session.headers.update({"Content-Type": "application/json"})
|
||||
self.api_url = get_config().urls["dbrand_shipping"]
|
||||
self.api_url = JarvisConfig.from_yaml().urls["dbrand_shipping"]
|
||||
self.cache = {}
|
||||
|
||||
def __del__(self):
|
||||
|
|
Loading…
Add table
Reference in a new issue