tonyravioli / dongerdong

ヽ༼ຈل͜ຈ༽ノ DongerDong IRC Fight Bot ヽ༼ຈل͜ຈ༽ノ

Home Page:http://www.donger.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

trouble using extcmd/jaden.py and extcmd/dong.py on Windows

jnmtx opened this issue · comments

commented

I had trouble using extcmd/jaden.py and extcmd/dong.py on Windows and had to change:
jadenlist = json.load(open("wisdom/jaden.json"))
to
jadenlist = json.load(open("wisdom/jaden.json", 'r', encoding='utf-8'))
and:
dongerlist = json.load(open("wisdom/dongers.json"))
to:
dongerlist = json.load(open("wisdom/dongers.json", 'r', encoding='utf-8'))
otherwise the Unicode characters would cause the files to fail to load

excuse.py didn't have that problem b/c no unicode

commented

Verified fix by checking out and running on Windows 7 64-bit. Worked.