mirror of
https://github.com/idanoo/gomatrixbot
synced 2025-07-02 00:22:16 +00:00
Fix
This commit is contained in:
parent
81e8f37461
commit
5a6a21d25b
1 changed files with 1 additions and 1 deletions
|
@ -274,7 +274,7 @@ func (mtrx *MtrxClient) handleCommand(ctx context.Context, evt *event.Event) {
|
||||||
|
|
||||||
// Shuffle key
|
// Shuffle key
|
||||||
if len(matches) > 0 {
|
if len(matches) > 0 {
|
||||||
filename := matches[keys[rand.Intn(len(keys)-1)]]
|
filename := matches[keys[rand.Intn(len(keys))]]
|
||||||
mtrx.postBirbWithText(ctx, evt, mtrx.getAnyRandomQuoteSearch(true, strings.Join(args[1:], " ")), filename)
|
mtrx.postBirbWithText(ctx, evt, mtrx.getAnyRandomQuoteSearch(true, strings.Join(args[1:], " ")), filename)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue