mirror of
				https://github.com/franjsco/trackmyd-bot
				synced 2025-06-05 22:19:29 +02:00 
			
		
		
		
	add basic template
This commit is contained in:
		
							
								
								
									
										37
									
								
								utils.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								utils.js
									
									
									
									
									
										Normal file
									
								
							@@ -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;
 | 
			
		||||
		Reference in New Issue
	
	Block a user