https://github.com/peco2282/messageexpander
discordのメッセージ展開機能
https://github.com/peco2282/messageexpander
bot discord discord-bot python
Last synced: 10 months ago
JSON representation
discordのメッセージ展開機能
- Host: GitHub
- URL: https://github.com/peco2282/messageexpander
- Owner: peco2282
- License: mit
- Created: 2022-06-12T08:48:48.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-22T01:18:10.000Z (almost 4 years ago)
- Last Synced: 2025-02-21T19:02:48.258Z (over 1 year ago)
- Topics: bot, discord, discord-bot, python
- Language: Python
- Homepage:
- Size: 13.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Message Expander
## example
### message

### attachment

### embed

## Setting...
```shell
$ pip install -U dispand
```
## Usage...
```python
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...
```python
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")
```