Skip to content

Commit

Permalink
📝 Update start instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
Androz2091 committed Feb 18, 2021
1 parent cf7d4ad commit 0449466
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 18 deletions.
17 changes: 1 addition & 16 deletions src/components/NavigationBar/NavigationBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export default {
methods: {
exportToCode(){
const wrapper = document.createElement('div');
wrapper.innerHTML = `<h6>${this.$t('download.content.title')}</h6><ul><li style='text-align:left'>${this.$t('download.content.unzipFile')}</li><li style='text-align:left'>${this.$t('download.content.start')}</li><li style='text-align:left'>${this.$t('download.content.done')}</li></ul>`;
wrapper.innerHTML = `<h6>${this.$t('download.content.title')}</h6><ul><li style='text-align:left'>${this.$t('download.content.unzipFile')}</li><li style='text-align:left'>${this.$t('download.content.node')}</li><li style='text-align:left'>${this.$t('download.content.start')}</li><li style='text-align:left'>${this.$t('download.content.done')}</li></ul>`;
this.$swal({
title: this.$t('download.title'),
content: wrapper,
Expand Down Expand Up @@ -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"
})
Expand Down
3 changes: 2 additions & 1 deletion src/locales/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 2 additions & 1 deletion src/locales/fr.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 0449466

Please sign in to comment.