Exemplo n.º 1
0
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()
Exemplo n.º 2
0
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()
Exemplo n.º 3
0
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()
Exemplo n.º 4
0
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()
Exemplo n.º 5
0
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()
Exemplo n.º 6
0
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()
Exemplo n.º 7
0
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()
Exemplo n.º 8
0
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()
Exemplo n.º 9
0
async def ssscore(ctx, *, arg=None):
    di = getArgs(arg)
    embed = controller.checkfile("ssscore", di)
    await ctx.send(embed=embed)
    await updatelists()
Exemplo n.º 10
0
async def ppv1(ctx, *, arg=None):
    di = getArgs(arg)
    embed = controller.checkfile("ppv1truefull", di)
    await ctx.send(embed=embed)
    await updatelists()
Exemplo n.º 11
0
async def pp_fun(ctx, *, arg=None):
    di = getArgs(arg)
    embed = controller.checkfile(di["-o"], di)
    await ctx.send(embed=embed)
    await updatelists()
Exemplo n.º 12
0
async def projecttouhou(ctx, *, arg=None):
    di = getArgs(arg)
    embed = controller.checkfile(str(di["-o"]) + "_%touhou%", di)

    await ctx.send(embed=embed)
    await updatelists()
Exemplo n.º 13
0
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()