achievements

class pyZUnivers.achievements.Achievements(username: str)

User achievements.

name

The name of the user.

Type:

str

get_yearly(year: int) bool | int

Get the number of days left to complete the yearly achievement for the given year.

Parameters:

year (int) – How many year(s) for the achievement.

Returns:

The number of days left to complete the yearly achievement. Returns False if the achievement is not unlocked.

Return type:

bool|int

Raises:

_YearError – If the year is not within the valid range (1-3).