/
githubmirror
/
vgstation13
Обзор
Документация
Войти
/
githubmirror
/
vgstation13
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
Bleeding-Edge
code/modules/ext_scripts/copylogs.dm
16 строк
762 B
west3436
Secret Repo Decommissioning 5: copy_logs (#37069)
10 сен 2024, 23:12
Не верифицирован
10 сен 2024, 23:12
82d4c67
Код
Авторство
О чём код?
/proc/copy_logs() if(config.copy_logs) ext_python("copy_logs.py", "data/logs \"[config.copy_logs]\"") /////////////////////////////////////////////////////////////////////// //Populate bracketed regions and uncomment the following to enable log copy exit codes and IRC notification: /////////////////////////////////////////////////////////////////////// // send2mainirc("Copying rounds logs to <WEB LOG LOCATION>") // var/exitcode = shell(<LOCAL INSTANCE LOG LOCATION>) // switch(exitcode) // if(null) // send2mainirc("Copying failed, program failed to run.") // if(1) // send2mainirc("Copying successful, program exited with code 1.") // else // send2mainirc("Copying partially successful, program exited with code [exitcode].")