Skip to main content

A fork of Discord Message URL Expander for d.py 2.0.0a/pycord

Project description

PyPI - Downloads PyPI PyPI - Python Version

NewDispanderfixed

このライブラリは、DiscordBotPortalJP様のdispanderライブラリを
ライセンスに基づきクロヱ水族館サーバー用Bot向けに改変したものです。
このライブラリはdiscord.py 2.0.0aまたはそのフォークライブラリでしか動きません。
discord.py 1.7.3をお使いの方はdispanderfixedを使ってください。
フォーク元ライブラリ様

インストール

pip install newdispanderfixed

依存関係

discord.py-2.0.0aまたはそのフォークライブラリを要求します。

機能は?

関数としての使用を想定しています。
on_message内のどこかで実行してください。
元ライブラリ様にあった展開元メッセージ削除機能は無効化されています。

import discord
from dispanderfixed 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

newdispanderfixed-0.1.5.tar.gz (4.9 kB view hashes)

Uploaded Source

Built Distribution

newdispanderfixed-0.1.5-py3-none-any.whl (7.9 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