Archived
1
0
Fork 0
This repository has been archived on 2024-04-26. You can view files and clone it, but cannot push or open issues or pull requests.
akari-bot/modules/embed_test/__init__.py
2023-09-01 22:38:32 +08:00

18 lines
902 B
Python

import datetime
from core.builtins import Bot, Embed, Image, EmbedField
from core.component import module
t = module('embed_test', required_superuser=True)
@t.handle()
async def _(session: Bot.MessageSession):
await session.send_message(Embed(title='Embed Test', description='This is a test embed.',
url='https://minecraft.fandom.com/zh/wiki/Minecraft_Wiki',
color=0x00ff00, timestamp=datetime.datetime.now().timestamp(),
author='oasisakari',
footer='Test',
image=Image('https://avatars.githubusercontent.com/u/68471503?s=200&v=4'),
fields=[EmbedField('oaoa', 'aaaaa', inline=True),
EmbedField('oaoa', 'aaaaa', inline=True)]))