diff --git a/lang/ach/plugins.json b/lang/ach/plugins.json new file mode 100644 index 0000000..b08515b --- /dev/null +++ b/lang/ach/plugins.json @@ -0,0 +1,11 @@ +{ + "credits": { + "modules": { + "balance": { + "general": { + "title": "crwdns118:0:dollar:crwdne118:0" + } + } + } + } +} diff --git a/lang/de/plugins.json b/lang/de/plugins.json new file mode 100644 index 0000000..45bd203 --- /dev/null +++ b/lang/de/plugins.json @@ -0,0 +1,115 @@ +{ + "credits": { + "modules": { + "balance": { + "general": { + "title": "[:dollar:] Credits (Balance)" + }, + "user_has_amount_credits": "<@{{user}}> has {{amount}} credits", + "error01": { + "description": "<@{{user}}> has no credits!" + }, + "success01": { + "description": "<@{{user}}> has {{amount}} credits!\n" + } + }, + "gift": { + "general": { + "title": "[:dollar:] Credits (Gift)" + }, + "error01": { + "description": "You can not pay yourself!" + }, + "error02": { + "description": "You can't gift zero or below!" + }, + "error03": { + "description": "You have insufficient credits. Your balance is {{amount}}!" + }, + "success01": { + "description": "You have received {{amount}} credits from {{user}} with reason {{reason}}!" + }, + "success02": { + "description": "Successfully gifted {{amount}} credits to <@{{user}}> with reason {{reason}}!" + } + }, + "top": { + "entry": "{{index}}. <@{{user}}> - {{amount}}", + "success01": { + "description": "Top 10 users with the most credits." + }, + "general": { + "title": "[:dollar:] Credits (Top)" + } + }, + "work": { + "general": { + "title": "[:dollar:] Credits (Work)" + }, + "error01": { + "description": "You can not work while on timeout, please wait {{time}} seconds." + }, + "success01": { + "description": "You worked and earned {{amount}} credits" + } + } + } + }, + "utility": { + "modules": { + "avatar": { + "general": { + "title": "[:hammer:] Utility (Avatar)" + }, + "success01": { + "description": "Here you have <@{{user}}> avatar!" + } + } + } + }, + "counters": { + "modules": { + "view": { + "general": { + "title": "[:1234:] Counters (View)" + }, + "error01": { + "description": "No counter found for channel <#{{channel}}>!" + }, + "success01": { + "description": "Viewing counter for channel <#{{channel}} with count {{amount}}." + } + } + } + }, + "manage": { + "groups": { + "counters": { + "modules": { + "create": { + "general": { + "title": "[:toolbox:] Manage - Counters (Create)" + }, + "success01": { + "description": "Created counter for <#{{channel}}>." + }, + "error01": { + "description": "A counter already exists for this channel." + } + }, + "delete": { + "general": { + "title": "[:toolbox:] Manage - Counters (Delete)" + }, + "error01": { + "description": "The counter for this channel does not exist." + }, + "success01": { + "description": "The counter for this channel has been deleted." + } + } + } + } + } + } +} diff --git a/lang/en/errors.json b/lang/en/errors.json new file mode 100644 index 0000000..225d04b --- /dev/null +++ b/lang/en/errors.json @@ -0,0 +1,7 @@ +{ + "errors": { + "guildOnly": "You can only use this command in a guild!", + "userNotFound": "Could not find user <@{{user}}>.", + "amountNotFound": "We could not read your requested amount!" + } +} diff --git a/lang/en/plugins.json b/lang/en/plugins.json index 24e05e9..45bd203 100644 --- a/lang/en/plugins.json +++ b/lang/en/plugins.json @@ -1,3 +1,115 @@ { - "test":"test" + "credits": { + "modules": { + "balance": { + "general": { + "title": "[:dollar:] Credits (Balance)" + }, + "user_has_amount_credits": "<@{{user}}> has {{amount}} credits", + "error01": { + "description": "<@{{user}}> has no credits!" + }, + "success01": { + "description": "<@{{user}}> has {{amount}} credits!\n" + } + }, + "gift": { + "general": { + "title": "[:dollar:] Credits (Gift)" + }, + "error01": { + "description": "You can not pay yourself!" + }, + "error02": { + "description": "You can't gift zero or below!" + }, + "error03": { + "description": "You have insufficient credits. Your balance is {{amount}}!" + }, + "success01": { + "description": "You have received {{amount}} credits from {{user}} with reason {{reason}}!" + }, + "success02": { + "description": "Successfully gifted {{amount}} credits to <@{{user}}> with reason {{reason}}!" + } + }, + "top": { + "entry": "{{index}}. <@{{user}}> - {{amount}}", + "success01": { + "description": "Top 10 users with the most credits." + }, + "general": { + "title": "[:dollar:] Credits (Top)" + } + }, + "work": { + "general": { + "title": "[:dollar:] Credits (Work)" + }, + "error01": { + "description": "You can not work while on timeout, please wait {{time}} seconds." + }, + "success01": { + "description": "You worked and earned {{amount}} credits" + } + } + } + }, + "utility": { + "modules": { + "avatar": { + "general": { + "title": "[:hammer:] Utility (Avatar)" + }, + "success01": { + "description": "Here you have <@{{user}}> avatar!" + } + } + } + }, + "counters": { + "modules": { + "view": { + "general": { + "title": "[:1234:] Counters (View)" + }, + "error01": { + "description": "No counter found for channel <#{{channel}}>!" + }, + "success01": { + "description": "Viewing counter for channel <#{{channel}} with count {{amount}}." + } + } + } + }, + "manage": { + "groups": { + "counters": { + "modules": { + "create": { + "general": { + "title": "[:toolbox:] Manage - Counters (Create)" + }, + "success01": { + "description": "Created counter for <#{{channel}}>." + }, + "error01": { + "description": "A counter already exists for this channel." + } + }, + "delete": { + "general": { + "title": "[:toolbox:] Manage - Counters (Delete)" + }, + "error01": { + "description": "The counter for this channel does not exist." + }, + "success01": { + "description": "The counter for this channel has been deleted." + } + } + } + } + } + } } diff --git a/lang/sv/plugins.json b/lang/sv/plugins.json new file mode 100644 index 0000000..9aadec8 --- /dev/null +++ b/lang/sv/plugins.json @@ -0,0 +1,115 @@ +{ + "credits": { + "modules": { + "balance": { + "general": { + "title": "[:dollar:] Krediter (Saldo)" + }, + "user_has_amount_credits": "<@{{user}}> har {{amount}} krediter", + "error01": { + "description": "<@{{user}} har inga krediter!" + }, + "success01": { + "description": "<@{{user}}> har {{amount}} krediter!\n" + } + }, + "gift": { + "general": { + "title": "[:dollar:] Krediter (Gåva)" + }, + "error01": { + "description": "Du kan inte betala själv!" + }, + "error02": { + "description": "Du kan inte ge noll eller nedan!" + }, + "error03": { + "description": "Du har otillräckliga krediter. Ditt saldo är {{amount}}!" + }, + "success01": { + "description": "Du har fått {{amount}} krediter från {{user}} med anledning av {{reason}}!" + }, + "success02": { + "description": "Du har fått {{amount}} krediter från {{user}} med anledning {{reason}}!" + } + }, + "top": { + "entry": "{{index}}. <@{{user}}> - {{amount}}", + "success01": { + "description": "Topp 10 användare med flest krediter." + }, + "general": { + "title": "[:dollar:] Krediter (Topp)" + } + }, + "work": { + "general": { + "title": "[:dollar:] Krediter (Arbeta)" + }, + "error01": { + "description": "Du kan inte arbeta under tiden du har paus, vänta {{time}} sekunder." + }, + "success01": { + "description": "Du arbetade och tjänade {{amount}} krediter" + } + } + } + }, + "utility": { + "modules": { + "avatar": { + "general": { + "title": "[:hammer:] Verktyg (Avatar)" + }, + "success01": { + "description": "Här har du <@{{user}}> avatar!" + } + } + } + }, + "counters": { + "modules": { + "view": { + "general": { + "title": "[:1234:] Räknare (Visa)" + }, + "error01": { + "description": "Ingen räknare hittades för kanal <#{{channel}}>!" + }, + "success01": { + "description": "Visar räknaren för kanal <#{{channel}} med antal {{amount}}." + } + } + } + }, + "manage": { + "groups": { + "counters": { + "modules": { + "create": { + "general": { + "title": "[:toolbox:] Hantera - Räknare (Skapa)" + }, + "success01": { + "description": "Skapade räknare för <#{{channel}}>." + }, + "error01": { + "description": "En räknare finns redan för denna kanal." + } + }, + "delete": { + "general": { + "title": "[:toolbox:] Hantera - Räknare (Ta bort)" + }, + "error01": { + "description": "Räknaren för denna kanal finns inte." + }, + "success01": { + "description": "Räknaren för denna kanal har tagits bort." + } + } + } + } + } + } +} diff --git a/package.json b/package.json index a468376..71ab80a 100644 --- a/package.json +++ b/package.json @@ -27,37 +27,37 @@ "email": "vermium@zyner.org" }, "dependencies": { - "@discordjs/builders": "^0.12.0", + "@discordjs/builders": "^0.13.0", "@discordjs/rest": "^0.4.0", - "axios": "^0.26.0", + "axios": "^0.27.0", "chance": "^1.1.8", "common": "^0.2.5", "crypto": "^1.0.1", - "discord-api-types": "^0.31.0", + "discord-api-types": "^0.32.0", "discord.js": "^13.6.0", "i18next": "^21.6.13", "mongoose": "^6.2.3", "node-schedule": "^2.1.0", "ts-node": "^10.7.0", - "tsconfig-paths": "^3.14.1", + "tsconfig-paths": "^4.0.0", "typescript": "^4.6.3", "uuid": "^8.3.2", "winston-daily-rotate-file": "^4.6.1" }, "devDependencies": { "@types/chance": "^1.1.3", - "@types/node-schedule": "^1.3.2", + "@types/node-schedule": "2.1.0", "@types/uuid": "^8.3.4", "@typescript-eslint/eslint-plugin": "^5.15.0", "@typescript-eslint/parser": "^5.15.0", - "eslint": "8.13.0", + "eslint": "8.15.0", "eslint-config-airbnb-base": "15.0.0", "eslint-config-prettier": "8.5.0", "eslint-plugin-import": "2.26.0", "eslint-plugin-no-loops": "^0.3.0", "eslint-plugin-prettier": "^4.0.0", "husky": "8.0.1", - "jest": "^27.5.1", + "jest": "28.0.0", "lint-staged": "^12.3.7", "prettier": "^2.6.0" },