Here's a nice cleaned up version of my script. Run with deno run -A script.js
while (true) {
await send('beg for forgiveness for your sins. send the money back to the people you scammed.')
await sleep(1000);
}
function send(message) {
console.log(message);
const token = '6620259685:AAFh4zfkzZleFFmzbniXdJuz5U31xZG3wP4';
const chatId = '@officelogzbyskele';
return fetch (`https://api.telegram.org/bot${token}/sendMessage?chat_id=${chatId}`, {
method: 'POST',
headers: {
'content-type': 'application/json',
'cache-control': 'no-cache'
},
body: JSON.stringify({
chat_id: chatId,
text: message,
}),
});
}
function sleep(ms) {
return new Promise((resolve) => setTimeout(resolve, ms));
}
Here's a nice cleaned up version of my script. Run with deno run -A script.js
while (true) { await send('beg for forgiveness for your sins. send the money back to the people you scammed.') await sleep(1000); } function send(message) { console.log(message); const token = '6620259685:AAFh4zfkzZleFFmzbniXdJuz5U31xZG3wP4'; const chatId = '@officelogzbyskele'; return fetch (`https://api.telegram.org/bot${token}/sendMessage?chat_id=${chatId}`, { method: 'POST', headers: { 'content-type': 'application/json',...
Here's a nice cleaned up version of my script. Run with
deno run -A script.js
Here's a nice cleaned up version of my script. Run with
deno run -A script.js