From 0f55f5f52e84fd5cdedb448d408dfa3c69c5fe5f Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Thu, 20 Mar 2025 16:20:59 -0400 Subject: Modularized LLM chatbot; Added back eval --- bot/src/commands/about.js | 4 +++- bot/src/commands/timer.js | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'bot/src/commands') diff --git a/bot/src/commands/about.js b/bot/src/commands/about.js index 311200e..22b3441 100644 --- a/bot/src/commands/about.js +++ b/bot/src/commands/about.js @@ -21,7 +21,9 @@ export default { { name: 'About AleeBot', value: 'AleeBot is an all-in-one bot that\'s made from the Discord.JS API!' }, { name: 'Servers', value: `${interaction.client.guilds.cache.size}` }, { name: 'License', value: 'GNU General Public License v3.0' }, - { name: 'Contributors', value: '- <@297201585090723841> (Uptime command from 2.x)' } + { name: 'Contributors', value: + '- <@297201585090723841> (Uptime command from 2.x)\n' + + '- <@236279900728721409> (Eval command from 2.x)' } ) .setFooter({ text: '© Copyright 2017-2025 Andrew Lee & contributors' }) .setColor(abEmbedColour); diff --git a/bot/src/commands/timer.js b/bot/src/commands/timer.js index 3b3807e..68a113c 100644 --- a/bot/src/commands/timer.js +++ b/bot/src/commands/timer.js @@ -41,7 +41,7 @@ export default { setTimeout(async function(){ if (interaction.guild) { let remindChannel = interaction.client.channels.cache.get(interaction.channel.id); - if (!remindChannel) return console.error('Unknown channel.'); + if (!remindChannel) return; return await remindChannel.send({ content: `${interaction.user}, You have been reminded.${message ? '\n\n' + content : ''}` }); } else { return await interaction.user.send({ content: `You have been reminded.${message ? '\n\n' + content : ''}` }); -- cgit v1.2.3