We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d10622 commit c512a59Copy full SHA for c512a59
1 file changed
index.js
@@ -40,7 +40,7 @@ client.once(Events.ClientReady, async (c) => {
40
});
41
setInterval(async () => {
42
let now = new Date();
43
- if (now.getHours() - time[time.length - 1].split(":")[0] > 0) {
+ if (now.getHours() != time[time.length - 1].split(":")[0]) {
44
await statusMessage.edit({
45
embeds: [await generateStatusEmbed(true)],
46
@@ -139,9 +139,6 @@ async function generateStatusEmbed(update_graph = false) {
139
if (mins.length === 1) {
140
mins = "0" + mins;
141
}
142
- if (hours.length === 1) {
143
- hours = "0" + hours;
144
- }
145
time.push(`${hours}:${mins}`);
146
online.push(state.players.length);
147
0 commit comments