Skip to content

Commit a44d68f

Browse files
committed
chore: redirect !addban and !removeban to native versions
1 parent 6c20d1e commit a44d68f

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

Diff for: lib/commands/implementations/banphrase.js

+2-5
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,8 @@ function banPhraseTwitch(defaultPunishmentDuration, punishmentType) {
5151
}
5252

5353
function banPhraseDGG() {
54-
return (input, services) => {
55-
const matched = /(\d+[HMDSWwhmds])?\s?(.*)/.exec(input);
56-
const bannedPhrase = _.get(matched, 2, '');
57-
services.bannedPhrases.addBannedPhrase(bannedPhrase);
58-
return new CommandOutput(null, 'Phrase banned!');
54+
return () => {
55+
return new CommandOutput(null, 'This command has been removed, use native /addban instead.');
5956
};
6057
}
6158

Diff for: lib/commands/implementations/unbanphrase.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,8 @@ function unbanPhraseTwitch() {
2020
}
2121

2222
function unbanPhraseDGG() {
23-
return (input, services) => {
24-
const bannedPhrase = input;
25-
services.bannedPhrases.removeBannedPhrase(bannedPhrase);
26-
return new CommandOutput(null, 'Phrase unbanned! AngelThump');
23+
return () => {
24+
return new CommandOutput(null, 'This command has been removed, use native /removeban instead.');
2725
};
2826
}
2927

0 commit comments

Comments
 (0)