NNTin / Reply-Dota-2-Reddit

replies to /r/dota2 comments with information provided by the SteamAPI
https://www.reddit.com/r/dota2/user/analyzeLast100games
MIT License
19 stars 0 forks source link

Reddit bot breaks on Dotabuff chat link in comments #24

Open C-Kenny opened 6 years ago

C-Kenny commented 6 years ago

When a reddit user comments with a Dotabuff link to chat e.g. https://www.dotabuff.com/matches/4095897989/chat the reddit bot comments "None".

NNTin commented 6 years ago

Thanks for the report. I located the bug. My chatwheel phrases are outdated. It couldn't locate a chatwheel phrase and errored.
It will be fixed in the next days.

edit: It's broken over at the OpenDota website as well. They only have the chat phrases from 0 to 110. Which is also what my bot is using: https://pastebin.com/qEYWyuJd
To fix it I would need a new json file with 1031 entries: https://github.com/SteamDatabase/GameTracking-Dota2/blob/ac5cc2f742a9c7ae5976b2f216c056b90434de28/game/dota/pak01_dir/scripts/chat_wheel.txt#L261
https://github.com/SteamDatabase/GameTracking-Dota2/blob/b00f74101651a1df53b85bc36c2b7d4e03535b1a/game/dota/resource/hero_chat_wheel_english.txt

It's a vdf file. I'll research at a later date on how I can transform it into a json file.

C-Kenny commented 6 years ago

Any luck with this? Do we have the raw vdf file handy or how to get it?

NNTin commented 6 years ago

The last two links I linked are the vdf file. There is a vdf python library so you can transform it into a json. You will need to combine it with the english localization vdf file.

I know what I need to do but I didn't have the time to do it yet. It's been 1 month already.....