change probability

This commit is contained in:
MatthieuCoder 2023-01-22 14:14:14 +04:00
parent 0a64a05da2
commit 1fc983ac97

View file

@ -65,7 +65,7 @@ emitter.on(
async (message: GatewayMessageCreateDispatch["d"]) => {
// we shall not repond to bots
if (message.author.bot) return;
if (Math.random() >= 0) {
if (Math.random() > 0.7) {
try {
// Get the completed word found by the db.
let response = await completeWord(cutWord(message.content));