Use bundled_data_path instead (#51)

Resolves #45
pull/53/head
bobloy 6 years ago committed by GitHub
parent 5ee1a6a84b
commit 2d3df8be89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -3,7 +3,7 @@ from random import randint
import discord
from redbot.core import Config, checks, commands
from redbot.core.data_manager import cog_data_path
from redbot.core.data_manager import bundled_data_path
from typing import Any
Cog: Any = getattr(commands, "Cog", object)
@ -31,9 +31,11 @@ class Hangman(Cog):
"answer": "",
}
)
self.path = str(cog_data_path(self)).replace("\\", "/")
# self.path = str(cog_data_path(self)).replace("\\", "/")
self.answer_path = self.path + "/bundled_data/hanganswers.txt"
# self.answer_path = self.path + "/bundled_data/hanganswers.txt"
self.answer_path = bundled_data_path(self) / "hanganswers.txt"
self.winbool = defaultdict(lambda: False)

Loading…
Cancel
Save