Skip to main content

Discord Message URL Expander

Project description

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


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.5.0.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

dispander-0.5.0-py3-none-any.whl (3.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page