discord-travisbot-0.0.1.dev20170528
توضیحات
Travis bot for Discord.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | POSIX |
| نام فایل | discord-travisbot-0.0.1.dev20170528 |
| نام | discord-travisbot |
| نسخه کتابخانه | 0.0.1.dev20170528 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Yoan Blanc |
| ایمیل نویسنده | yoan@dosimple.ch |
| آدرس صفحه اصلی | https://github.com/greut/travisbot |
| آدرس اینترنتی | https://pypi.org/project/discord-travisbot/ |
| مجوز | https://opensource.org/licenses/BSD-3-Clause |
============
Travis Bot
============
.. image:: https://travis-ci.org/greut/travisbot.svg?branch=master
:target: https://travis-ci.org/greut/travisbot
.. image:: https://img.shields.io/pypi/dd/discord-travisbot.svg
:target: https://pypi.python.org/pypi/discord-travisbot
.. image:: https://img.shields.io/github/stars/greut/travisbot.svg
:target: https://github.com/greut/travisbot/stargazers
A bot for Discord. (Work in progress)
Development
===========
To setup and run the basic steps of the bot.
Requirements
------------
- `Python 3.6 <https://www.python.org/>`_
- `ngrok <https://ngrok.com/>`_
Installation
------------
.. code-block:: console
$ python -m venv .
$ . bin/activate
(travisbot)$ pip install -e .[fast]
Running
-------
The secret token is read from the environment variables.
.. code-block:: console
(travisbot)$ export TOKEN=...
(travisbot)$ python -m travisbot
In a separate process, run ``ngrok``.
.. code-block:: console
$ ngrok http 8888
Then, configure the notifications of your project to point to the given URL:
`Configuring webhook notifications <https://docs.travis-ci.com/user/notifications/#Configuring-webhook-notifications>`_
Release
=======
Update the version number and clean up the ``dist`` directory before-hand.
.. code-block:: console
(travisbot)$ python setup.py register -r https://pypi.python.org/pypi
(travisbot)$ pip install wheel twine
(travisbot)$ rm -f dist/*
(travisbot)$ python setup.py sdist bdist_wheel
(travisbot)$ twine upload dist/*
Travis
------
Travis CI should handle the release process for us.
Bibliography
============
- `A Discord bot with asyncio <https://tutorials.botsfloor.com/a-discord-bot-with-asyncio-359a2c99e256>`_
- `Discord API Reference <https://discordapp.com/developers/docs/reference>`_
- `discord.py <https://github.com/Rapptz/discord.py>`_
نیازمندی
| مقدار | نام |
|---|---|
| >=17.0.0 | PyOpenSSL |
| >=2.1.0 | aiohttp |
| xtr | aiodns; |
| xtr | cchardet; |
| xtr | flake8; |
| xtr | isort; |
| xtr | pycodestyle; |
| xtr | pydocstyle; |
| xtr | rstcheck; |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl discord-travisbot-0.0.1.dev20170528:
pip install discord-travisbot-0.0.1.dev20170528.whl
نصب پکیج tar.gz discord-travisbot-0.0.1.dev20170528:
pip install discord-travisbot-0.0.1.dev20170528.tar.gz