Spaces:
Runtime error
Runtime error
Update index.js
Browse files
index.js
CHANGED
|
@@ -29,7 +29,7 @@ async function fetchVotes() {
|
|
| 29 |
}
|
| 30 |
|
| 31 |
function formatPlace(index) {
|
| 32 |
-
const emoji = ['
|
| 33 |
return index < 4 ? emoji[index] : `${index + 1}th`
|
| 34 |
}
|
| 35 |
|
|
@@ -41,7 +41,7 @@ function createEmbed(data, ended) {
|
|
| 41 |
}))
|
| 42 |
const time = new Date().toLocaleString('en-US', { timeZone: 'Asia/Manila' })
|
| 43 |
return new EmbedBuilder()
|
| 44 |
-
.setTitle(ended ? 'π Final Vote Result' : '
|
| 45 |
.addFields(fields)
|
| 46 |
.setColor(ended ? 0xff5555 : 0x00ffff)
|
| 47 |
.setFooter({ text: `Updated the vote at ${time} | Today` })
|
|
|
|
| 29 |
}
|
| 30 |
|
| 31 |
function formatPlace(index) {
|
| 32 |
+
const emoji = ['π₯ 1st', 'π₯ 2nd', 'π₯ 3rd', 'π
4th']
|
| 33 |
return index < 4 ? emoji[index] : `${index + 1}th`
|
| 34 |
}
|
| 35 |
|
|
|
|
| 41 |
}))
|
| 42 |
const time = new Date().toLocaleString('en-US', { timeZone: 'Asia/Manila' })
|
| 43 |
return new EmbedBuilder()
|
| 44 |
+
.setTitle(ended ? 'π Final Vote Result' : 'π Live Vote Status for **Power Gauntlet**')
|
| 45 |
.addFields(fields)
|
| 46 |
.setColor(ended ? 0xff5555 : 0x00ffff)
|
| 47 |
.setFooter({ text: `Updated the vote at ${time} | Today` })
|