feat: simplified discord token and wargaming application id fetching

This commit is contained in:
TresAbhi committed 2023-06-08 00:39:42 +00:00
1 parent dd900fdf95
commit 3a23a3f8c4
17 files changed
+50 -47

No files matched your search

+4 -1
View File
@@ -3,7 +3,7 @@ import errorWithCause from './errorWithCause.js';
type ArgumentName = 'discord-token' | 'wargaming-application-id';
export const args: Record<ArgumentName, string> = {
const args: Record<ArgumentName, string> = {
'discord-token': '',
'wargaming-application-id': '',
};
@@ -23,3 +23,6 @@ Object.keys(args).forEach((arg) => {
);
}
});
export const discordToken = args['discord-token'];
export const wargamingApplicationId = args['wargaming-application-id'];