Integrated Terms of service and Privacy policy

This commit is contained in:
2024-05-14 20:14:36 +02:00
parent 0ef066ffa1
commit 6efb20781b
5 changed files with 18 additions and 13 deletions

View File

@@ -20,7 +20,12 @@ from modules.utils import from_utc
async def command_start(app: PyroClient, message: Message):
user = await app.find_user(message.from_user)
await message.reply_text(app._("start", "messages", locale=user.locale))
await message.reply_text(
app._("start", "messages", locale=user.locale).format(
terms_of_service="https://garbagebot.eu/community/public/terms-of-service",
privacy_policy="https://garbagebot.eu/community/public/privacy-policy",
)
)
join_code = None if len(message.command) == 1 else message.command[1]