diff --git a/src/components/NavigationBar/NavigationBar.vue b/src/components/NavigationBar/NavigationBar.vue index f9bb65112..71eaa4cba 100644 --- a/src/components/NavigationBar/NavigationBar.vue +++ b/src/components/NavigationBar/NavigationBar.vue @@ -72,7 +72,7 @@ export default { methods: { exportToCode(){ const wrapper = document.createElement('div'); - wrapper.innerHTML = `
${this.$t('download.content.title')}
`; + wrapper.innerHTML = `
${this.$t('download.content.title')}
`; this.$swal({ title: this.$t('download.title'), content: wrapper, @@ -100,21 +100,6 @@ export default { 'easy-json-database': '^1.3.0' } })); - zip.file("start.sh", ` - if [ "$(npm list -g | grep yarn)" ] - then - yarn list | grep discord.js || yarn install - yarn list | grep easy-json-database || yarn install - node bot.js - else - npm list | grep discord.js || yarn install - npm list | grep easy-json-database || yarn install - node bot.js - fi - `); - zip.file("start.bat", ` - REM UNKNOWN: {"type":"If","clause":{"type":"CompoundList","commands":[{"type":"Command","name":{"text":"[","type":"Word"},"suffix":[{"text":"\\"$(npm list -g | grep yarn)\\"","expansion":[{"loc":{"start":1,"end":26},"command":"npm list -g | grep yarn","type":"CommandExpansion","commandAST":{"type":"Script","commands":[{"type":"Pipeline","commands":[{"type":"Command","name":{"text":"npm","type":"Word"},"suffix":[{"text":"list","type":"Word"},{"text":"-g","type":"Word"}]},{"type":"Command","name":{"text":"grep","type":"Word"},"suffix":[{"text":"yarn","type":"Word"}]}]}]}}],"type":"Word"},{"text":"]","type":"Word"}]}]},"then":{"type":"CompoundList","commands":[{"type":"LogicalExpression","op":"or","left":{"type":"Pipeline","commands":[{"type":"Command","name":{"text":"yarn","type":"Word"},"suffix":[{"text":"list","type":"Word"}]},{"type":"Command","name":{"text":"grep","type":"Word"},"suffix":[{"text":"discord.js","type":"Word"}]}]},"right":{"type":"Command","name":{"text":"yarn","type":"Word"},"suffix":[{"text":"add","type":"Word"},{"text":"discord.js","type":"Word"},{"text":"--no-lockfile","type":"Word"}]}},{"type":"Command","name":{"text":"node","type":"Word"},"suffix":[{"text":"bot.js","type":"Word"}]}]},"else":{"type":"CompoundList","commands":[{"type":"LogicalExpression","op":"or","left":{"type":"Pipeline","commands":[{"type":"Command","name":{"text":"npm","type":"Word"},"suffix":[{"text":"list","type":"Word"}]},{"type":"Command","name":{"text":"grep","type":"Word"},"suffix":[{"text":"discord.js","type":"Word"}]}]},"right":{"type":"Command","name":{"text":"npm","type":"Word"},"suffix":[{"text":"install","type":"Word"},{"text":"discord.js","type":"Word"},{"text":"--no-shrinkwrap","type":"Word"}]}},{"type":"Command","name":{"text":"node","type":"Word"},"suffix":[{"text":"bot.js","type":"Word"}]}]}} - `); zip.generateAsync({ type: "blob" }) diff --git a/src/locales/en.js b/src/locales/en.js index f73cf2ff3..9a3b7c3de 100644 --- a/src/locales/en.js +++ b/src/locales/en.js @@ -50,7 +50,8 @@ export const websiteMessages = { content: { title: "How to start your bot once downloaded?", unzipFile: "Unzip the downloaded file.", - start: "Click start.bat (or start.sh if you're using MacOS or Linux)", + node: "Install NPM and Node.js (search for tutorials on Google)", + start: "Run 'npm install' and 'npm start' in a terminal", done: "Your bot is started!" }, cancel: "Cancel", diff --git a/src/locales/fr.js b/src/locales/fr.js index b61761728..86266b60f 100644 --- a/src/locales/fr.js +++ b/src/locales/fr.js @@ -50,7 +50,8 @@ export const websiteMessages = { content: { title: "Comment lancer votre bot une fois le bot téléchargé ?", unzipFile: "Dézippez le fichier obtenu.", - start: "Cliquez sur start.bat (ou start.sh si vous utilisez MacOS ou Linux)", + node: "Installez NPM et Node.js (cherchez des tutos sur google)", + start: "Tapez 'npm install' et 'npm start' dans votre terminal", done: "Votre bot est lancé!" }, cancel: "Annuler",