Initial commit
This commit is contained in:
@@ -0,0 +1 @@
|
||||
pip
|
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2015-present Rapptz
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a
|
||||
copy of this software and associated documentation files (the "Software"),
|
||||
to deal in the Software without restriction, including without limitation
|
||||
the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
and/or sell copies of the Software, and to permit persons to whom the
|
||||
Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
DEALINGS IN THE SOFTWARE.
|
@@ -0,0 +1,149 @@
|
||||
Metadata-Version: 2.1
|
||||
Name: discord.py
|
||||
Version: 1.7.3
|
||||
Summary: A Python wrapper for the Discord API
|
||||
Home-page: https://github.com/Rapptz/discord.py
|
||||
Author: Rapptz
|
||||
License: MIT
|
||||
Project-URL: Documentation, https://discordpy.readthedocs.io/en/latest/
|
||||
Project-URL: Issue tracker, https://github.com/Rapptz/discord.py/issues
|
||||
Platform: UNKNOWN
|
||||
Classifier: Development Status :: 5 - Production/Stable
|
||||
Classifier: License :: OSI Approved :: MIT License
|
||||
Classifier: Intended Audience :: Developers
|
||||
Classifier: Natural Language :: English
|
||||
Classifier: Operating System :: OS Independent
|
||||
Classifier: Programming Language :: Python :: 3.5
|
||||
Classifier: Programming Language :: Python :: 3.6
|
||||
Classifier: Programming Language :: Python :: 3.7
|
||||
Classifier: Programming Language :: Python :: 3.8
|
||||
Classifier: Topic :: Internet
|
||||
Classifier: Topic :: Software Development :: Libraries
|
||||
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
||||
Classifier: Topic :: Utilities
|
||||
Requires-Python: >=3.5.3
|
||||
Description-Content-Type: text/x-rst
|
||||
Requires-Dist: aiohttp (<3.8.0,>=3.6.0)
|
||||
Provides-Extra: docs
|
||||
Requires-Dist: sphinx (==3.0.3) ; extra == 'docs'
|
||||
Requires-Dist: sphinxcontrib-trio (==1.1.2) ; extra == 'docs'
|
||||
Requires-Dist: sphinxcontrib-websupport ; extra == 'docs'
|
||||
Provides-Extra: voice
|
||||
Requires-Dist: PyNaCl (<1.5,>=1.3.0) ; extra == 'voice'
|
||||
|
||||
discord.py
|
||||
==========
|
||||
|
||||
.. image:: https://discord.com/api/guilds/336642139381301249/embed.png
|
||||
:target: https://discord.gg/r3sSKJJ
|
||||
:alt: Discord server invite
|
||||
.. image:: https://img.shields.io/pypi/v/discord.py.svg
|
||||
:target: https://pypi.python.org/pypi/discord.py
|
||||
:alt: PyPI version info
|
||||
.. image:: https://img.shields.io/pypi/pyversions/discord.py.svg
|
||||
:target: https://pypi.python.org/pypi/discord.py
|
||||
:alt: PyPI supported Python versions
|
||||
|
||||
A modern, easy to use, feature-rich, and async ready API wrapper for Discord written in Python.
|
||||
|
||||
Key Features
|
||||
-------------
|
||||
|
||||
- Modern Pythonic API using ``async`` and ``await``.
|
||||
- Proper rate limit handling.
|
||||
- 100% coverage of the supported Discord API.
|
||||
- Optimised in both speed and memory.
|
||||
|
||||
Installing
|
||||
----------
|
||||
|
||||
**Python 3.5.3 or higher is required**
|
||||
|
||||
To install the library without full voice support, you can just run the following command:
|
||||
|
||||
.. code:: sh
|
||||
|
||||
# Linux/macOS
|
||||
python3 -m pip install -U discord.py
|
||||
|
||||
# Windows
|
||||
py -3 -m pip install -U discord.py
|
||||
|
||||
Otherwise to get voice support you should run the following command:
|
||||
|
||||
.. code:: sh
|
||||
|
||||
# Linux/macOS
|
||||
python3 -m pip install -U "discord.py[voice]"
|
||||
|
||||
# Windows
|
||||
py -3 -m pip install -U discord.py[voice]
|
||||
|
||||
|
||||
To install the development version, do the following:
|
||||
|
||||
.. code:: sh
|
||||
|
||||
$ git clone https://github.com/Rapptz/discord.py
|
||||
$ cd discord.py
|
||||
$ python3 -m pip install -U .[voice]
|
||||
|
||||
|
||||
Optional Packages
|
||||
~~~~~~~~~~~~~~~~~~
|
||||
|
||||
* PyNaCl (for voice support)
|
||||
|
||||
Please note that on Linux installing voice you must install the following packages via your favourite package manager (e.g. ``apt``, ``dnf``, etc) before running the above commands:
|
||||
|
||||
* libffi-dev (or ``libffi-devel`` on some systems)
|
||||
* python-dev (e.g. ``python3.6-dev`` for Python 3.6)
|
||||
|
||||
Quick Example
|
||||
--------------
|
||||
|
||||
.. code:: py
|
||||
|
||||
import discord
|
||||
|
||||
class MyClient(discord.Client):
|
||||
async def on_ready(self):
|
||||
print('Logged on as', self.user)
|
||||
|
||||
async def on_message(self, message):
|
||||
# don't respond to ourselves
|
||||
if message.author == self.user:
|
||||
return
|
||||
|
||||
if message.content == 'ping':
|
||||
await message.channel.send('pong')
|
||||
|
||||
client = MyClient()
|
||||
client.run('token')
|
||||
|
||||
Bot Example
|
||||
~~~~~~~~~~~~~
|
||||
|
||||
.. code:: py
|
||||
|
||||
import discord
|
||||
from discord.ext import commands
|
||||
|
||||
bot = commands.Bot(command_prefix='>')
|
||||
|
||||
@bot.command()
|
||||
async def ping(ctx):
|
||||
await ctx.send('pong')
|
||||
|
||||
bot.run('token')
|
||||
|
||||
You can find more examples in the examples directory.
|
||||
|
||||
Links
|
||||
------
|
||||
|
||||
- `Documentation <https://discordpy.readthedocs.io/en/latest/index.html>`_
|
||||
- `Official Discord Server <https://discord.gg/r3sSKJJ>`_
|
||||
- `Discord API <https://discord.gg/discord-api>`_
|
||||
|
||||
|
@@ -0,0 +1,130 @@
|
||||
discord.py-1.7.3.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
||||
discord.py-1.7.3.dist-info/LICENSE,sha256=IRr8eHptwl13Oez9dujx-pRmN028VYOGiW2Yzf7lEn0,1081
|
||||
discord.py-1.7.3.dist-info/METADATA,sha256=TTjcSrpo1wVU-HhmGryrqmSzVpaQAUI5IaFjJooiKIM,4097
|
||||
discord.py-1.7.3.dist-info/RECORD,,
|
||||
discord.py-1.7.3.dist-info/WHEEL,sha256=OqRkF0eY5GHssMorFjlbTIq072vpHpF60fIQA6lS9xA,92
|
||||
discord.py-1.7.3.dist-info/top_level.txt,sha256=fJkrNbR-_8ubMBUcDEJBcfkpECrvSEmMrNKgvLlQFoM,8
|
||||
discord/__init__.py,sha256=00BUhwY0-tumcIa34i2t4iZViYFJpbGManZNA_d8qro,1953
|
||||
discord/__main__.py,sha256=wqn1OQFybIITr4FZceGkddAMWB96DSUPdxeCuipt8AY,9999
|
||||
discord/__pycache__/__init__.cpython-39.pyc,,
|
||||
discord/__pycache__/__main__.cpython-39.pyc,,
|
||||
discord/__pycache__/abc.cpython-39.pyc,,
|
||||
discord/__pycache__/activity.cpython-39.pyc,,
|
||||
discord/__pycache__/appinfo.cpython-39.pyc,,
|
||||
discord/__pycache__/asset.cpython-39.pyc,,
|
||||
discord/__pycache__/audit_logs.cpython-39.pyc,,
|
||||
discord/__pycache__/backoff.cpython-39.pyc,,
|
||||
discord/__pycache__/calls.cpython-39.pyc,,
|
||||
discord/__pycache__/channel.cpython-39.pyc,,
|
||||
discord/__pycache__/client.cpython-39.pyc,,
|
||||
discord/__pycache__/colour.cpython-39.pyc,,
|
||||
discord/__pycache__/context_managers.cpython-39.pyc,,
|
||||
discord/__pycache__/embeds.cpython-39.pyc,,
|
||||
discord/__pycache__/emoji.cpython-39.pyc,,
|
||||
discord/__pycache__/enums.cpython-39.pyc,,
|
||||
discord/__pycache__/errors.cpython-39.pyc,,
|
||||
discord/__pycache__/file.cpython-39.pyc,,
|
||||
discord/__pycache__/flags.cpython-39.pyc,,
|
||||
discord/__pycache__/gateway.cpython-39.pyc,,
|
||||
discord/__pycache__/guild.cpython-39.pyc,,
|
||||
discord/__pycache__/http.cpython-39.pyc,,
|
||||
discord/__pycache__/integrations.cpython-39.pyc,,
|
||||
discord/__pycache__/invite.cpython-39.pyc,,
|
||||
discord/__pycache__/iterators.cpython-39.pyc,,
|
||||
discord/__pycache__/member.cpython-39.pyc,,
|
||||
discord/__pycache__/mentions.cpython-39.pyc,,
|
||||
discord/__pycache__/message.cpython-39.pyc,,
|
||||
discord/__pycache__/mixins.cpython-39.pyc,,
|
||||
discord/__pycache__/object.cpython-39.pyc,,
|
||||
discord/__pycache__/oggparse.cpython-39.pyc,,
|
||||
discord/__pycache__/opus.cpython-39.pyc,,
|
||||
discord/__pycache__/partial_emoji.cpython-39.pyc,,
|
||||
discord/__pycache__/permissions.cpython-39.pyc,,
|
||||
discord/__pycache__/player.cpython-39.pyc,,
|
||||
discord/__pycache__/raw_models.cpython-39.pyc,,
|
||||
discord/__pycache__/reaction.cpython-39.pyc,,
|
||||
discord/__pycache__/relationship.cpython-39.pyc,,
|
||||
discord/__pycache__/role.cpython-39.pyc,,
|
||||
discord/__pycache__/shard.cpython-39.pyc,,
|
||||
discord/__pycache__/state.cpython-39.pyc,,
|
||||
discord/__pycache__/sticker.cpython-39.pyc,,
|
||||
discord/__pycache__/team.cpython-39.pyc,,
|
||||
discord/__pycache__/template.cpython-39.pyc,,
|
||||
discord/__pycache__/user.cpython-39.pyc,,
|
||||
discord/__pycache__/utils.cpython-39.pyc,,
|
||||
discord/__pycache__/voice_client.cpython-39.pyc,,
|
||||
discord/__pycache__/webhook.cpython-39.pyc,,
|
||||
discord/__pycache__/widget.cpython-39.pyc,,
|
||||
discord/abc.py,sha256=QjBq9l_fv_R9xFw1lDGAr0uFtMbVR8UqfGflhCrhlO4,46930
|
||||
discord/activity.py,sha256=JYmE8DWaZizzQLG0mqqdTCYuWlafhhCoBhpGLsv64Vw,23795
|
||||
discord/appinfo.py,sha256=ZenSFK89ER3Ew6NNTJW4A8xRnay9MfhIeYRwoCq_fKM,7292
|
||||
discord/asset.py,sha256=x5oywlwn8wvPUuuFV13NyZkt4pREFQ7Gr6dCcxfLFvk,9269
|
||||
discord/audit_logs.py,sha256=iYy81YRgj_JcnsjFI_xX5ItNmvgokYIC-1jyoxyq-cc,13768
|
||||
discord/backoff.py,sha256=q8rPWl40ADrPqoLaoPglinktX4mY-nzfi4EetiboefQ,3169
|
||||
discord/bin/libopus-0.x64.dll,sha256=yE2oNujZJCGsMFhCz-WnJImO0J00DUaxKeIQvclEgTE,441856
|
||||
discord/bin/libopus-0.x86.dll,sha256=O1v-EpUPNQQ-110rb6kCyTbWelBxYL92NY1nx2wdveg,366080
|
||||
discord/calls.py,sha256=snaC3j7GFpqPjXHjxuZQAkjVNpTCCAM8hcghnEpypp4,5587
|
||||
discord/channel.py,sha256=fLwdtzyyujlDuANxfM1ZcfbqQMF8IbUC0AnEgoORXwE,50886
|
||||
discord/client.py,sha256=TB0ZmzEfCYmrtmq3612slTVSPamcEwuHTmu4PJX9ccg,50118
|
||||
discord/colour.py,sha256=0fF3M8rAPzeq8yhcBrUVzPZGTcTIOZuRpO1oMmg__Zk,8222
|
||||
discord/context_managers.py,sha256=odhbkkTY1QH4SudX1RE3y-ycBlH8ShJ_bItdtTQHCB4,2284
|
||||
discord/embeds.py,sha256=fSl_RcSpZkzDTSib-nqKnsOgxi8dO94VXdWjmEXJrB0,18073
|
||||
discord/emoji.py,sha256=IRR6WTkFsaZero6TZWrO_-lI8Cn8a0wiPOW42PLTOfg,8195
|
||||
discord/enums.py,sha256=vqJwfb6n5S5T8yZBxOPP2mMQoVUTWy9ItlppSeHhSQg,13998
|
||||
discord/errors.py,sha256=3vS8FYGWeHCcm3EgVOHrReY8T8qFHu2ZEMdwFvyu87Y,6979
|
||||
discord/ext/commands/__init__.py,sha256=2KEM9XcZXBju9dGhkSW_AZOr6R2D3cb_hl34uPkQ14w,452
|
||||
discord/ext/commands/__pycache__/__init__.cpython-39.pyc,,
|
||||
discord/ext/commands/__pycache__/_types.cpython-39.pyc,,
|
||||
discord/ext/commands/__pycache__/bot.cpython-39.pyc,,
|
||||
discord/ext/commands/__pycache__/cog.cpython-39.pyc,,
|
||||
discord/ext/commands/__pycache__/context.cpython-39.pyc,,
|
||||
discord/ext/commands/__pycache__/converter.cpython-39.pyc,,
|
||||
discord/ext/commands/__pycache__/cooldowns.cpython-39.pyc,,
|
||||
discord/ext/commands/__pycache__/core.cpython-39.pyc,,
|
||||
discord/ext/commands/__pycache__/errors.cpython-39.pyc,,
|
||||
discord/ext/commands/__pycache__/help.cpython-39.pyc,,
|
||||
discord/ext/commands/__pycache__/view.cpython-39.pyc,,
|
||||
discord/ext/commands/_types.py,sha256=yBc59FxB69Tn1-oidx7P4dvWUs7gs2WmT8XnzDZZoj8,1290
|
||||
discord/ext/commands/bot.py,sha256=3MVkaQBC4YrTNKM7THQmY0Lpn55srWvq0oMw4erOmfo,36750
|
||||
discord/ext/commands/cog.py,sha256=rhc6bfDEDiH25KtijmOF3q99AL7G9ubeZzH0_ZLhw80,15844
|
||||
discord/ext/commands/context.py,sha256=WqkcnY_o91ees64IVUPtbzCttOdt3LzOyzYxopLJywY,12279
|
||||
discord/ext/commands/converter.py,sha256=vGaUV7wBTgKWOv15uswVRCSZjvwX-ZSmQPuI1SEYle4,28960
|
||||
discord/ext/commands/cooldowns.py,sha256=8UeBd4siVlqKOx7bWk1Py7hb_1soF3GJp_9FLwubSDU,9275
|
||||
discord/ext/commands/core.py,sha256=lBTMmIfSJuS_r2d1c0guskVMsDm5oi97mZ9F5DqKYys,70598
|
||||
discord/ext/commands/errors.py,sha256=m0NZ-h4BEvNB1gTzKqVXghp96p2kPAB8JHl5q6kA2wc,25312
|
||||
discord/ext/commands/help.py,sha256=wPKtb0S5Uvu6RsUR-28IOkqBLc6R5y6OG10CuSR-3es,48484
|
||||
discord/ext/commands/view.py,sha256=WmzqW8lCH4bu74VzXpuzR6J1GRuQQ0qgiqce0TOnIjs,5999
|
||||
discord/ext/tasks/__init__.py,sha256=-KU101OsH8iitACPy57uUQ1ox82hAsGOtfPgkcxKTZs,16936
|
||||
discord/ext/tasks/__pycache__/__init__.cpython-39.pyc,,
|
||||
discord/file.py,sha256=pN474GdwOoHT5xS9ccBb_G1I_uqf7JtjnlvYwUR4mV0,4096
|
||||
discord/flags.py,sha256=TyjDUXHCx67LZwj5GWk4bg25ffH8rb9pFGQvfHBMx0U,30283
|
||||
discord/gateway.py,sha256=NImnPW1UxThqvdo4ga8RYh3h-8Nu_pc-Grx7wKBK-sA,31257
|
||||
discord/guild.py,sha256=aw-b6OWtgITCNmWWEYoac3GjYT74T778dRAZuVCZzeo,79614
|
||||
discord/http.py,sha256=A8-duBvUUDbGYPD8W07TujjKvOi_Gz5pMwATXalDC3E,39710
|
||||
discord/integrations.py,sha256=sIPrY5Qt8tOCuEPFMzUDm0v6aknm8SyRU4v5M-I0u5E,7149
|
||||
discord/invite.py,sha256=Ppmr5ew75OggYj_xqtvDYVucL7usQU3EtFkfSltxSKY,14537
|
||||
discord/iterators.py,sha256=_X-qKRzWDbp3-d1oCgRx4ns71obDKUg12rkyQo_vkiM,22824
|
||||
discord/member.py,sha256=kzw9NW1EEi6z30i_0KSHdISqh5H3pmEacZsxDpz4sNc,28734
|
||||
discord/mentions.py,sha256=SRqmeo3ovObngy7LCkQd6ouNeB_vFsb2SDqhW23aEcI,4925
|
||||
discord/message.py,sha256=pRzXNflyh8yu1NkCOLAwJnywLVgQKyj2YS8Uaq4AckQ,57581
|
||||
discord/mixins.py,sha256=f4ojrqFCFkEWXtnMNYqDxGgwZ2QRXhiKq_7RNpTwGD8,1508
|
||||
discord/object.py,sha256=NUyL6YDxwxoeK5ZuWYI6utMGWnOtYp8yn-dhcEhEYJU,2667
|
||||
discord/oggparse.py,sha256=dNvJT4moz1qMQ38nB5FkY8Kq0SwbOUTET34mRCyrbwA,3139
|
||||
discord/opus.py,sha256=omhkCkL5XCiqtgUQmlHf0xnw_m2a-Uh-GCzmNuBnPCs,13540
|
||||
discord/partial_emoji.py,sha256=RMR7-4lZLTrfMBFJ8hESUW4pPFxx-N6Rk5bmWRwJi0U,5916
|
||||
discord/permissions.py,sha256=0bHlMHJ0bAr-6DXuyh2-CdKqCmmF2MhTOndhwSDjhwM,20579
|
||||
discord/player.py,sha256=dMDssuXswQP-xhjNjMHvxsym_PHAw73WAiApezQ9-OY,23104
|
||||
discord/raw_models.py,sha256=otn1moxVVt1S7eDuZJZ18JzX7TG9s5BlVYEPmreUu_M,7600
|
||||
discord/reaction.py,sha256=IT9ayktMvQ74EaQ8SWydjZPiNenAtdKmgLOzE1H3A3A,6398
|
||||
discord/relationship.py,sha256=gsy30FpYHEZeJ6eg3cNmlbKpE3JMMpI0NPFqTIP4jnM,2585
|
||||
discord/role.py,sha256=hnAigRz9CeXSgerGU6fsHHCTDE16RtopXAVjFdylHgs,12346
|
||||
discord/shard.py,sha256=lELMU0dLhocPCt9rivOAYBeoP7e4onmYegSDfxhsT80,19363
|
||||
discord/state.py,sha256=JubdGy9Be1n1YQDFWCF7yErt9O7mPsPFojsB-Oi2Vi4,48476
|
||||
discord/sticker.py,sha256=3azXYQGU1-HqgemjmLG4v5rDgwrZsZlPmuaSI0XTvYc,4252
|
||||
discord/team.py,sha256=UV9qfjg9d6vbTnI_ZpWBJ0FlHz9P6jk7VGOzlF_GUcw,5144
|
||||
discord/template.py,sha256=mVQD1mlpxeTqYdwHl3yJBkk2cMnX1cA8J3cR_F0llYQ,7429
|
||||
discord/user.py,sha256=9H1-91yGF2PISn92wLafSmc-ZvAnpBvLFU6IsCg-uIQ,29680
|
||||
discord/utils.py,sha256=74W3F6dSu-UbCTj4rObqgCzakj80bDiFSp9aEKvym4s,18474
|
||||
discord/voice_client.py,sha256=kh8PwB5ZcGoiNZgbDNogPRHogmJiJw_OBwsx_oMwu8c,22766
|
||||
discord/webhook.py,sha256=2BJAA6mOmvMehW49q5JslIRVjqXcFKsOJQDBNhAZ63I,38516
|
||||
discord/widget.py,sha256=FZtnbU2_FsoVi40uqI7mejctdwPDh79Xn99mSeGqgjo,8607
|
@@ -0,0 +1,5 @@
|
||||
Wheel-Version: 1.0
|
||||
Generator: bdist_wheel (0.36.2)
|
||||
Root-Is-Purelib: true
|
||||
Tag: py3-none-any
|
||||
|
@@ -0,0 +1 @@
|
||||
discord
|
Reference in New Issue
Block a user