discord.js-1.0.7
توضیحات
The Python module for discord.js.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | discord.js-1.0.7 |
| نام | discord.js |
| نسخه کتابخانه | 1.0.7 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Swas.py |
| ایمیل نویسنده | cwswas.py@gmail.com |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/discord.js/ |
| مجوز | - |
# discord.js
This module lets you use discord.js in python by offering a similar syntax to the actual discord.js.
## Installation
Stable version:
```
pip install discord.js
```
Working version:
```
pip install git+https://github.com/CodeWithSwastik/discord-js
```
## Simple bot
```python
from discordjs import Client
from javascript import console
client = Client()
client.on("ready", lambda:
console.log("Bot is ready")
)
async def msg(message):
if message.content.startswith("!ping"):
await message.channel.send("pong")
client.on("message", msg)
client.login('Token')
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl discord.js-1.0.7:
pip install discord.js-1.0.7.whl
نصب پکیج tar.gz discord.js-1.0.7:
pip install discord.js-1.0.7.tar.gz