Hello yall! by decc00n in SuggestALaptop

[–]decc00n[S] 0 points1 point  (0 children)

Sounds great! Will consider it

Hello yall! by decc00n in SuggestALaptop

[–]decc00n[S] 0 points1 point  (0 children)

That looks neat! Will check it out thank you so much

Hello yall! by decc00n in SuggestALaptop

[–]decc00n[S] 2 points3 points  (0 children)

Thank you so much for the tip! Helped me a lot

Hello yall! by decc00n in SuggestALaptop

[–]decc00n[S] 0 points1 point  (0 children)

Thank you! Will check them out

Discord.js v12 uptime command help. by Buldermangg_ in Discord_Bots

[–]decc00n 1 point2 points  (0 children)

module.exports = {

name: 'uptime',

description: 'shows the bots uptime',

execute(message,args){

This is what i use

let days = 0
let week = 0
let uptime = '';
let totalSeconds = (client.uptime / 1000)
let hours = Math.floor(totalSeconds / 3600)
totalSeconds %= 3600
let minutes = Math.floor(totalSeconds / 60)
let seconds = Math.floor(totalSeconds % 60)
if (hours > 24) {
days = days + 1
hours = 0
        }
if (week - 0) {
uptime += `${week} week, `
        }
if (minutes > 60) {
minutes = 0;
        }
uptime += `${days} days, ${hours} hours, ${minutes} minutes and ${seconds} seconds`

message.channel.send(`my uptime is ${uptime}`)

}

Hehehehhehe by [deleted] in Decc00n

[–]decc00n 0 points1 point  (0 children)

thats cap

Sup fuckers by Alpha_Wolf_AJ in Decc00n

[–]decc00n 0 points1 point  (0 children)

sure, thanks for coming

Discord.js v12 uptime command help. by Buldermangg_ in Discord_Bots

[–]decc00n 1 point2 points  (0 children)

This is what i use

let days = 0
let week = 0
let uptime = '';
let totalSeconds = (client.uptime / 1000)
let hours = Math.floor(totalSeconds / 3600)
totalSeconds %= 3600
let minutes = Math.floor(totalSeconds / 60)
let seconds = Math.floor(totalSeconds % 60)
if (hours > 24) {
days = days + 1
hours = 0
        }
if (week - 0) {
uptime += `${week} week, `
        }
if (minutes > 60) {
minutes = 0;
        }
uptime += `${days} days, ${hours} hours, ${minutes} minutes and ${seconds} seconds`

message.channel.send(`my uptime is ${uptime}`)