Advertisement
Skreffnet

mIRC Bots - Crea arbol de carpetas y archivos básicos de documentación.

May 24th, 2020 (edited)
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 1.93 KB | None | 0 0
  1. /**
  2. *
  3. *  Crea los directorios necesarios
  4. *
  5. * @cons CREATESERVICE
  6. *
  7. * @param service devuelve el nombre del servicio a crear.
  8. *
  9. */
  10. alias CREATESERVICE {
  11.   if (!$1) {
  12.     error No ha especificado el nombre de ningún servicio.
  13.   }
  14.   alias SERVICE_NAME { return $1 }
  15.   mkdir $+($MAIN_FOLDER,\Bots\ $+ $SERVICE_NAME $+ \)
  16.   copy -o $+(MAIN_FOLDER,\src\templates\mIRC) $+($MAIN_FOLDER,Bots\ $+ $SERVICE_NAME $+ \)
  17.   if ($exists($+($MAIN_FOLDER,\Bots\ $+ SERVICE_NAME $+ \mirc.exe) == $false) {
  18.     error No existe el archivo mIRC.exe en $qt($+($MAIN_FOLDER,\Bots\ $+ $SERVICE_NAME $+ \)) Compruebe que la ruta es correcta.
  19.   }
  20.   mkdir $+($MAIN_FOLDER,\Data\ $+ $SERVICE_NAME $+ \)
  21.   mkdir $+($MAIN_FOLDER,\src\ $+ $SERVICE_NAME $+ \)
  22.   mkdir $+($MAIN_FOLDER,\src\ $+ $SERVICE_NAME $+ \modules)
  23.   mkdir $+($MAIN_FOLDER,\src\ $+ $SERVICE_NAME $+ \public)
  24.   mkdir $+($MAIN_FOLDER,\src\ $+ $SERVICE_NAME $+ \Documentacion\)
  25.  
  26.   copy -o $+($MAIN_FOLDER,\src\templates\CHANGELOG.md) $+($MAIN_FOLDER,\src\ $+ $SERVICE_NAME $+ \CHANGELOG.md)
  27.   copy -o $+($MAIN_FOLDER,\src\templates\README.md) $+($MAIN_FOLDER,\src\ $+ $SERVICE_NAME $+ \README.md)
  28.   ;copy -o $+($MAIN_FOLDER,\src\templates\loader.mRC) $+($MAIN_FOLDER,\src\ $+ $SERVICE_NAME $+ \loader.mRC)
  29.   copy -o $+($MAIN_FOLDER,\src\templates\tools.mRC) $+($MAIN_FOLDER,\src\ $+ $SERVICE_NAME $+ \tools.mRC)
  30.   copy -o $+($MAIN_FOLDER,\src\templates\definitions.mRC) $+($MAIN_FOLDER,\src\ $+ $SERVICE_NAME $+ \definitions.mRC)
  31.   echo -s Plantilla copiada correctamente.
  32.   echo -s 
  33.   echo -s Estructura para $SERVICE_NAME
  34.   echo -s 
  35.   echo -s $+($MAIN_FOLDER,\Bots\ $+ $SERVICE_NAME $+ \)
  36.   echo -s $+($MAIN_FOLDER,\Data\ $+ $SERVICE_NAME $+ \)
  37.   echo -s $+($MAIN_FOLDER,\src\ $+ $SERVICE_NAME $+ \)
  38.   echo -s $+($MAIN_FOLDER,\src\ $+ $SERVICE_NAME $+ \modules\)
  39.   echo -s $+($MAIN_FOLDER,\src\ $+ $SERVICE_NAME $+ \public\)
  40.   echo -s $+($MAIN_FOLDER,\src\ $+ $SERVICE_NAME $+ \Documentacion\)
  41.  
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement