From 148b36d630b0b324b666d858cbd678dae1487b88 Mon Sep 17 00:00:00 2001 From: aikaterna <20862007+aikaterna@users.noreply.github.com> Date: Mon, 17 Dec 2018 11:33:05 -0800 Subject: [PATCH] [V3 CardsAgainstHumanity] Bundled data fun --- cah/cah.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cah/cah.py b/cah/cah.py index b369b1b..d7fc4ef 100644 --- a/cah/cah.py +++ b/cah/cah.py @@ -6,7 +6,7 @@ import random import time from random import shuffle from redbot.core import commands -from redbot.core.data_manager import cog_data_path +from redbot.core.data_manager import bundled_data_path BaseCog = getattr(commands, "Cog", object) @@ -30,7 +30,7 @@ class CardsAgainstHumanity(BaseCog): self.botName = "Rando Cardrissian" self.minMembers = 3 - file_path = str(cog_data_path(self)) + "/deck.json" + file_path = bundled_data_path(self) / "deck.json" f = open(file_path, "r") filedata = f.read() f.close()