Skip to content

Commit

Permalink
Update info-speedtest.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego Flores authored Apr 10, 2024
1 parent 005e471 commit c86a61f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions plugins/info-speedtest.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,21 @@ const handler = async (m) => {
const match = result.match(/https?:\/\/\S+/);
if (match) {
const imageLink = match[0];
await conn.sendFile(m.chat, imageLink, 'speedtest.png', `${result}`, m.id);
await conn.sendFile(m.chat, imageLink, 'speedtest.png', `${result}`);
} else {
await conn.reply(m.chat, result, m.id);
await conn.reply(m.chat, result, m);
}
}
if (stderr.trim()) {
await conn.reply(m.chat, stderr, m.id);
await conn.reply(m.chat, stderr, m);
}
} catch (e) {
await conn.reply(m.chat, e.message, m.id);
await conn.reply(m.chat, e.message, m);
}
};

handler.help = ['speedtest'];
handler.tags = ['info'];
handler.command = /^(speedtest?|test?speed)$/i;
handler.command = /^(speedtest)$/i;

export default handler;

0 comments on commit c86a61f

Please sign in to comment.