Add type to message

This commit is contained in:
Christopher Cookman 2025-10-25 10:31:53 -06:00
parent c94b4bd41b
commit 077a8c4c59

View file

@ -41,7 +41,7 @@ const main = async () => {
const targetExt = parseInt(target, 10); const targetExt = parseInt(target, 10);
if ((targetExt >= 700 && targetExt < 800) || targetExt === 0) { // Also block forwards to 0 (operator line) if ((targetExt >= 700 && targetExt < 800) || targetExt === 0) { // Also block forwards to 0 (operator line)
console.log(`Deleting forward ${key} to target ${target}`); console.log(`Deleting forward ${key} to target ${target}`);
await hook.send(`Fuckass with extension ${key.split('/')[1]} tried to forward to ${target}. Forward has been deleted.`); await hook.send(`Fuckass with extension ${key.split('/')[1]} tried to forward to ${target}. Type: ${key.split('/')[0]} Forward has been deleted.`);
const delCommand = `asterisk -x "database del ${key.replace('/', ' ')}"`; const delCommand = `asterisk -x "database del ${key.replace('/', ' ')}"`;
const { error, stdout, stderr } = await runAsterisk(delCommand); const { error, stdout, stderr } = await runAsterisk(delCommand);
if (error) { if (error) {