Example #1
0
async def uncheck(ctx, num: int):
    """
    Resets a quest.
    """
    quests.uncheck(num)
    for quest in quests.get_formatted():
        await ctx.send(quest)
Example #2
0
async def fail(ctx, num: int):
    """
    Marks a quest as failed.
    """
    quests.fail(num)
    for quest in quests.get_formatted():
        await ctx.send(quest)
Example #3
0
async def check(ctx, num: int):
    """
    Checks off a quest from the quest list.
    """
    quests.check(num)
    for quest in quests.get_formatted():
        await ctx.send(quest)
Example #4
0
async def removequest(ctx, num: int):
    """
    Removes a quest from the quest list.
    """
    quests.remove(num)
    for quest in quests.get_formatted():
        await ctx.send(quest)
Example #5
0
async def addquest(ctx, *quest):
    """
    Adds a quest to the quest list.
    """
    quests.add(" ".join(quest))
    for quest in quests.get_formatted():
        await ctx.send(quest)
Example #6
0
async def quests_(ctx):
    """
    Lists the quests.
    """
    for quest in quests.get_formatted():
        await ctx.send(quest)