Repository navigation
Daily Check in
SORA edited this page Nov 27, 2026
·
1 revision
att = await client.attendance()
print(f"claimed {att.claimed}/{len(att.calendar)} this month")
for i, day in enumerate(att.calendar, 1):
reward = att.reward(day)
print(i, reward.display_name, reward.count, "done" if day.done else "")try:
result = await client.check_in()
for reward in result.rewards:
print("got", reward.display_name, reward.count)
for reward in result.tomorrow:
print("tomorrow:", reward.display_name, reward.count)
except akef.AlreadyCheckedIn:
print("already done today")SKPORT uses the same code for "already checked in" and for a login that just expired. check_in() tells the two
apart, so you only get AlreadyCheckedIn when today really is claimed. The cached calendar is cleared right after,
so attendance() is up to date.
A small script you can run from Task Scheduler or cron once a day:
import asyncio
import akef
TOKENS = ["token one", "token two"]
async def claim(token):
async with akef.Client(token) as client:
for role in await client.roles():
try:
result = await client.check_in(role.uid)
got = ", ".join(f"{r.display_name} x{r.count}" for r in result.rewards)
print(role.nickname, "got", got)
except akef.AlreadyCheckedIn:
print(role.nickname, "already done")
except akef.AuthError:
print("that token is dead, get a new one")
return
async def main():
await asyncio.gather(*(claim(t) for t in TOKENS))
asyncio.run(main())For a bot that does this for its users, see Bot Recipes.
akef · MIT · not affiliated with Hypergryph or Gryphline
akef
- 🏠 Home
- 🚀 Getting Started
- 🎲 Pull History
- 📅 Daily Check-in
- 🧮 Enka and Final Stats
- 🤖 Bot Recipes
- ⚡ Caching and Logins
- ❓ FAQ
📖 Docs site
📦 PyPI
💻 Repo
🃏 akef-cards