https://discord.gg/botpress logo
#🤝help
Fixed Schedule based on users location
# 🤝help
c

clever-horse-5574

02/15/2024, 9:34 PM
Hi y'all 👋 I have a Table where data from users is stored throughout the day. Now I want to set it using the Fixed Schedule to automatically delete the data at midnight based on the user's country (stored in the variable user.Country). 1. Botpress should use the variable user.Country to recognize which country the user is in and what time it is there. 2. f it is already midnight there, the code should be activated and all entries with the country will be deleted. ▶️ Does anyone have any tips on how best to implement this?
q

quick-musician-29561

02/15/2024, 9:42 PM
c

clever-horse-5574

02/15/2024, 11:15 PM
That looks great 🙌 Does this also work on integrations like Telegram and WhatsApp?
f

fresh-fireman-491

02/16/2024, 6:28 AM
Unfortunately it will not. You can read about how to get the users location in the WhatsApp docs https://botpress.com/docs/cloud/channels/whatsapp/#location