aboutsummaryrefslogtreecommitdiff
path: root/bot/src
diff options
context:
space:
mode:
Diffstat (limited to 'bot/src')
-rw-r--r--bot/src/commands/suggest.js7
-rw-r--r--bot/src/commands/timer.js2
-rw-r--r--bot/src/events/ClientReady.js1
3 files changed, 6 insertions, 4 deletions
diff --git a/bot/src/commands/suggest.js b/bot/src/commands/suggest.js
index b8b164b..6c3209f 100644
--- a/bot/src/commands/suggest.js
+++ b/bot/src/commands/suggest.js
@@ -67,11 +67,14 @@ export default {
if (interaction.options.getSubcommand() === 'guild') {
if (!interaction.guild) return await interaction.reply({ content: 'This command can only be run in a guild.' });
const guildSetting = await guildSettings.findOne({ where: { guildID: interaction.guild.id } });
- if (!guildSetting || !guildSetting.suggestionsChannelID) return await interaction.reply({ content: 'This server did not configure to have suggestions enabled.' });
+ if (!guildSetting || !guildSetting.suggestionsChannelID) return await interaction.reply({ content: 'This server did not configure to have suggestions enabled.', flags: MessageFlags.Ephemeral });
+
+ let guildName = interaction.guild.name;
+ if (guildName.length >= 44) guildName = 'this server';
const modal = new ModalBuilder()
.setCustomId(`suggest-${interaction.user.id}`)
- .setTitle(`Suggestion for ${interaction.guild.name}`);
+ .setTitle(`Suggestion for ${guildName}`);
const featureText = new TextInputBuilder()
.setCustomId('feature')
diff --git a/bot/src/commands/timer.js b/bot/src/commands/timer.js
index c86fd20..590fa40 100644
--- a/bot/src/commands/timer.js
+++ b/bot/src/commands/timer.js
@@ -35,7 +35,7 @@ export default {
const date = new Date();
date.setSeconds(date.getSeconds() + timer);
const timeString = time(date, TimestampStyles.RelativeTime);
- await interaction.reply(`Timer set! Will remind you ${timeString}`);
+ await interaction.reply(`Timer set! Will remind you ${timeString}.`);
}
setTimeout(async function(){
diff --git a/bot/src/events/ClientReady.js b/bot/src/events/ClientReady.js
index 7f998ad..eeb8ab0 100644
--- a/bot/src/events/ClientReady.js
+++ b/bot/src/events/ClientReady.js
@@ -51,6 +51,5 @@ export default {
botActivity(client);
}, 200000);
-
}
};