Skip to content

Commit 680cbcd

Browse files
authored
Merge pull request CloudBotIRC#167 from linuxdaemon/gonzobot+halal-fix
Fix halal template data not being loaded
2 parents e645932 + 8da6162 commit 680cbcd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

plugins/halal.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@
99
kosher_data = {}
1010

1111

12+
@hook.on_start
1213
def load_data(bot):
1314
def load_file(file, data_dict):
1415
data_dict.clear()
15-
path = Path(bot.data_dir) / file
16+
path = Path(bot.data_dir) / "food" / file
1617
with path.open(encoding='utf-8') as f:
1718
data_dict.update(json.load(f))
1819

0 commit comments

Comments
 (0)