Skip to content

Commit a3968d9

Browse files
authored
Fixed Typo and error for non-docker users
1 parent 786b106 commit a3968d9

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

commands/mud/tell.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ module.exports = {
5353
console.log(`Message sent to ${tellusr} successfully. Message: ${tellmsg}`);
5454
interaction.reply({content: `Message sent to ${tellusr} successfully. Message: ${tellmsg}`, flags: MessageFlags.Ephemeral });
5555
} else {
56-
console.log(`Failed tp send message. Server response: ${result.msg || 'Unknown error'}`);
56+
console.log(`Failed to send message. Server response: ${result.msg || 'Unknown error'}`);
5757
interaction.reply({content: `Failed to send message to ${tellusr}, Server Error: ${result.msg}`, flags: MessageFlags.Ephemeral });
5858
}
5959
} catch (error) {

index.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
const { execSync } = require('child_process');
22
execSync('node -e "require(\'./backend/docker/dockerstartup.js\').dockerstartup().then(() => process.exit(0))"', { stdio: 'inherit' }); // since I can't use await here this is a workaround
33

4+
const { Client, Collection, GatewayIntentBits } = require('discord.js');
5+
require('./backend/upd.js'); // Update Check
6+
7+
const fs = require('node:fs');
8+
const path = require('node:path');
9+
410
const isDocker = require('is-docker')
511
let configPath
612
if (isDocker() && !process.env.OVERRIDE) {
@@ -11,16 +17,10 @@ if (isDocker() && !process.env.OVERRIDE) {
1117
console.log(error)
1218
}
1319
} else {
14-
configPath = path.resolve(__dirname, './../config.json');
20+
configPath = path.resolve(__dirname, './config.json');
1521
}
1622
const { token, clientId, guildId } = require(configPath);;
1723

18-
const { Client, Collection, GatewayIntentBits } = require('discord.js');
19-
require('./backend/upd.js'); // Update Check
20-
21-
const fs = require('node:fs');
22-
const path = require('node:path');
23-
2424
const client = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.MessageContent,],});
2525

2626
client.commands = new Collection();

0 commit comments

Comments
 (0)