Rewards

gd.py has interface that allows fetching chests and quests:

client = gd.Client()

await client.login("user", "password")  # must be logged in

chests = await client.get_chests()
# [<Chest id=... orbs=... diamonds=... shard_id=... shard_type=... keys=... count=... delta=h:m:s>, ...]

quests = await client.get_quests()
# [<Quest id=... name=... type=... amount=... reward=... delta=h:m:s>, ...]

Chest

class gd.Chest(**options)[source]
orbs

Amount of orbs the chest will give.

Type

int

diamonds

Amount of diamonds the chest will give.

Type

int

shard_id

ID of shard the chest will give.

Type

int

shard_type

Type of the shard the chest will give.

Type

ShardType

keys

Amount of keys the chest will give.

Type

int

count

Amount of chests already opened.

Type

int

seconds

Amount of seconds until next chest can be opened.

Type

int

delta

Amount of seconds until next chest, wrapped in delta.

Type

datetime.timedelta

ready_at

Timestamp after which the chest can be opened.

Type

datetime.datetime

Quest

class gd.Quest(**options)[source]
type

Type of a quest requirement.

Type

QuestType

amount

Amount of items to collect.

Type

int

reward

Amount of diamonds in reward.

Type

int

name

Name of the quest.

Type

str

seconds

Seconds until next quest pack.

Type

int

delta

Delta until next quest pack.

Type

datetime.timedelta

new_at

datetime.datetime Timestamp after which next quest pack can be fetched.