mirror of https://github.com/franjsco/lscanbot
edit user ref
This commit is contained in:
parent
acdc619067
commit
3de24e30dc
|
@ -59,4 +59,4 @@ In order to use this bot is required that the code is hosted on a GNU/Linux syst
|
||||||
GPLv3
|
GPLv3
|
||||||
|
|
||||||
---
|
---
|
||||||
Made with ❤️ by Francesco Esposito ([@frab1t](https://github.com/frab1t))
|
Made with ❤️ by Francesco Esposito ([@frsposito](https://github.com/frsposito))
|
10
package.json
10
package.json
|
@ -10,14 +10,14 @@
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/frab1t/lscanbot.git"
|
"url": "git+https://github.com/frsposito/lscanbot.git"
|
||||||
},
|
},
|
||||||
"author": "frab1t",
|
"author": "frsposito",
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/frab1t/lscanbot/issues"
|
"url": "https://github.com/frsposito/lscanbot/issues"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/frab1t/lscanbot#readme",
|
"homepage": "https://github.com/frsposito/lscanbot#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"arpscan": "^0.6.0",
|
"arpscan": "^0.6.0",
|
||||||
"bunyan": "^1.8.12",
|
"bunyan": "^1.8.12",
|
||||||
|
@ -30,4 +30,4 @@
|
||||||
"eslint-config-airbnb-base": "^13.1.0",
|
"eslint-config-airbnb-base": "^13.1.0",
|
||||||
"eslint-plugin-import": "^2.14.0"
|
"eslint-plugin-import": "^2.14.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
BIN
screenshot.png
BIN
screenshot.png
Binary file not shown.
Before Width: | Height: | Size: 476 KiB After Width: | Height: | Size: 527 KiB |
8
utils.js
8
utils.js
|
@ -7,13 +7,13 @@ function isAuthorizedUser(userId) {
|
||||||
function templateStart() {
|
function templateStart() {
|
||||||
const msg = `* Welcome to ${appConfig.app.name} 📱📡*\n
|
const msg = `* Welcome to ${appConfig.app.name} 📱📡*\n
|
||||||
A bot to find devices on your network. \n
|
A bot to find devices on your network. \n
|
||||||
Made with ❤️ by @frab1t `;
|
Made with ❤️ by @frsposito `;
|
||||||
return msg;
|
return msg;
|
||||||
}
|
}
|
||||||
|
|
||||||
function templateUnauthorizedUser() {
|
function templateUnauthorizedUser() {
|
||||||
const msg = `Unauthorized user. 🤖 \n
|
const msg = `Unauthorized user. 🤖 \n
|
||||||
Clone the repository https://github.com/frab1t/lscanbot
|
Clone the repository https://github.com/frsposito/lscanbot
|
||||||
and run the bot on your local network. 😎`;
|
and run the bot on your local network. 😎`;
|
||||||
return msg;
|
return msg;
|
||||||
}
|
}
|
||||||
|
@ -29,10 +29,10 @@ function templateHelp() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function templateDevicesList(data) {
|
function templateDevicesList(data) {
|
||||||
if(data.length === 0) {
|
if (data.length === 0) {
|
||||||
let devices = '📡 Devices Not Found. \n\n';
|
let devices = '📡 Devices Not Found. \n\n';
|
||||||
return devices;
|
return devices;
|
||||||
}
|
}
|
||||||
let devices = '📡 Devices available: \n\n';
|
let devices = '📡 Devices available: \n\n';
|
||||||
data.forEach((elem) => {
|
data.forEach((elem) => {
|
||||||
devices += `----- \n 📱 * ${elem.device} * \n 👉 _ ${elem.owner} _ \n \n `;
|
devices += `----- \n 📱 * ${elem.device} * \n 👉 _ ${elem.owner} _ \n \n `;
|
||||||
|
|
Loading…
Reference in New Issue