@@ -16,8 +16,8 @@ const song = require('../commands/implementations/song');
16
16
const earlierSong = require ( '../commands/implementations/earliersong' ) ;
17
17
const youtube = require ( '../commands/implementations/youtube' ) ;
18
18
const schedule = require ( '../commands/implementations/schedule' ) ;
19
- const { addban , addmute } = require ( '../commands/implementations/banphrase' ) ;
20
- const unbanphrase = require ( '../commands/implementations/unbanphrase' ) ;
19
+ const { addbanDGG , addbanTwitch , addmuteTwitch } = require ( '../commands/implementations/banphrase' ) ;
20
+ const { unbanphraseDGG , unbanphraseTwitch } = require ( '../commands/implementations/unbanphrase' ) ;
21
21
const live = require ( '../commands/implementations/live' ) ;
22
22
const restart = require ( '../commands/implementations/restart' ) ;
23
23
const love = require ( '../commands/implementations/love' ) ;
@@ -66,9 +66,6 @@ function registerCommandsFromFiles(commandRegistry, chatConnectedTo, config) {
66
66
}
67
67
commandRegistry . registerCommand ( '!youtube' , youtube , [ '!video' , '!lastvideo' , '!yt' ] ) ;
68
68
commandRegistry . registerCommand ( '!schedule' , schedule , [ '!sch' ] ) ;
69
- commandRegistry . registerCommand ( '!addban' , addban ) ;
70
- commandRegistry . registerCommand ( '!addmute' , addmute ) ;
71
- commandRegistry . registerCommand ( '!deleteban' , unbanphrase , [ '!deletemute' , '!dmute' , '!dban' ] ) ;
72
69
commandRegistry . registerCommand ( '!live' , live , [ '!uptime' ] ) ;
73
70
commandRegistry . registerCommand ( '!restart' , restart ) ;
74
71
commandRegistry . registerCommand ( '!love' , love ) ;
@@ -85,6 +82,14 @@ function registerCommandsFromFiles(commandRegistry, chatConnectedTo, config) {
85
82
commandRegistry . registerCommand ( '!breakingnews' , breakingNews , [ '!breaking' , '!bn' ] ) ;
86
83
87
84
if ( chatConnectedTo === 'dgg' ) {
85
+ commandRegistry . registerCommand ( '!addban' , addbanDGG , [ '!addmute' ] ) ;
86
+ commandRegistry . registerCommand ( '!deleteban' , unbanphraseDGG , [
87
+ '!deletemute' ,
88
+ '!removeban' ,
89
+ '!removemute' ,
90
+ '!dmute' ,
91
+ '!dban' ,
92
+ ] ) ;
88
93
commandRegistry . registerCommand ( '!voteban' , voteBan ) ;
89
94
commandRegistry . registerCommand ( '!voteipban' , voteIpban ) ;
90
95
commandRegistry . registerCommand ( '!svoteban' , svoteBan ) ;
@@ -105,6 +110,18 @@ function registerCommandsFromFiles(commandRegistry, chatConnectedTo, config) {
105
110
] ) ;
106
111
commandRegistry . registerCommand ( '!gulag' , gulag ) ;
107
112
}
113
+
114
+ if ( chatConnectedTo === 'twitch' ) {
115
+ commandRegistry . registerCommand ( '!addban' , addbanTwitch ) ;
116
+ commandRegistry . registerCommand ( '!addmute' , addmuteTwitch ) ;
117
+ commandRegistry . registerCommand ( '!deleteban' , unbanphraseTwitch , [
118
+ '!deletemute' ,
119
+ '!removeban' ,
120
+ '!removemute' ,
121
+ '!dmute' ,
122
+ '!dban' ,
123
+ ] ) ;
124
+ }
108
125
}
109
126
110
127
async function setupCommandsAndCachesFromDb (
0 commit comments