{ "info": { "author": "Lorenzo", "author_email": "", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Framework :: AsyncIO", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: Implementation :: CPython", "Topic :: Internet", "Topic :: Software Development :: Libraries", "Topic :: Utilities" ], "description": "# discord-timers\n\nA simple extension for discord.py which provides basic timer support.\n\n## Installing\n\n```bash\npip install discord-timers -U\n```\n\n## Example\n\n```python\nimport datetime\n\nfrom discord.ext import commands, timers\n\n\nbot = commands.Bot(command_prefix=\"!\")\nbot.timer_manager = timers.TimerManager(bot)\n\n\n@bot.command(name=\"remind\")\nasync def remind(ctx, time, *, text):\n \"\"\"Remind to do something on a date.\n\n The date must be in ``Y/M/D`` format.\"\"\"\n date = datetime.datetime(*map(int, time.split(\"/\")))\n\n bot.timer_manager.create_timer(\"reminder\", date, args=(ctx.channel.id, ctx.author.id, text))\n # or without the manager\n timers.Timer(bot, \"reminder\", date, args=(ctx.channel.id, ctx.author.id, text)).start()\n\n@bot.event\nasync def on_reminder(channel_id, author_id, text):\n channel = bot.get_channel(channel_id)\n\n await channel.send(\"Hey, <@{0}>, remember to: {1}\".format(author_id, text))\n\n\nbot.run(\"token\")\n```\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/PendragonLore/discord-timers", "keywords": "asyncio,discord,timers", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "discord-timers", "package_url": "https://pypi.org/project/discord-timers/", "platform": "any", "project_url": "https://pypi.org/project/discord-timers/", "project_urls": { "Code": "https://github.com/PendragonLore/discord-timers", "Homepage": "https://github.com/PendragonLore/discord-timers", "Issue tracker": "https://github.com/PendragonLore/discord-timers/issues" }, "release_url": "https://pypi.org/project/discord-timers/0.1.0/", "requires_dist": null, "requires_python": ">=3.5.3", "summary": "Timers for bots made with discord.py", "version": "0.1.0" }, "last_serial": 5677664, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "753e614deefd3045493c8ea74629abef", "sha256": "64ba41ee93ba80406b08b25ea6235e73fbc6958585a8d9bd85368d1f9e17fa86" }, "downloads": -1, "filename": "discord_timers-0.1.0-py3.7.egg", "has_sig": false, "md5_digest": "753e614deefd3045493c8ea74629abef", "packagetype": "bdist_egg", "python_version": "3.7", "requires_python": ">=3.5.3", "size": 8929, "upload_time": "2019-08-14T15:34:14", "url": "https://files.pythonhosted.org/packages/f1/08/3f50316b3a2f0b8daf991caed186fb801f56ed38e2978aa47e160dbbbdb5/discord_timers-0.1.0-py3.7.egg" }, { "comment_text": "", "digests": { "md5": "0ad78be3bc238b32975e15f57d1e213f", "sha256": "6a58b511562d26d931d86c70cddde15efbd45edbefe5fa56b3672a098e3e24a8" }, "downloads": -1, "filename": "discord_timers-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "0ad78be3bc238b32975e15f57d1e213f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5.3", "size": 5599, "upload_time": "2019-08-14T15:34:10", "url": "https://files.pythonhosted.org/packages/b9/10/5b7e98393038b3804329258fe2885778f68b2e3f86b347e757c36e64fe23/discord_timers-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d3d7343024673c494c143d4903176f38", "sha256": "034dd9ad7657a992dbaa98d6b29c5e389df5b727d24f46be817c95adf719f3f4" }, "downloads": -1, "filename": "discord-timers-0.1.0.tar.gz", "has_sig": false, "md5_digest": "d3d7343024673c494c143d4903176f38", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5.3", "size": 5025, "upload_time": "2019-08-14T15:34:13", "url": "https://files.pythonhosted.org/packages/98/28/ab479f72fd14ac4affacee448acd09ea9f618bc6b05ada38d3e1412cd780/discord-timers-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "753e614deefd3045493c8ea74629abef", "sha256": "64ba41ee93ba80406b08b25ea6235e73fbc6958585a8d9bd85368d1f9e17fa86" }, "downloads": -1, "filename": "discord_timers-0.1.0-py3.7.egg", "has_sig": false, "md5_digest": "753e614deefd3045493c8ea74629abef", "packagetype": "bdist_egg", "python_version": "3.7", "requires_python": ">=3.5.3", "size": 8929, "upload_time": "2019-08-14T15:34:14", "url": "https://files.pythonhosted.org/packages/f1/08/3f50316b3a2f0b8daf991caed186fb801f56ed38e2978aa47e160dbbbdb5/discord_timers-0.1.0-py3.7.egg" }, { "comment_text": "", "digests": { "md5": "0ad78be3bc238b32975e15f57d1e213f", "sha256": "6a58b511562d26d931d86c70cddde15efbd45edbefe5fa56b3672a098e3e24a8" }, "downloads": -1, "filename": "discord_timers-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "0ad78be3bc238b32975e15f57d1e213f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5.3", "size": 5599, "upload_time": "2019-08-14T15:34:10", "url": "https://files.pythonhosted.org/packages/b9/10/5b7e98393038b3804329258fe2885778f68b2e3f86b347e757c36e64fe23/discord_timers-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d3d7343024673c494c143d4903176f38", "sha256": "034dd9ad7657a992dbaa98d6b29c5e389df5b727d24f46be817c95adf719f3f4" }, "downloads": -1, "filename": "discord-timers-0.1.0.tar.gz", "has_sig": false, "md5_digest": "d3d7343024673c494c143d4903176f38", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5.3", "size": 5025, "upload_time": "2019-08-14T15:34:13", "url": "https://files.pythonhosted.org/packages/98/28/ab479f72fd14ac4affacee448acd09ea9f618bc6b05ada38d3e1412cd780/discord-timers-0.1.0.tar.gz" } ] }