async def weekly(ctx, *, arg=None): t = int(time.time()) for i in range(0, 52): if (t > (1609459200 + (i * 7 * 24 * 60 * 60) + (24*3600))): week = i + 1 di = getArgs(arg) if di.__contains__("-o"): if di["-o"] == "score": board = "rankedscore" elif di["-o"] == "fc": board = "fccount" elif di["-o"] == "ss": board = "sscount" elif di["-o"] == "clears": board = "clearcount" elif di["-o"] == "plays": board = "playcount" else: await ctx.send("Please specify a valid leaderboard type using -o") return if di.__contains__("-w"): week = di["-w"] embed = controller.checkfile(str(board) + "_" + str(week), di) await ctx.send(embed=embed) else: await ctx.send("Please specify a leaderboard type using -o") await updatelists()
async def fc_count(ctx, *, arg=None): di = getArgs(arg) if di.__contains__("-filter"): embed = controller.checkfile("fc_" + di["-filter"], di) await ctx.send(embed=embed) else: await ctx.send("Please specify a filter") await updatelists()
async def pp(ctx, *, arg=None): di = getArgs(arg) if di.__contains__("-filter"): embed = controller.checkfile("weightedpp_" + di["-filter"], di) await ctx.send(embed=embed) else: embed = controller.checkProfile("pp_raw", cur, di) await ctx.send(embed=embed) await updatelists()
async def a_ranks(ctx, *, arg=None): di = getArgs(arg) if di.__contains__("-filter"): embed = controller.checkfile("a-rank_" + di["-filter"], di) await ctx.send(embed=embed) else: embed = controller.checkProfile("a_count", cur, di) await ctx.send(embed=embed) await updatelists()
async def total_s(ctx, *, arg=None): di = getArgs(arg) if di.__contains__("-filter"): embed = controller.checkfile("totals_" + di["-filter"], di) await ctx.send(embed=embed) else: embed = controller.checkProfile("(sh_count + s_count)", cur, di) await ctx.send(embed=embed) await updatelists()
async def rankedscore(ctx, *, arg=None): di = getArgs(arg) if di.__contains__("-filter"): embed = controller.checkfile("rankedscore_" + di["-filter"], di) await ctx.send(embed=embed) else: embed = controller.checkProfile("ranked_score", cur, di) await ctx.send(embed=embed) await updatelists()
async def tragedy(ctx, *, arg=None): di = getArgs(arg) if di["-o"] == "x": f = "onemiss" else: f = "1x" + di["-o"] embed = controller.checkfile(f, di) await ctx.send(embed=embed) await updatelists()
async def yeartodate(ctx, *, arg=None): di = getArgs(arg) difficulty = "all" if di.__contains__("-o"): valid = ["score", "fc", "ss", "s", "clears", "plays", "pp", "top1", "top50", "silver_ss", "silver_s", "gold_ss", "gold_s", "a_ranks", "b_ranks", "c_ranks", "d_ranks"] if di["-o"] not in valid: await ctx.send("Please specify a valid leaderboard type using -o") return board = di["-o"] if board == "d_ranks": s = "HALL OF SHAME\n" if di.__contains__("-d"): difficulty = di["-d"] embed = controller.checkfile("2021_" + str(board) + "_" + str(difficulty), di) await ctx.send(embed=embed) else: await ctx.send("Please specify a leaderboard type using -o") await updatelists()
async def ssscore(ctx, *, arg=None): di = getArgs(arg) embed = controller.checkfile("ssscore", di) await ctx.send(embed=embed) await updatelists()
async def ppv1(ctx, *, arg=None): di = getArgs(arg) embed = controller.checkfile("ppv1truefull", di) await ctx.send(embed=embed) await updatelists()
async def pp_fun(ctx, *, arg=None): di = getArgs(arg) embed = controller.checkfile(di["-o"], di) await ctx.send(embed=embed) await updatelists()
async def projecttouhou(ctx, *, arg=None): di = getArgs(arg) embed = controller.checkfile(str(di["-o"]) + "_%touhou%", di) await ctx.send(embed=embed) await updatelists()
async def projecthitogata(ctx, *, arg=None): di = getArgs(arg) embed = controller.checkfile(str(di["-o"]) + "_%hitogata%ryuusei%", di) await ctx.send(embed=embed) await updatelists()