Some more logging

This commit is contained in:
Skylar Grant 2023-02-26 12:18:44 -05:00
parent 915ca4bf7c
commit b880503059
1 changed files with 2 additions and 0 deletions

View File

@ -689,6 +689,7 @@ const functions = {
async sendWaterReminder(guildInfo, message, channelId, guild) { async sendWaterReminder(guildInfo, message, channelId, guild) {
const reminderChannel = await guild.channels.fetch(channelId); const reminderChannel = await guild.channels.fetch(channelId);
const reminderEmbed = functions.builders.waterReminderEmbed(message, guildInfo); const reminderEmbed = functions.builders.waterReminderEmbed(message, guildInfo);
console.log(`Water Relay: ${guild.name}: ${guildInfo.treeName}`);
await reminderChannel.send(reminderEmbed).then(async m => { await reminderChannel.send(reminderEmbed).then(async m => {
if (!m.deletable) return; if (!m.deletable) return;
await this.sleep(500).then(async () => { await this.sleep(500).then(async () => {
@ -701,6 +702,7 @@ const functions = {
async sendFruitReminder(guildInfo, message, channelId, guild) { async sendFruitReminder(guildInfo, message, channelId, guild) {
const reminderChannel = await guild.channels.fetch(channelId); const reminderChannel = await guild.channels.fetch(channelId);
const reminderEmbed = functions.builders.fruitReminderEmbed(message, guildInfo); const reminderEmbed = functions.builders.fruitReminderEmbed(message, guildInfo);
console.log(`Fruit Relay: ${guild.name}: ${guildInfo.treeName}`);
await reminderChannel.send(reminderEmbed).then(async m => { await reminderChannel.send(reminderEmbed).then(async m => {
if (!m.deletable) return; if (!m.deletable) return;
await this.sleep(500).then(async () => { await this.sleep(500).then(async () => {