Discord Message URL Expander
Project description
dispander
dispander = Discord Message URL Expander
DiscordのメッセージURLを検知して展開する機能を追加する discord.py Bot拡張用ライブラリ
使い方
python3 -m pip install dispander
extensionとして使用する場合
load_extensionで読み込んでください
from discord.ext import commands
bot = commands.Bot(command_prefix='/')
bot.load_extension('dispander')
bot.run(token)
関数として使用する場合
on_message内のどこかで実行してください
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dispander-0.3.0.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for dispander-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a58104efd2d82f8d1643b38299c57d5e9046a12f45d279330a2b2ece190b006 |
|
MD5 | 909ea013f366ad99b6e97829753a3733 |
|
BLAKE2b-256 | c8f68c6e26d22fe4e05f4c7dbba84db0e2af0d8251e031e6a26d2895bbbecd8b |