Compare commits

..

2 Commits

Author SHA1 Message Date
88cc4eda3c Remove reminder embed, only send text message
Some checks failed
Silvanus Production Dockerization / build (pull_request) Has been cancelled
2024-04-06 09:01:57 -04:00
7291216dcb Versioning 2024-04-06 09:01:43 -04:00
2 changed files with 5 additions and 5 deletions

View File

@ -1046,9 +1046,9 @@ 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);
if (isDev) console.log(`WR: ${guild.name}: ${guildInfo.treeName}`); if (isDev) console.log(`WR: ${guild.name}: ${guildInfo.treeName}`);
await reminderChannel.send(reminderEmbed).then(async m => { await reminderChannel.send(message).then(async m => {
if (!m.deletable) return; if (!m.deletable) return;
await this.sleep(500).then(async () => { await this.sleep(500).then(async () => {
await m.delete().catch(e => console.error(e)); await m.delete().catch(e => console.error(e));
@ -1059,9 +1059,9 @@ 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);
if (isDev) console.log(`FR: ${guild.name}: ${guildInfo.treeName}`); if (isDev) console.log(`FR: ${guild.name}: ${guildInfo.treeName}`);
await reminderChannel.send(reminderEmbed).then(async m => { await reminderChannel.send(message).then(async m => {
if (!m.deletable) return; if (!m.deletable) return;
await this.sleep(500).then(async () => { await this.sleep(500).then(async () => {
await m.delete().catch(e => console.error(e)); await m.delete().catch(e => console.error(e));

View File

@ -1,6 +1,6 @@
{ {
"name": "silvanus", "name": "silvanus",
"version": "1.2.8", "version": "1.2.9",
"description": "Grow A Tree Companion Bot", "description": "Grow A Tree Companion Bot",
"main": "main.js", "main": "main.js",
"scripts": { "scripts": {