A discord bot to show every member's current time

I have a private server where everyone lives around the globe. I just wanted to know if d.js is capable of checking the current time of any timezone I choose and renaming the person's username. I'll get rest of the help from resources and internet, Thanks.
13 Replies
d.js toolkit
d.js toolkit11mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by staff
Anurag Bansal
Anurag BansalOP11mo ago
I do have experience of bot designing and node.js with d.js I don't have it currently installed I would just like to know if it's possible and using what command
Svitkona
Svitkona11mo ago
"renaming the persons's username" is possible if you give your bot the right permissions timezones aren't really a djs thing
Anurag Bansal
Anurag BansalOP11mo ago
I am aware of that But is there any pre-built way of programming the bot to rename to the current time of the user
Svitkona
Svitkona11mo ago
no
Anurag Bansal
Anurag BansalOP11mo ago
Well, thanks for that! Should I mark it as solved now or should I wait for more? I think I'll wait to see if anyone has more ideas or solutions
InFiNiTy
InFiNiTy11mo ago
Well in case you wanted to rename every person - how the hell would you detect in what tz does person live Cuz apparently I have no idea nor imagination how would u handle that
monbrey
monbrey11mo ago
You cant
InFiNiTy
InFiNiTy11mo ago
So this question is pointless tbh
Squid
Squid11mo ago
The closest you can get is for someone to use an interaction and then you get their locale from that, and you can make an educated guess about which time zone they could live in
d.js docs
d.js docs11mo ago
property BaseInteraction#locale The locale of the user who invoked this interaction
Squid
Squid11mo ago
obviously it's not perfect because of reasons like territorial en-US having 4 possible time zones
Psyonix_
Psyonix_11mo ago
it's not c++ where you have access to one's machine but javascript
Want results from more Discord servers?
Add your server