SlnDmry commited on
Commit
cfcb1c1
·
verified ·
1 Parent(s): f1b481c

Update bot.js

Browse files
Files changed (1) hide show
  1. bot.js +5 -3
bot.js CHANGED
@@ -101,10 +101,12 @@ async function createBot() {
101
  if (myConfig.username && myConfig.username !== "empty") {
102
  sshConfig.username = myConfig.username;
103
  }
 
 
104
  if (myConfig.pass && myConfig.pass !== "empty") {
105
- sshConfig.pass = myConfig.pass;
106
- }else{
107
- sshConfig.pass = config.utils["auto-auth"].password;
108
  }
109
  } else {
110
  logger.warn(`[GitHub Config] Listede '${currentBotUsername}' bulunamadı. Sabit/Yedek SSH kullanılacak.`);
 
101
  if (myConfig.username && myConfig.username !== "empty") {
102
  sshConfig.username = myConfig.username;
103
  }
104
+
105
+ // SSH Şifre ataması (ssh2 paketi 'password' anahtarını kabul eder)
106
  if (myConfig.pass && myConfig.pass !== "empty") {
107
+ sshConfig.password = myConfig.pass;
108
+ } else {
109
+ sshConfig.password = config.utils["auto-auth"].password;
110
  }
111
  } else {
112
  logger.warn(`[GitHub Config] Listede '${currentBotUsername}' bulunamadı. Sabit/Yedek SSH kullanılacak.`);