Skip to main content

Timers for bots made with

Project description


A simple extension for which provides basic timer support.


pip install discord-timers -U


import datetime

from discord.ext import commands, timers

bot = commands.Bot(command_prefix="!")
bot.timer_manager = timers.TimerManager(bot)

async def remind(ctx, time, *, text):
    """Remind to do something on a date.

    The date must be in ``Y/M/D`` format."""
    date = datetime.datetime(*map(int, time.split("/")))

    bot.timer_manager.create_timer("reminder", date, args=(,, text))
    # or without the manager
    timers.Timer(bot, "reminder", date, args=(,, text)).start()

async def on_reminder(channel_id, author_id, text):
    channel = bot.get_channel(channel_id)

    await channel.send("Hey, <@{0}>, remember to: {1}".format(author_id, text))"token")

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for discord-timers, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size discord_timers-0.1.0-py3.7.egg (8.9 kB) File type Egg Python version 3.7 Upload date Hashes View
Filename, size discord_timers-0.1.0-py3-none-any.whl (5.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size discord-timers-0.1.0.tar.gz (5.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page