Ruby-Cogs/lastfm/utils/tokencheck.py
2025-03-26 10:59:44 -04:00

10 lines
308 B
Python

async def tokencheck(ctx):
token = await ctx.bot.get_shared_api_tokens("lastfm")
return bool(token.get("appid"))
async def tokencheck_plus_secret(ctx):
token = await ctx.bot.get_shared_api_tokens("lastfm")
if token.get("appid") and token.get("secret"):
return True
return False