-
Notifications
You must be signed in to change notification settings - Fork 16
Home
1ntegrale9 edited this page Jan 13, 2020
·
2 revisions
dispander = Discord Message URL Expander
DiscordのメッセージURLを検知して展開する機能を追加する discord.py Bot拡張用ライブラリ
python3 -m pip install dispander
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)