aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bot/src/commands/suggest.js7
-rw-r--r--bot/src/commands/timer.js2
-rw-r--r--bot/src/events/ClientReady.js1
-rw-r--r--docker-compose.yml1
4 files changed, 7 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);
-
}
};
diff --git a/docker-compose.yml b/docker-compose.yml
index cb4ac40..2f86485 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -1,6 +1,7 @@
services:
aleebot:
image: aleebot
+ hostname: aleebot
volumes:
- ./database.db:/bot/database.db
- ./.env:/bot/.env