X
X
XXXPLAYER2019-09-15 13:34:05
JavaScript
XXXPLAYER, 2019-09-15 13:34:05

How to make a clock in the bot game?

Maybe someone knows how to do it like this?):
5d7e13804d509718418234.png
And that's it, I already understood how. With strftime))
Who needs this code:
const strftime = require('strftime')
var timerId = setInterval(function users() {
var YK = new Date().toLocaleString("en-US", { timeZone: "Asia /Yekaterinburg"})
bot.user.setPresence({
game: {
name: strftime("%H:%M", new Date(YK)) + " (UTC+5) |" + " d!help"}} )

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SEOD, 2019-09-16
@SEOVirus

https://usefulangle.com/post/187/nodejs-get-date-time

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question