Telegram bot for GemsOfWar

/stu [traits stone] - search troops which use traits stone for their upgrade

Traits and Upgrade Information is now displayed.

4 Likes

Very nice work. If I could like a post twice, I would.

1 Like

/stu * - Dispaly All Arcane TraitsStone and where to get it

5 Likes

Added: @GemsOfWar_bot searches class information, too.

2 Likes

Added: Search troops using traitstone with TraitsStone color.

/stu brye - (brown, yellow)

/stu puye - (purple, yellow)

3 Likes

Does /stu yepu give the same list as /stu puye?

Sure.

1 Like

/sd desc - search spellā€™s description

ex) /sd true damage - display all weapon/troop having ā€˜true damageā€™ skills

2 Likes

Add [Search Recommended Deck] command

/st troop

2 Likes

Hi jmjeong.

Thereā€™s any repo to check so we can suggest/pull request any changes or translations for the bot?

Thanks and best regards.

The source code is not publicly released yet.
You can suggest any idea in this forum.

Thanks for your quick answer. My first idea was a spanish translation. Thereā€™s any fast way to do that? Or what kind of info do you need?

Best regards.

Bot data is retrieved from http://gowdb.com Since gowdb.com has Spanish translation, I can add multiple language support in future, but currently, I didnā€™t consider it.

Incidentally, if you are pulling from my site (which is totally fine by me), you might consider using the JSON endpoints instead of scraping the HTML. They wonā€™t change as I futz with the page layouts.

http://gowdb.com/api/troops
http://gowdb.com/api/troops/6167
http://gowdb.com/api/troops/details
http://gowdb.com/api/troops/6167/details
http://gowdb.com/api/classes
http://gowdb.com/api/classes/11135/details
http://gowdb.com/api/spells
http://gowdb.com/api/spells/7010/details
http://gowdb.com/api/traits
http://gowdb.com/api/traits/big/details
http://gowdb.com/api/weapons
http://gowdb.com/api/weapons/1135/details
http://gowdb.com/api/traitstones
http://gowdb.com/api/traitstones/35/details
http://gowdb.com/api/searches/all?term=Dark

5 Likes

Lyya, Iā€™m sorry I could not inform you in advance.
Thank you the API. It will be very helpful.

Telegram bot retrieved the data from Gems of War Database, http://gowdb.com/weaponquery, and Gems of War Database twice a day automatically.

Lyya, one suggestion for API.

  • Query for the changed data from the specific time.

Currently, I compare the retrieved data and the local saved data and fetch the updated data to reduce server overhead.

1 Like

Yeah, I can add that.

1 Like

Okay, added. All responses now have an ISO-8601 timestamp in a ā€œmodTimeā€ property on the root of the JSON payload, which corresponds to the last time the database contents have changed. Let me know if thereā€™s anything else youā€™d need.

3 Likes

Whatā€™s the API endpoint? Could you give me the example?

Any of them will show it. I donā€™t have a specific endpoint just for mod time; for the moment you can do:

http://gowdb.com/api/traitstones/1

1 Like

modTime field is good.

But what I need is what info. is changed from the last fetch time. Telegram-bot caches the data for speed and for reducing gowdb.com load.

What I need is the information about the newly added troop or weapon, mana change, desc change, and the new kingdom etc since the last fetch time. Without this api, I have to retrieve all data and compare the changes with the cached data (Actually I do it in the current version)