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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file dispander-0.5.0.tar.gz.

File metadata

  • Download URL: dispander-0.5.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.1

File hashes

Hashes for dispander-0.5.0.tar.gz
Algorithm Hash digest
SHA256 94aa597c9413d3e3c476b1cd91cb72c429bca42efaf173a3f12e0ece98ebc0b0
MD5 feffcdc7a7999e1a0a739cb730a12ee0
BLAKE2b-256 126ea3c42040289679207b2be8474bf10e118272e438c509647d514828d9462f

See more details on using hashes here.

File details

Details for the file dispander-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: dispander-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.1

File hashes

Hashes for dispander-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3ede52cf8569d91fed23fad57389068e8a9bd8c34271de452bf0f948433e1aae
MD5 862159d2c0d5ec8570f30064115a773b
BLAKE2b-256 e907c0cc36309a286ce9a3d428584fd98d6bc7d550091c516f576aeba02e5386

See more details on using hashes here.

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