tzhf / chatguessr

A Twitch chatbot for GeoGuessr.
https://chatguessr.com
MIT License
38 stars 9 forks source link

Add command !map to display the name and description of the current map #63

Closed enigmamf closed 4 months ago

enigmamf commented 4 months ago

A map's description is often helpful to understand what types of locations to expect in a game, especially if one is playing a map with unofficial coverage of various sorts. This PR adds a command !map that:

(I decided to include the creator/# plays/# likes because that helps indicate if the streamer is playing an imposter map)

I did this as an additional API call because unfortunately the seed information only has the map title, not the map description.

Because that extra API call can be slow, I included a cooldown period.

If you're interested in incorporating this, please feel welcome to suggest any changes or make any edits!

tzhf commented 4 months ago

Cool feature ! I see no problem adding it ! The HTML part is missing in settings, feel free to add it or i will. Btw there's a new rewritten version that's about to be merged if you want to take a look: https://github.com/tzhf/chatguessr-electron-vite