Skip to content

Daily Check in

SORA edited this page Nov 27, 2026 · 1 revision

The calendar

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 "")

Claiming today

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.

Every account, every day

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.

Clone this wiki locally