mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-17 03:00:13 +00:00
Send system json file in DMs instead of publicly
This commit is contained in:
parent
9a973f2d76
commit
268573922c
3 changed files with 5 additions and 5 deletions
|
|
@ -61,7 +61,7 @@ def run():
|
||||||
print("{} servers".format(len(client.guilds)))
|
print("{} servers".format(len(client.guilds)))
|
||||||
print("{} shards".format(client.shard_count or 1))
|
print("{} shards".format(client.shard_count or 1))
|
||||||
|
|
||||||
await client.change_presence(activity=discord.Game(name="pk;help"))
|
await client.change_presence(activity=discord.Game(name="kek;help"))
|
||||||
|
|
||||||
@client.event
|
@client.event
|
||||||
async def on_message(message: discord.Message):
|
async def on_message(message: discord.Message):
|
||||||
|
|
|
||||||
|
|
@ -211,7 +211,7 @@ async def run_command(ctx: CommandContext, func):
|
||||||
|
|
||||||
|
|
||||||
async def command_dispatch(client: discord.Client, message: discord.Message, conn) -> bool:
|
async def command_dispatch(client: discord.Client, message: discord.Message, conn) -> bool:
|
||||||
prefix = "^(pk(;|!)|<@{}> )".format(client.user.id)
|
prefix = "^(kek(;|!)|<@{}> )".format(client.user.id)
|
||||||
regex = re.compile(prefix, re.IGNORECASE)
|
regex = re.compile(prefix, re.IGNORECASE)
|
||||||
|
|
||||||
cmd = message.content
|
cmd = message.content
|
||||||
|
|
|
||||||
|
|
@ -94,7 +94,7 @@ async def export(ctx: CommandContext):
|
||||||
await working_msg.delete()
|
await working_msg.delete()
|
||||||
|
|
||||||
f = io.BytesIO(json.dumps(data).encode("utf-8"))
|
f = io.BytesIO(json.dumps(data).encode("utf-8"))
|
||||||
await ctx.message.channel.send(content="Here you go!", file=discord.File(fp=f, filename="pluralkit_system.json"))
|
await ctx.message.author.send(content="Here you go!", file=discord.File(fp=f, filename="pluralkit_system.json"))
|
||||||
|
|
||||||
|
|
||||||
async def tell(ctx: CommandContext):
|
async def tell(ctx: CommandContext):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue