DiscordActivity-1.0.0
توضیحات
Use discord activities with your bot!
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | DiscordActivity-1.0.0 |
| نام | DiscordActivity |
| نسخه کتابخانه | 1.0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | MagMigo |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/MagM1go/DiscordActivity |
| آدرس اینترنتی | https://pypi.org/project/DiscordActivity/ |
| مجوز | - |
<h1 align="center">DiscordActivity</h1>
<h1>Discord activities in nextcord.</h1>
#### pip install DicsordActivity
Sync Example
--------------
```Python
import nextcord
from nextcord.ext import commands
from DiscordActivity import SyncActivity
bot = commands.Bot(command_prefix="!")
activity = SyncActivity(token='your-bot-token')
@bot.command()
async def fishing(ctx):
await ctx.send(f"Go fishing!\nhttps://discord.gg/{activity.get_activity(activity_name='fishing', author=ctx.author)}")
bot.run("your-bot-token")
```
Async example
--------------
```Python
import nextcord
from nextcord.ext import commands
from DiscordActivity import AsyncActivity
bot = commands.Bot(command_prefix="!")
activity = AsyncActivity(token='your-bot-token')
@bot.command()
async def fishing(ctx):
await ctx.send(f"Go fishing!\nhttps://discord.gg/{await activity.get_activity(activity_name='fishing', author=ctx.author)}")
bot.run("your-bot-token")
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl DiscordActivity-1.0.0:
pip install DiscordActivity-1.0.0.whl
نصب پکیج tar.gz DiscordActivity-1.0.0:
pip install DiscordActivity-1.0.0.tar.gz