This repository was archived by the owner on Sep 11, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -155,6 +155,18 @@ function success(promise?: Promise<any>) {
155155 */
156156
157157export const Commands = [
158+ new Command ( {
159+ command : 'spoiler' ,
160+ args : '<message>' ,
161+ description : _td ( 'Sends the given message as a spoiler' ) ,
162+ runFn : function ( roomId , message ) {
163+ return success ( ContentHelpers . makeHtmlMessage (
164+ message ,
165+ `<span data-mx-spoiler>${ message } </span>` ,
166+ ) ) ;
167+ } ,
168+ category : CommandCategories . messages ,
169+ } ) ,
158170 new Command ( {
159171 command : 'shrug' ,
160172 args : '<message>' ,
Original file line number Diff line number Diff line change 417417 "Other" : " Other" ,
418418 "Command error" : " Command error" ,
419419 "Usage" : " Usage" ,
420+ "Sends the given message as a spoiler" : " Sends the given message as a spoiler" ,
420421 "Prepends ¯\\ _(ツ)_/¯ to a plain-text message" : " Prepends ¯\\ _(ツ)_/¯ to a plain-text message" ,
421422 "Prepends (╯°□°)╯︵ ┻━┻ to a plain-text message" : " Prepends (╯°□°)╯︵ ┻━┻ to a plain-text message" ,
422423 "Prepends ┬──┬ ノ( ゜-゜ノ) to a plain-text message" : " Prepends ┬──┬ ノ( ゜-゜ノ) to a plain-text message" ,
You can’t perform that action at this time.
0 commit comments