mirror of
https://github.com/shazow/ssh-chat.git
synced 2025-04-21 03:07:40 +03:00
Merge e246006a4a8525d269c9ac4cd59c9e928700cc82 into 0cb58facef66da4b15d830bb18af5f6e9159c05a
This commit is contained in:
commit
50714b8c5a
@ -259,6 +259,16 @@ func InitCommands(c *Commands) {
|
||||
},
|
||||
})
|
||||
|
||||
c.Add(Command{
|
||||
Prefix: "/shrug",
|
||||
Help: "Raise your arms in the air",
|
||||
Handler: func(room *Room, msg message.CommandMsg) error {
|
||||
body := strings.TrimLeft(msg.Body(), "/shrug")
|
||||
room.Send(message.NewPublicMsg(body + "¯\\_(ツ)_/¯", msg.From()))
|
||||
return nil
|
||||
},
|
||||
})
|
||||
|
||||
c.Add(Command{
|
||||
Prefix: "/ignore",
|
||||
PrefixHelp: "[USER]",
|
||||
|
Loading…
x
Reference in New Issue
Block a user