You've already forked matrix-react-sdk
							
							
				mirror of
				https://github.com/matrix-org/matrix-react-sdk.git
				synced 2025-11-04 11:51:45 +03:00 
			
		
		
		
	Add the tableflip slashcommand
Signed-off-by: Emmanouil Kampitakis <info+github@kampitakis.de>
This commit is contained in:
		
				
					committed by
					
						
						Emmanouil Kampitakis
					
				
			
			
				
	
			
			
			
						parent
						
							6726b731e4
						
					
				
				
					commit
					98a1b7a2d8
				
			@@ -166,6 +166,19 @@ export const Commands = [
 | 
				
			|||||||
        },
 | 
					        },
 | 
				
			||||||
        category: CommandCategories.messages,
 | 
					        category: CommandCategories.messages,
 | 
				
			||||||
    }),
 | 
					    }),
 | 
				
			||||||
 | 
					    new Command({
 | 
				
			||||||
 | 
					        command: 'tableflip',
 | 
				
			||||||
 | 
					        args: '<message>',
 | 
				
			||||||
 | 
					        description: _td('Prepends (╯°□°)╯︵ ┻━┻ to a plain-text message'),
 | 
				
			||||||
 | 
					        runFn: function(roomId, args) {
 | 
				
			||||||
 | 
					            let message = '(╯°□°)╯︵ ┻━┻';
 | 
				
			||||||
 | 
					            if (args) {
 | 
				
			||||||
 | 
					                message = message + ' ' + args;
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            return success(MatrixClientPeg.get().sendTextMessage(roomId, message));
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        category: CommandCategories.messages,
 | 
				
			||||||
 | 
					    }),
 | 
				
			||||||
    new Command({
 | 
					    new Command({
 | 
				
			||||||
        command: 'lenny',
 | 
					        command: 'lenny',
 | 
				
			||||||
        args: '<message>',
 | 
					        args: '<message>',
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user