mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-05 15:00:30 +03:00
add tableflip and unflip commands (#2075)
This commit is contained in:
parent
a142630ff9
commit
00d5553bcb
2 changed files with 21 additions and 1 deletions
|
|
@ -6,6 +6,8 @@ import * as roomActions from '../../client/action/room';
|
|||
import { useRoomNavigate } from './useRoomNavigate';
|
||||
|
||||
export const SHRUG = '¯\\_(ツ)_/¯';
|
||||
export const TABLEFLIP = '(╯°□°)╯︵ ┻━┻';
|
||||
export const UNFLIP = '┬─┬ノ( º_ºノ)';
|
||||
|
||||
export function parseUsersAndReason(payload: string): {
|
||||
users: string[];
|
||||
|
|
@ -48,6 +50,8 @@ export enum Command {
|
|||
MyRoomAvatar = 'myroomavatar',
|
||||
ConvertToDm = 'converttodm',
|
||||
ConvertToRoom = 'converttoroom',
|
||||
TableFlip = 'tableflip',
|
||||
UnFlip = 'unflip',
|
||||
}
|
||||
|
||||
export type CommandContent = {
|
||||
|
|
@ -78,6 +82,16 @@ export const useCommands = (mx: MatrixClient, room: Room): CommandRecord => {
|
|||
description: 'Send ¯\\_(ツ)_/¯ as message',
|
||||
exe: async () => undefined,
|
||||
},
|
||||
[Command.TableFlip]: {
|
||||
name: Command.TableFlip,
|
||||
description: `Send ${TABLEFLIP} as message`,
|
||||
exe: async () => undefined,
|
||||
},
|
||||
[Command.UnFlip]: {
|
||||
name: Command.UnFlip,
|
||||
description: `Send ${UNFLIP} as message`,
|
||||
exe: async () => undefined,
|
||||
},
|
||||
[Command.StartDm]: {
|
||||
name: Command.StartDm,
|
||||
description: 'Start direct message with user. Example: /startdm userId1',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue