Skip to content

Commit

Permalink
Change csamount to {amount}
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMonDon committed Jul 30, 2024
1 parent 62d28e4 commit 8b839fb
Show file tree
Hide file tree
Showing 8 changed files with 874 additions and 875 deletions.
4 changes: 2 additions & 2 deletions commands/Economy/crime.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class Crime extends Command {

embed
.setColor(msg.settings.embedErrorColor)
.setDescription(crimeFail[num].replace('csamount', csamount))
.setDescription(crimeFail[num].replace('{amount}', csamount))
.setFooter({ text: `Reply #${num.toLocaleString()}` });
msg.channel.send({ embeds: [embed] });

Expand All @@ -94,7 +94,7 @@ class Crime extends Command {

embed
.setColor(msg.settings.embedSuccessColor)
.setDescription(crimeSuccess[num].replace('csamount', csamount))
.setDescription(crimeSuccess[num].replace('{amount}', csamount))
.setFooter({ text: `Reply #${num.toLocaleString()}` });
msg.channel.send({ embeds: [embed] });

Expand Down
4 changes: 2 additions & 2 deletions commands/Economy/slut.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class Slut extends Command {
csAmount = csAmount.length > 1024 ? csAmount.slice(0, 1021) + '...' : csAmount;

const num = Math.floor(Math.random() * (crimeFail.length - 1)) + 1;
const txt = crimeFail[num].replace('csamount', csAmount);
const txt = crimeFail[num].replace('{amount}', csAmount);

embed.setDescription(txt).setFooter({ text: `Reply #${num.toLocaleString()}` });
msg.channel.send({ embeds: [embed] });
Expand All @@ -93,7 +93,7 @@ class Slut extends Command {
csAmount = csAmount.length > 1024 ? csAmount.slice(0, 1021) + '...' : csAmount;

const num = Math.floor(Math.random() * (crimeSuccess.length - 1)) + 1;
const txt = crimeSuccess[num].replace('csamount', csAmount);
const txt = crimeSuccess[num].replace('{amount}', csAmount);

embed
.setDescription(txt)
Expand Down
2 changes: 1 addition & 1 deletion commands/Economy/work.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class Work extends Command {
const jobs = require('../../resources/messages/work_jobs.json');

const num = Math.floor(Math.random() * (jobs.length - 1)) + 1;
const job = jobs[num].replace('csamount', csamount);
const job = jobs[num].replace('{amount}', csamount);

userCooldown.time = Date.now() + cooldown * 1000;
userCooldown.active = true;
Expand Down
257 changes: 128 additions & 129 deletions resources/messages/crime_fail.json

Large diffs are not rendered by default.

228 changes: 114 additions & 114 deletions resources/messages/crime_success.json

Large diffs are not rendered by default.

334 changes: 167 additions & 167 deletions resources/messages/slut_fail.json

Large diffs are not rendered by default.

424 changes: 212 additions & 212 deletions resources/messages/slut_success.json

Large diffs are not rendered by default.

496 changes: 248 additions & 248 deletions resources/messages/work_jobs.json

Large diffs are not rendered by default.

0 comments on commit 8b839fb

Please sign in to comment.