# cogs/event.py
# 略
@commands.Cog.listener()
async def on_command_error(ctx, error):
if isinstance(error, commands.CommandNotFound):
await ctx.send(commands.CommandNotFound)
if isinstance(error, commands.UserInputError):
await ctx.send(commands.UserInputError)
if isinstance(error, commands.MissingRequiredArgument):
await ctx.send(commands.MissingRequiredArgument)
# .....
@commands.command()
async def slots(self, ctx, amount, mang):
await open_account(ctx.author)
#if amount == None:
# await ctx.send("请输入数字")
# return
@slots.error
async def slots_error(ctx, error):
if isinstance(error, commands.MissingRequiredArgument):
await ctx.send(commands.MissingRequiredArgument)
@commands.command()
async def slots(self, ctx, amount, mang):
try:
await ctx.send("pass")
except Exception as e :
await ctx.send(e)
async def withdraw(ctx, amount = None):
<<: 铁人赛 Day23 -- JavaScript 初体验(一) -- Hellow World
-NIST SP 800-160 V1 和 ISO 15288 工程(Engineering) ....
Computer vision - Process images is key to creatin...
因前篇谈到透过api.kbars抓取1分K的资料内容,但我们在看盘或盘後分析时,可能会用到其它类型的...
SQL到底是什麽东西? 全名叫做"结构化查询语言(Structured Query Lan...
网站+网页绪论 浏览器介绍(推Firefox跟Edge) 上图取自台科大资安社课教材 浏览网页发生的...