File tree 6 files changed +0
-55
lines changed
6 files changed +0
-55
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,6 @@ services
70
70
services . scheduledCommands ,
71
71
services . fakeScheduler ,
72
72
services . messageRelay ,
73
- services . bannedPhrases ,
74
73
) ;
75
74
chatServiceRouter . create ( ) ;
76
75
} )
Original file line number Diff line number Diff line change @@ -60,14 +60,6 @@ function parseCommand(message) {
60
60
return { commandString : commandString . toLowerCase ( ) , input } ;
61
61
}
62
62
63
- function formatAddPhrase ( phrase ) {
64
- return `ADDPHRASE ${ JSON . stringify ( { data : phrase } ) } ` ;
65
- }
66
-
67
- function formatRemovePhrase ( phrase ) {
68
- return `REMOVEPHRASE ${ JSON . stringify ( { data : phrase } ) } ` ;
69
- }
70
-
71
63
module . exports = {
72
64
parseMessage,
73
65
parseCommand,
@@ -79,6 +71,4 @@ module.exports = {
79
71
formatPoll,
80
72
parseWhisper,
81
73
formatWhisper,
82
- formatAddPhrase,
83
- formatRemovePhrase,
84
74
} ;
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ class ChatServiceRouter {
11
11
messageSchedulerStream ,
12
12
fakeScheduler ,
13
13
messageRelay ,
14
- bannedPhrases ,
15
14
) {
16
15
this . messageRouter = messageRouter ;
17
16
this . commandRouter = commandRouter ;
@@ -23,7 +22,6 @@ class ChatServiceRouter {
23
22
this . fakeScheduler = fakeScheduler ;
24
23
// TODO just refactor other things to use the message relay
25
24
this . messageRelay = messageRelay ;
26
- this . bannedPhrases = bannedPhrases ;
27
25
}
28
26
29
27
create ( ) {
@@ -162,19 +160,6 @@ class ChatServiceRouter {
162
160
this . bot . sendMessage ( punishmentObject . reason ) ;
163
161
}
164
162
} ) ;
165
-
166
- this . bannedPhrases . on ( 'data' , ( obj ) => {
167
- switch ( obj . action ) {
168
- case 'add' :
169
- this . bot . sendAddPhrase ( obj . phrase ) ;
170
- break ;
171
- case 'remove' :
172
- this . bot . sendRemovePhrase ( obj . phrase ) ;
173
- break ;
174
- default :
175
- break ;
176
- }
177
- } )
178
163
}
179
164
}
180
165
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -12,8 +12,6 @@ const {
12
12
formatUnmute,
13
13
formatBan,
14
14
formatUnban,
15
- formatAddPhrase,
16
- formatRemovePhrase,
17
15
formatPoll,
18
16
} = require ( '../chat-utils/parse-commands-from-chat' ) ;
19
17
@@ -121,14 +119,6 @@ class DestinyChat extends EventEmitter {
121
119
} ) ;
122
120
}
123
121
124
- sendAddPhrase ( phrase ) {
125
- this . ws . send ( formatAddPhrase ( phrase ) ) ;
126
- }
127
-
128
- sendRemovePhrase ( phrase ) {
129
- this . ws . send ( formatRemovePhrase ( phrase ) ) ;
130
- }
131
-
132
122
handleError ( event ) {
133
123
this . emit ( 'error' , event ) ;
134
124
}
Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ const RedditVote = require('./reddit-vote');
19
19
const MessageRelay = require ( './message-relay' ) ;
20
20
const messageMatchingService = require ( './message-matching' ) ;
21
21
const HTMLMetadata = require ( './html-metadata' ) ;
22
- const BannedPhrases = require ( './banned-phrase-emitter' )
23
22
24
23
class Services {
25
24
constructor ( serviceConfigurations , chatConnectedTo ) {
@@ -50,7 +49,6 @@ class Services {
50
49
if ( chatConnectedTo === 'dgg' ) {
51
50
this . redditVote = new RedditVote ( serviceConfigurations . redditVote , this . logger ) ;
52
51
}
53
- this . bannedPhrases = new BannedPhrases ( ) ;
54
52
}
55
53
56
54
prepareAsyncServices ( ) {
You can’t perform that action at this time.
0 commit comments