mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
Update token disclaimer, add checkmark reaction on token command issue (#67)
* Update token disclaimer, add checkmark reaction on token command issue * Changed reaction to message confirmation
This commit is contained in:
parent
c37e7f4ee1
commit
9b7e331c5b
1 changed files with 2 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
|||
from pluralkit.bot.commands import CommandContext
|
||||
|
||||
disclaimer = "Please note that this grants access to modify (and delete!) all your system data, so keep it safe and secure. If it leaks or you need a new one, you can invalidate this one with `pk;token refresh`."
|
||||
disclaimer = "\u26A0 Please note that this grants access to modify (and delete!) all your system data, so keep it safe and secure. If it leaks or you need a new one, you can invalidate this one with `pk;token refresh`."
|
||||
|
||||
|
||||
async def token_root(ctx: CommandContext):
|
||||
|
|
@ -20,6 +20,7 @@ async def token_get(ctx: CommandContext):
|
|||
|
||||
token_message = "{}\n\u2705 Here's your API token:".format(disclaimer)
|
||||
if token:
|
||||
await ctx.reply_ok("DM'd!")
|
||||
await ctx.message.author.send(token_message)
|
||||
await ctx.message.author.send(token)
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue