Compare commits

..

No commits in common. "2200f4a3cd02ad6f3be1b1c36cecd1d2143dc596" and "615f0cd184fc786de7d9e36cb67da8691c582718" have entirely different histories.

View file

@ -33,18 +33,6 @@ def setup(bot: bot.Bot):
print("returned")
return
if username.startswith("[@:"):
mentioned = bot.get_user(username[3:-1])
try: username = await bot.get_lastfm(mentioned.id)
except Exception as e:
print(e)
await ctx.send(u.error_msg(f"Unknown database error:\n{e}"))
if not username:
await ctx.send(u.error_msg(f"[@:{mentioned.id}] doesn't seem to have an account set. Do so with `/setfm`."))
print("returned")
return
match timeframe:
case "a" | "all" | "alltime" | "o" | "overall": timeframe = "overall"
case "y" | "year" | "yearly": timeframe = "12month"
@ -54,7 +42,7 @@ def setup(bot: bot.Bot):
case _: "7day"
if timeframe == "1day":
await ctx.send(u.error_msg("Daily charts are not yet supported. Sorry!!"))
ctx.send(u.error_msg("Daily charts are not yet supported. Sorry!!"))
return
try: