Skip to content

Commit

Permalink
👽 Remove duplicated strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Androz2091 committed Aug 1, 2020
1 parent 63797a4 commit a57dc4e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions commands/Moderation/giveaway.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class Giveaway extends Command {
} else if(status === "reroll"){
const messageID = args[1];
if(!messageID){
return message.error("moderation/giveaway:MISSING_ID_REROLL");
return message.error("moderation/giveaway:MISSING_ID");
}
this.client.giveawaysManager.reroll(messageID, {
congrat: message.translate("moderation/giveaway:REROLL_CONGRAT"),
Expand All @@ -102,7 +102,7 @@ class Giveaway extends Command {
} else if(status === "delete"){
const messageID = args[1];
if(!messageID){
return message.error("moderation/giveaway:MISSING_ID_DELETE");
return message.error("moderation/giveaway:MISSING_ID");
}
this.client.giveawaysManager.delete(messageID).then(() => {
return message.success("moderation/giveaway:GIVEAWAY_DELETED");
Expand All @@ -114,7 +114,7 @@ class Giveaway extends Command {
} else if(status === "end"){
const messageID = args[1];
if(!messageID){
return message.error("moderation/giveaway:MISSING_ID_END");
return message.error("moderation/giveaway:MISSING_ID");
}
try {
this.client.giveawaysManager.edit(messageID, {
Expand Down
4 changes: 1 addition & 3 deletions languages/en-US/moderation/giveaway.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
"EXAMPLES": "{{prefix}}giveaway create 10m 2 5$ PayPal!\n{{prefix}}giveaway reroll 597812898022031374",
"MISSING_STATUS": "You must specify an action between `create`, `reroll`, `end` or `delete`!",
"INVALID_CREATE": "You must enter the information like this: \n\n`{{prefix}}giveaway create [time] [winners count] [prize]`",
"MISSING_ID_REROLL": "You must enter the giveaway message ID!",
"MISSING_ID_DELETE": "You must enter the giveaway message ID!",
"MISSING_ID_END": "You must enter the giveaway message ID!",
"MISSING_ID": "You must enter the giveaway message ID!",
"NOT_FOUND": "No giveaway found with message ID `{{messageID}}`",
"NOT_FOUND_ENDED": "No **ended** giveaway found with message ID `{{messageID}}`",
"MAX_DURATION": "The maximum duration of a giveaway is 15 days.",
Expand Down

0 comments on commit a57dc4e

Please sign in to comment.