Metadata-Version: 2.1
Name: discord-timers
Version: 0.1.0
Summary: Timers for bots made with discord.py
Home-page: https://github.com/PendragonLore/discord-timers
Author: Lorenzo
License: MIT
Project-URL: Code, https://github.com/PendragonLore/discord-timers
Project-URL: Issue tracker, https://github.com/PendragonLore/discord-timers/issues
Description: # discord-timers
        
        A simple extension for discord.py which provides basic timer support.
        
        ## Installing
        
        ```bash
        pip install discord-timers -U
        ```
        
        ## Example
        
        ```python
        import datetime
        
        from discord.ext import commands, timers
        
        
        bot = commands.Bot(command_prefix="!")
        bot.timer_manager = timers.TimerManager(bot)
        
        
        @bot.command(name="remind")
        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=(ctx.channel.id, ctx.author.id, text))
            # or without the manager
            timers.Timer(bot, "reminder", date, args=(ctx.channel.id, ctx.author.id, text)).start()
        
        @bot.event
        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))
        
        
        bot.run("token")
        ```
Keywords: asyncio,discord,timers
Platform: any
Classifier: License :: OSI Approved :: MIT License
Classifier: Framework :: AsyncIO
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Development Status :: 3 - Alpha
Classifier: Natural Language :: English
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Topic :: Internet
Classifier: Topic :: Utilities
Classifier: Topic :: Software Development :: Libraries
Requires-Python: >=3.5.3
Description-Content-Type: text/markdown
