From 1980dffacaed1a328ab8e82739dfa2abef538b7e Mon Sep 17 00:00:00 2001 From: Francesco Esposito <33671357+frab1t@users.noreply.github.com> Date: Tue, 19 Feb 2019 14:47:31 +0100 Subject: [PATCH] add basic template --- utils.js | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 utils.js diff --git a/utils.js b/utils.js new file mode 100644 index 0000000..40f010f --- /dev/null +++ b/utils.js @@ -0,0 +1,37 @@ +const config = require('./config'); + +// template +function templateStart() { + const msg = `* Welcome to ${config.app.name} 📱📡*\n +A bot to track your devices with GPS. + +Please, read the README on +https://github.com/frab1t/trackmyd-bot +to configure the bot. + +Made with ❤️ by @frab1t`; + + return msg; +} + +function templateHelp() { + const msg = `📃 * ${config.app.name} commands*: \n + /help - view commands. + /position - view device's position. + /list - view device available. + /add - add new device. + /remove - remove device.`; + + return msg; +} + +function templateUnauthorizedUser() { + const msg = `Unauthorized user. 🤖 \n +Clone the repository https://github.com/frab1t/lscanbot +and run the bot on your local network. 😎`; + return msg; +} + +module.exports.templateStart = templateStart; +module.exports.templateHelp = templateHelp; +module.exports.templateUnauthorizedUser = templateUnauthorizedUser;