Skip to content

Commit ed8b642

Browse files
committed
refactor(scripts): consistency and formatting
1 parent 96c79f5 commit ed8b642

6 files changed

Lines changed: 12 additions & 12 deletions

File tree

scripts/modules/configHandler.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import rootSettingsJson from "../../settings.json" with { type: "json" }
1+
import rootSettingsJson from '../../settings.json' with { type: 'json' };
22

3-
export { rootSettingsJson }
3+
export { rootSettingsJson };

scripts/modules/fileUtils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import * as nodeUrl from "node:url";
2-
import * as nodePath from "node:path";
1+
import * as nodeUrl from 'node:url';
2+
import * as nodePath from 'node:path';
33

44
function getDirname(moduleAbsoluteFileUrl) {
55
const fileName = nodeUrl.fileURLToPath(moduleAbsoluteFileUrl);

scripts/modules/jsonCommands.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ async function loadCommandsFromPath(directoryPath) {
1717
await Promise.all(
1818
commandFileNames.map(async (fileName) => {
1919
if (!fileName.endsWith('.js')) {
20-
return
20+
return;
2121
}
2222
const filePath = nodePath.join(directoryPath, fileName);
2323
const fileUrlHref = nodeUrl.pathToFileURL(filePath).href;
@@ -31,7 +31,7 @@ async function loadCommandsFromPath(directoryPath) {
3131
}
3232
}),
3333
);
34-
console.log("LOAD DONE: jsonCommands")
34+
console.log('LOAD DONE: jsonCommands');
3535
return jsonCommands;
3636
}
3737

scripts/modules/localesMap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export async function getLocalesMap() {
3131
}
3232
}),
3333
);
34-
console.log(`LOAD DONE: localesProps: ${folderName}`)
34+
console.log(`LOAD DONE: localesProps: ${folderName}`);
3535
localesMap.set(folderName, localeProps);
3636
}
3737
return localesMap;

scripts/modules/restHandler.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { REST } from "discord.js"
2-
import { rootSettingsJson } from "./configHandler.js"
1+
import { REST } from 'discord.js';
2+
import { rootSettingsJson } from './configHandler.js';
33

4-
export const rest = new REST({ version: "10" }).setToken(rootSettingsJson.token);
4+
export const rest = new REST({ version: '10' }).setToken(rootSettingsJson.token);

scripts/modules/routes.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Routes } from "discord.js";
2-
import { rootSettingsJson } from "./configHandler.js"
1+
import { Routes } from 'discord.js';
2+
import { rootSettingsJson } from './configHandler.js';
33

44
export const applicationGlobalCommandsRoute = Routes.applicationCommands(rootSettingsJson.applicationId);

0 commit comments

Comments
 (0)