chore: shorten prefix to !w

This commit is contained in:
0x1a8510f2 2023-06-12 04:10:46 +01:00
parent 310bf9b8dd
commit 123eea6acd
Signed by: 0x1a8510f2
GPG Key ID: 1C692E355D76775D

View File

@ -41,7 +41,7 @@ func MatrixBotEventHandlerSetUp(ctx lib.CommandContext) {
ctx.Client.SendReceipt(evt.RoomID, evt.ID, event.ReceiptTypeRead, nil)
if message, ok := evt.Content.Parsed.(*event.MessageEventContent); ok {
if command := strings.TrimPrefix(message.Body, "!wmp "); command != message.Body {
if command := strings.TrimPrefix(message.Body, "!w "); command != message.Body {
// If the message starts with the command prefix, start
// typing to indicate that we're processing the message.
defer ctx.Client.UserTyping(evt.RoomID, false, time.Microsecond*1)