diff --git a/recyclingplant/recyclingplant.py b/recyclingplant/recyclingplant.py index 7f8f326..dbb77da 100644 --- a/recyclingplant/recyclingplant.py +++ b/recyclingplant/recyclingplant.py @@ -14,13 +14,11 @@ class RecyclingPlant(Cog): def __init__(self, bot): self.bot = bot - - self.junk_path = bundled_data_path(self) / "junk.json" - self.junk = None def load_junk(self): - with self.junk_path.open() as json_data: + junk_path = bundled_data_path(self) / "junk.json" + with junk_path.open() as json_data: self.junk = json.load(json_data) @commands.command(aliases=["recycle"])