This commit is contained in:
Daniel Mason 2025-05-16 21:04:44 +12:00
parent 81e8f37461
commit 5a6a21d25b
Signed by: idanoo
GPG key ID: 387387CDBC02F132

View file

@ -274,7 +274,7 @@ func (mtrx *MtrxClient) handleCommand(ctx context.Context, evt *event.Event) {
// Shuffle key
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)
}
}