Esempio n. 1
0
    async def run_cancel(self, context, type):

        user = User(context.message.author.id, context.guild.id, context)
        user.delete_goal(type)
        return await context.send(
            user.get_mention() + ', ' +
            lib.get_string('goal:givenup', user.get_guild()))
Esempio n. 2
0
    async def run_cancel(self, context):

        user = User(context.message.author.id, context.guild.id, context)

        # Currently only daily goals implemented
        type = 'daily'

        user.delete_goal(type)
        return await context.send(
            user.get_mention() + ', ' +
            lib.get_string('goal:givenup', user.get_guild()))