dispand-1.0.0
توضیحات
expand discord message links
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | dispand-1.0.0 |
| نام | dispand |
| نسخه کتابخانه | 1.0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | peco2282 |
| ایمیل نویسنده | pecop2282@gmail.com |
| آدرس صفحه اصلی | https://github.com/peco2282/expander |
| آدرس اینترنتی | https://pypi.org/project/dispand/ |
| مجوز | MIT |
# Message Expander
## example
### message

### attachment

### embed

## Setting...
```shell
$ pip install -U expander
```
## Usage...
```python
import discord
from expand import message_expander
from discord.ext import commands
bot = commands.Bot(
intents=discord.Intents.all()
)
@bot.event
async def on_message(message: discord.Message):
# statements...
await message_expander(bot=bot, message=message)
```
else if you use extention...
```python
import discord
from discord.ext.commands import Bot
INITIAL_EXTENTIONS = [
...,
"message_expander"
]
class Main(Bot):
def __init__(self, **options):
super().__init__(**options)
async def on_ready(self):
for cog in INITIAL_EXTENTIONS:
self.load_extension(cog)
print(self.user.id)
print(self.user.name)
print("--------------")
if __name__ == '__main__':
Main(
command_prefix=...,
intents=discord.Intents.all(),
help_command=...
).run("TOKEN")
```
نیازمندی
| مقدار | نام |
|---|---|
| >=2.0.0b1 | py-cord |
نحوه نصب
نصب پکیج whl dispand-1.0.0:
pip install dispand-1.0.0.whl
نصب پکیج tar.gz dispand-1.0.0:
pip install dispand-1.0.0.tar.gz