Metadata-Version: 2.1
Name: dispander
Version: 0.5.0
Summary: Discord Message URL Expander
Home-page: https://github.com/DiscordBotPortalJP/dispander
Author: 1ntegrale9
Author-email: 1ntegrale9uation@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3.7
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
License-File: LICENSE

# dispander (Discord Message URL Expander)
DiscordのメッセージURLを検知して展開する機能を追加する discord.py Bot拡張用ライブラリ

<img width="789" src="https://user-images.githubusercontent.com/11159059/70523586-bc7b8280-1b86-11ea-87f3-aa3dade6ba51.png">

# 使い方

`python3 -m pip install dispander`

## extensionとして使用する場合

load_extensionで読み込んでください

```python
from discord.ext import commands

bot = commands.Bot(command_prefix='/')
bot.load_extension('dispander')
bot.run(token)
```

## 関数として使用する場合

on_message内のどこかで実行してください

```python
import discord
from dispander import dispand

client = discord.Client()

@client.event
async def on_message(message):
    if message.author.bot:
        return
    await dispand(message)

client.run(token)
```


