mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
Cleaned up pk;export channel message
This commit is contained in:
parent
54441baa65
commit
a87c8f2c02
2 changed files with 7 additions and 2 deletions
|
|
@ -44,7 +44,7 @@ class CommandError(Exception):
|
|||
class CommandContext:
|
||||
client: discord.Client
|
||||
message: discord.Message
|
||||
|
||||
|
||||
def __init__(self, client: discord.Client, message: discord.Message, conn, args: str, system: Optional[System]):
|
||||
self.client = client
|
||||
self.message = message
|
||||
|
|
@ -201,6 +201,8 @@ async def command_root(ctx: CommandContext):
|
|||
await misc_commands.pkfire(ctx)
|
||||
elif ctx.match("thunder"):
|
||||
await misc_commands.pkthunder(ctx)
|
||||
elif ctx.match("freeze"):
|
||||
await misc_commands.pkfreeze(ctx)
|
||||
elif ctx.match("starstorm"):
|
||||
await misc_commands.pkstarstorm(ctx)
|
||||
else:
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ async def export(ctx: CommandContext):
|
|||
await working_msg.delete()
|
||||
|
||||
f = io.BytesIO(json.dumps(data).encode("utf-8"))
|
||||
await ctx.message.channel.send(content="Export successful! File sent in your DMs.")
|
||||
await ctx.reply_ok("DM'd!")
|
||||
await ctx.message.author.send(content="Here you go!", file=discord.File(fp=f, filename="pluralkit_system.json"))
|
||||
|
||||
|
||||
|
|
@ -120,5 +120,8 @@ async def pkfire(ctx: CommandContext):
|
|||
async def pkthunder(ctx: CommandContext):
|
||||
await ctx.message.channel.send("*A giant ball of lightning is conjured and fired directly at your opponent, vanquishing them.*")
|
||||
|
||||
async def pkfreeze(ctx: CommandContext):
|
||||
await ctx.message.channel.send("A giant crystal ball of ice is charged and hurled toward your opponent, bursting open and freezing them solid on contact. ")
|
||||
|
||||
async def pkstarstorm(ctx: CommandContext):
|
||||
await ctx.message.channel.send("*Vibrant colours burst forth from the sky as meteors rain down upon your opponent.*")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue