Exemple #1
0
 async def custom_reminder(ctx):
     args = str(ctx.message.content).split(' ')
     time = args[1].split('-')
     reminder = objects.Reminder(ctx.message.channel.id,
                                 f'<@{ctx.message.author.id}> ding dong reminder "{args[0]}" is activated',
                                 datetime.datetime.now(), time[0] * pow(60, 2) + time[1] * 60 + time[2])
     if not activate_reminder(reminder):
         await ctx.send(f'Custom reminder already exists for @<{ctx.message.author.id}>')
Exemple #2
0
    async def daily(ctx):
        if f'{ctx.message.author.id}' in blacklist:
            return

        reminder = objects.Reminder(ctx.message.channel.id,
                                    f'<@{ctx.message.author.id}> you\'re ready to collect your daily reward!',
                                    datetime.datetime.now(), 86400)
        activate_reminder(reminder)
Exemple #3
0
    async def claim(ctx):
        if f'{ctx.message.author.id}' in blacklist:
            return

        reminder = objects.Reminder(ctx.message.channel.id,
                                    f'<@{ctx.message.author.id}> you\'re ready to vote!',
                                    datetime.datetime.now(), 43200)
        activate_reminder(reminder)
Exemple #4
0
    async def clean(ctx):
        if f'{ctx.message.author.id}' in blacklist:
            return

        reminder = objects.Reminder(ctx.message.channel.id,
                                    f'<@{ctx.message.author.id}> you\'re ready to clean your shack!',
                                    datetime.datetime.now(), 86400)
        activate_reminder(reminder)
Exemple #5
0
    async def buy(ctx):
        if f'{ctx.message.author.id}' in blacklist:
            return

        arg: str = str(ctx.message.content).split(' ')[1].lower()
        duration = {
            'flipper': 28800,
            'karaoke': 21600,
            'music': 14400,
            'airplane': 86400,
            'chef': 14400
        }

        if arg in duration.keys():
            reminder = objects.Reminder(ctx.message.channel.id,
                                        f'<@{ctx.message.author.id}> your ``{arg}`` boost has run out!',
                                        datetime.datetime.now(), duration[arg])
            activate_reminder(reminder)