mirror of
https://github.com/idanoo/gomatrixbot
synced 2025-07-01 08:02:21 +00:00
up
This commit is contained in:
parent
5bac56f38a
commit
c9202bba05
1 changed files with 4 additions and 0 deletions
|
@ -204,6 +204,10 @@ func (mtrx *MtrxClient) handleCommand(ctx context.Context, evt *event.Event) {
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
case ".quake":
|
case ".quake":
|
||||||
|
if len(args) < 2 {
|
||||||
|
mtrx.sendMessage(ctx, evt.RoomID, "usage: .quake <intensity 1-5>")
|
||||||
|
return
|
||||||
|
}
|
||||||
mtrx.checkForQuakes(ctx, evt.RoomID, args[1])
|
mtrx.checkForQuakes(ctx, evt.RoomID, args[1])
|
||||||
return
|
return
|
||||||
case ".imdb":
|
case ".imdb":
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue