Send system json file in DMs instead of publicly
This commit is contained in:
		
				
					committed by
					
						 Astrid
						Astrid
					
				
			
			
				
	
			
			
			
						parent
						
							dfa5706646
						
					
				
				
					commit
					8f2f8d7d67
				
			| @@ -14,7 +14,7 @@ from pluralkit.system import System | ||||
|  | ||||
| def next_arg(arg_string: str) -> Tuple[str, Optional[str]]: | ||||
|     # A basic quoted-arg parser | ||||
|      | ||||
|  | ||||
|     for quote in "“‟”": | ||||
|         arg_string = arg_string.replace(quote, "\"") | ||||
|  | ||||
|   | ||||
| @@ -53,7 +53,7 @@ async def invite_link(ctx: CommandContext): | ||||
|  | ||||
| async def export(ctx: CommandContext): | ||||
|     working_msg = await ctx.message.channel.send("Working...") | ||||
|      | ||||
|  | ||||
|     system = await ctx.ensure_system() | ||||
|  | ||||
|     members = await system.get_members(ctx.conn) | ||||
| @@ -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="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): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user