Answer the question
In order to leave comments, you need to log in
How to make a clock in the bot game?
Maybe someone knows how to do it like this?):
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question