Discord Bot that detects a players Region when they join my game

Im looking to write a discord bot, which I can do in Python or any other language but I am unsure of how I link said bot to roblox itself.
I know I would need to use the LocalizationService:GetCountryRegionForPlayerAsync to log this out into a table of some sort but I am just confused on the general process of how it works.

If someone could explain it to me or help me out id greatly appreciate it!
Rake#0982

Perhaps you should just use a webhook. A webhook can make everything simpler because all you need to do is send a POST request to your webhook.

When a player joins, just grab their region, then send a post request to your webhook.

I’m too lazy to explain everything so here is a thread on it.

2 Likes