Added spoiler support.
This commit is contained in:
parent
b56c9a3365
commit
77bc549653
9 changed files with 182 additions and 71 deletions
|
|
@ -131,6 +131,17 @@ class commandProcessor{
|
|||
return true
|
||||
}
|
||||
|
||||
spoiler(preprocessor){
|
||||
//splice out our command
|
||||
preprocessor.commandArray.splice(0,2);
|
||||
|
||||
//Mark out the current message as a spoiler
|
||||
preprocessor.chatType = 'spoiler';
|
||||
|
||||
//Make sure to throw the send flag
|
||||
return true
|
||||
}
|
||||
|
||||
async announce(preprocessor){
|
||||
//Get the current channel from the database
|
||||
const chanDB = await channelModel.findOne({name: preprocessor.socket.chan});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue