Spaces:
Paused
Paused
Update bot.js
Browse files
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.
|
| 106 |
-
}else{
|
| 107 |
-
sshConfig.
|
| 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.`);
|