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
- 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 staffI 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
"renaming the persons's username" is possible if you give your bot the right permissions
timezones aren't really a djs thing
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
no
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
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
You cant
So this question is pointless tbh
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
obviously it's not perfect because of reasons like territorial
en-US
having 4 possible time zonesit's not c++ where you have access to one's machine but javascript