Skip to content

Commit

Permalink
better stat handle
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-flip committed Mar 7, 2024
1 parent 159d888 commit 99ba058
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions/SETUP/offlineStat.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ module.exports.run = async () => {
if (DEBUG) return;
console.log(`[${module.exports.data.name}] Posting bot status message!`);
const embed = new EmbedBuilder()
.setTitle('Nicashee - Bot back online!')
.setTitle(`${config.name} - Bot back online!`)
.setColor('Green')
.setFooter({ text: client.user.tag, icon_url: client.user.displayAvatarURL })
.setTimestamp();
const offlineTime = await OfflineStat.findOne({ where: { ID: 1 } }).catch(ERR);
const offlineTime = await OfflineStat.findOne({ where: { ID: client.user.id } }).catch(ERR);
if (offlineTime) {
const timeStamp = moment(offlineTime.updatedAt);
embed.addFields([
Expand Down

0 comments on commit 99ba058

Please sign in to comment.