Finished up with inline and full-body chat-filters.
This commit is contained in:
parent
77bc549653
commit
4c31dbde1e
6 changed files with 198 additions and 40 deletions
|
|
@ -142,6 +142,39 @@ class commandProcessor{
|
|||
return true
|
||||
}
|
||||
|
||||
strikethrough(preprocessor){
|
||||
//splice out our command
|
||||
preprocessor.commandArray.splice(0,2);
|
||||
|
||||
//Mark out the current message as a spoiler
|
||||
preprocessor.chatType = 'strikethrough';
|
||||
|
||||
//Make sure to throw the send flag
|
||||
return true
|
||||
}
|
||||
|
||||
bold(preprocessor){
|
||||
//splice out our command
|
||||
preprocessor.commandArray.splice(0,2);
|
||||
|
||||
//Mark out the current message as a spoiler
|
||||
preprocessor.chatType = 'bold';
|
||||
|
||||
//Make sure to throw the send flag
|
||||
return true
|
||||
}
|
||||
|
||||
italics(preprocessor){
|
||||
//splice out our command
|
||||
preprocessor.commandArray.splice(0,2);
|
||||
|
||||
//Mark out the current message as a spoiler
|
||||
preprocessor.chatType = 'italics';
|
||||
|
||||
//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