From 4eced4bc9304a021c6b4e587a25aef6c77966719 Mon Sep 17 00:00:00 2001 From: ineedbots Date: Fri, 18 Jun 2021 00:34:10 -0600 Subject: [PATCH] Set title --- deploy.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/deploy.js b/deploy.js index 920fc27..3187a75 100644 --- a/deploy.js +++ b/deploy.js @@ -6,6 +6,15 @@ const repo_name = 'iw4x_bot_warfare' const repo_url = `https://github.com/ineedbots/${repo_name}` const deploy_check_rate = 60000 +function setTerminalTitle(title) +{ + process.stdout.write( + String.fromCharCode(27) + "]0;" + title + String.fromCharCode(7) + ); +} + +setTerminalTitle('IW4x GitHub Deployer') + async function doDeploy() { try { const { stdout, stderr } = await exec(`cd ${repo_name} && git fetch`)