File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -248,7 +248,12 @@ function () {
248
248
params = _msg$message$slice$sp2 . slice ( 1 ) ;
249
249
250
250
if ( commandName in this . aliases ) {
251
- commandName = this . aliases [ commandName ] ;
251
+ var _this$aliases$command = this . aliases [ commandName ] . split ( " " ) ;
252
+
253
+ var _this$aliases$command2 = _toArray ( _this$aliases$command ) ;
254
+
255
+ commandName = _this$aliases$command2 [ 0 ] ;
256
+ params = _this$aliases$command2 . slice ( 1 ) ;
252
257
}
253
258
254
259
switch ( true ) {
Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ class Chat {
206
206
let [ commandName , ...params ] = msg . message . slice ( 1 ) . split ( " " ) ;
207
207
208
208
if ( commandName in this . aliases ) {
209
- commandName = this . aliases [ commandName ] ;
209
+ [ commandName , ... params ] = this . aliases [ commandName ] . split ( " " ) ;
210
210
}
211
211
212
212
switch ( true ) {
You can’t perform that action at this time.
0 commit comments