Merge pull request #50 from Matthww/feature/add_privacy_and_tos_command

Add Privacy Policy and Terms of Service command
This commit is contained in:
2022-12-06 22:59:00 +01:00
committed by GitHub
+14
View File
@@ -48,3 +48,17 @@ class InfoCommands(app_commands.Group):
f"Server CPU: `{cpu}`\n\n" f"Server CPU: `{cpu}`\n\n"
) )
await ctx.response.send_message(embed=embed) await ctx.response.send_message(embed=embed)
@app_commands.command(name="tos", description="Terms of Service")
async def tos(self, ctx: Interaction):
embed = create_embed(ctx.user)
embed.title = "Terms of Service (ToS)"
embed.description = "[https://exobot.site/static/tos.html](https://exobot.site/static/tos.html)"
await ctx.response.send_message(embed=embed)
@app_commands.command(name="privacy", description="Privacy Policy")
async def privacy(self, ctx: Interaction):
embed = create_embed(ctx.user)
embed.title = "Privacy Policy"
embed.description = "[https://exobot.site/static/privacy.html](https://exobot.site/static/privacy.html)"
await ctx.response.send_message(embed=embed)