mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
Add suggestion to 'No system registered' message
This commit is contained in:
parent
0fbe957b9c
commit
2806feb7dc
1 changed files with 2 additions and 2 deletions
|
|
@ -47,7 +47,7 @@ def command(cmd, usage=None, description=None, category=None, system_required=Tr
|
|||
system = await db.get_system_by_account(conn, message.author.id)
|
||||
|
||||
if system_required and system is None:
|
||||
await client.send_message(message.channel, embed=utils.make_error_embed("No system registered to this account"))
|
||||
await client.send_message(message.channel, embed=utils.make_error_embed("No system registered to this account. Use `pk;system new` to register one."))
|
||||
return
|
||||
|
||||
ctx = CommandContext(client=client, conn=conn, message=message, system=system)
|
||||
|
|
@ -58,7 +58,7 @@ def command(cmd, usage=None, description=None, category=None, system_required=Tr
|
|||
embed = res if isinstance(res, discord.Embed) else utils.make_default_embed(res)
|
||||
await client.send_message(message.channel, embed=embed)
|
||||
except NoSystemRegistered:
|
||||
await client.send_message(message.channel, embed=utils.make_error_embed("No system registered to this account"))
|
||||
await client.send_message(message.channel, embed=utils.make_error_embed("No system registered to this account. Use `pk;system new` to register one."))
|
||||
except InvalidCommandSyntax:
|
||||
usage_str = "**Usage:** pk;{} {}".format(cmd, usage or "")
|
||||
await client.send_message(message.channel, embed=utils.make_default_embed(usage_str))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue