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/bots/discord/slash/dictionary.py
2022-08-17 16:21:59 +08:00

13 lines
369 B
Python

import discord
from bots.discord.client import client
from bots.discord.slash_parser import slash_parser
dict_ = client.create_group("dict", "查询柯林斯词典")
@dict_.command(description="查询柯林斯词典")
@discord.option(name="word", description="词汇")
async def query(ctx: discord.ApplicationContext, word: str):
await slash_parser(ctx, word)