diff --git a/data/strings.json b/data/strings.json index 09723f3..f60e5c7 100755 --- a/data/strings.json +++ b/data/strings.json @@ -5,10 +5,12 @@ "help": { "title": "Silvanus Help", "aboutTitle": "About Silvanus", - "info": "Silvanus is the ultimate companion bot designed for Grow A Tree, the popular Discord clicker game. With Silvanus by your side, you can take your tree-growing adventure to new heights! Enjoy customizable notifications, effortless tree height comparisons, and handy math features to optimize your gameplay.\n\n[Privacy Policy](https://assets.vfsh.dev/privacy.txt)", + "aboutDescription": "Silvanus is a dedicated companion bot designed for Grow A Tree, the popular Discord clicker game. With Silvanus by your side, you can take your tree-growing adventure to new heights! Enjoy customizable notifications, effortless tree height comparisons, and handy math features to optimize your gameplay. Join over 130 servers already benefiting from Silvanus and make your Grow A Tree experience even more exciting!", + "aboutLinks": "**Links**\n* [Website](https://silvanus.vfsh.dev)\n* [Wiki](https://git.vfsh.dev/voidf1sh/silvanus/wiki)\n* [Git Repo](https://git.vfsh.dev/voidf1sh/silvanus)\n* [Support Server](https://discord.gg/g5JRGn7PxU)\n* [Top.gg](https://top.gg/bot/521624335119810561)\n* [Privacy Policy](https://assets.vfsh.dev/privacy.txt)\n* [Terms of Use](https://www.termsfeed.com/live/5e192b88-ece7-4ba3-8b50-7a1f997d781a)", + "info": "Silvanus is the ultimate companion bot designed for Grow A Tree, the popular Discord clicker game. With Silvanus by your side, you can take your tree-growing adventure to new heights! Enjoy customizable notifications, effortless tree height comparisons, and handy math features to optimize your gameplay.", "topggTitle": "Want to support Silvanus?", "topggBody": "Vote and leave a review for Silvanus [on Top.gg](https://top.gg/bot/521624335119810561)", - "setup": "For the most up to date guides and information, check out the Silvanus Support Wiki - https://silvanus.vfsh.dev/\n[Silvanus Setup Guide](https://silvanus.vfsh.dev/en/setup)\n\nNeed help and can't reach me on Discord? Send an email to SilvanusDev@gmail.com and I'll get back to you ASAP.", + "setup": "For the most up to date guides and information, check out the [Silvanus Support Wiki](https://git.vfsh.dev/voidf1sh/silvanus/wiki)\n\nNeed help and can't reach me on Discord? Send an email to `sky@vfsh.dev` and I'll get back to you ASAP.", "longDescription": "Silvanus, the ultimate companion bot for Grow A Tree, takes your tree-growing journey to the next level. Are you tired of cluttered channels filled with notifications? Silvanus has you covered! With its unique notification relay system, Silvanus listens for Grow A Tree's notifications in a hidden channel and sends customized, auto-deleting notifications to the channels of your choice. Customize your notifications and keep your server clean and organized.\n\nSilvanus simplifies leaderboard tree height comparisons with a simple command. No more manual calculations or guesswork. Silvanus shows you exactly how far you are from the next tree on the leaderboard, allowing you to gauge your progress effortlessly.", "allCommands": " - Compare your tree to others on the leaderboard\n - Setup a Notification Relay for the first time\n - Update an already configured Notification Relay\n - Disable the Notification Relay\n - Send a self-assignable role menu for relay pings\n - Calculates the time between waters for a tree of a given height\n - Calculates how long it would take a tree to grow to a given height\n - Set the channels to use with \n - View your server's configuration\n - Delete your server's configuration\n - Displays the bot's help page" }, diff --git a/modules/functions.js b/modules/functions.js index 17a054f..f7e2cc9 100755 --- a/modules/functions.js +++ b/modules/functions.js @@ -99,6 +99,12 @@ const functions = { await dbfn.setGuildInfo(query); await functions.collectionBuilders.guildInfos(client); console.log("Disabled notification relay for a guild I'm no longer in: " + guildInfo.guildId); + } else if (e === "ERRNOCHANNEL") { + guildInfo.setReminders(undefined, undefined, undefined, undefined, false); + const query = guildInfo.queryBuilder("setReminders"); + await dbfn.setGuildInfo(query); + await functions.collectionBuilders.guildInfos(client); + console.log("Disabled notification relay for a channel I no longer see: " + guildInfo.watchChannelId); } else { throw e; } @@ -229,11 +235,8 @@ const functions = { const embed = new EmbedBuilder() .setColor(strings.embeds.color) .setTitle(strings.help.aboutTitle) - .setDescription(`${strings.help.info}\n\n${strings.help.longDescription}`) + .setDescription(`${strings.help.aboutDescription}\n\n${strings.help.aboutLinks}`) .setFooter({ text: `v${package.version} - ${strings.embeds.footer}` }); - embed.addFields([ - { name: strings.help.topggTitle, value: strings.help.topggBody} - ]); const privateBool = private == 'true'; const messageContents = { embeds: [embed], ephemeral: privateBool }; return messageContents; @@ -882,7 +885,7 @@ const functions = { throw "ERRNOGUILD" }); // Fetch the Channel - const channel = await guild.channels.fetch(guildInfo.watchChannelId); + const channel = await guild.channels.fetch(guildInfo.watchChannelId).catch(e => { throw "ERRNOCHANNEL" }); // Create the filter function const filter = message => { // Discard any messages sent by Silvanus