Skip to content

Commit ddbb27b

Browse files
committed
feat: update react possible outcome of relying to a reaction to as much as 10% of chance with send it as message to 20%
1 parent f89e663 commit ddbb27b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/events/message.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ export default async function (msg: Message, type: string) {
7575
await sleep(randomMs);
7676
const isEmoji = /.*[A-Za-z0-9].*/.test(reaction);
7777

78-
if (Math.random() < 0.5 && !isEmoji)
79-
if (Math.random() < 0.5)
78+
if (Math.random() < 0.1 && !isEmoji)
79+
if (Math.random() < 0.2)
8080
await client.sendMessage(msg.id.remote, reaction);
8181
else await msg.reply(reaction);
8282
else await originalReact(reaction);

0 commit comments

Comments
 (0)