Skip to content

peco2282/MessageExpander

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Message Expander

example

message

message

attachment

attachment

embed

embed

Setting...

$ pip install -U dispand

Usage...

import discord
from dispand import message_expander
from discord.ext import commands

bot = commands.Bot(
    intents=discord.Intents.all()
)

@bot.event
async def on_message(message: discord.Message):
    # statements...
    await message_expander(bot=bot, message=message)

else if you use extention...

import discord
from discord.ext.commands import Bot

INITIAL_EXTENTIONS = [
    ...,
    "dispand"
]


class Main(Bot):
    def __init__(self, **options):
        super().__init__(**options)

    async def on_ready(self):
        for cog in INITIAL_EXTENTIONS:
            self.load_extension(cog)

        print(self.user.id)
        print(self.user.name)
        print("--------------")


if __name__ == '__main__':
    Main(
        command_prefix=...,
        intents=discord.Intents.all(),
        help_command=...
    ).run("TOKEN")

About

discordのメッセージ展開機能

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages