Add type to message
This commit is contained in:
parent
c94b4bd41b
commit
077a8c4c59
2
index.js
2
index.js
|
|
@ -41,7 +41,7 @@ const main = async () => {
|
|||
const targetExt = parseInt(target, 10);
|
||||
if ((targetExt >= 700 && targetExt < 800) || targetExt === 0) { // Also block forwards to 0 (operator line)
|
||||
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 { error, stdout, stderr } = await runAsterisk(delCommand);
|
||||
if (error) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue