Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

Commit

Permalink
Merge pull request #74 from mrepol742/master
Browse files Browse the repository at this point in the history
Initial Commit
  • Loading branch information
mrepol742 authored Feb 8, 2024
2 parents ddb2a16 + 836dea9 commit 18278ec
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2865,7 +2865,6 @@ async function ai(api, event) {
data.shift();
let aa = data.join(" ");
exec("traceroute " + aa, function (err, stdout, stderr) {
if (err) return sendMessage(api, event, handleError({ stacktrace: err, cuid: api.getCurrentUserID(), e: event }));
let com = stderr.replace(/\s+/g, "");
if (com == "") {
traceroute["/" + aa] = stdout;
Expand Down Expand Up @@ -3981,17 +3980,14 @@ async function ai(api, event) {
}
} else if (testCommand(api, query, "sync", event.senderID, "root", true)) {
exec("git pull", function (err, stdout, stderr) {
if (err) return sendMessage(api, event, handleError({ stacktrace: err, cuid: api.getCurrentUserID(), e: event }));
sendMessage(api, event, stdout + "\n\n" + stderr);
});
} else if (testCommand(api, query, "push", event.senderID, "root", true)) {
exec('git add . && git commit -m "Initial Commit" && git push origin master', function (err, stdout, stderr) {
if (err) return sendMessage(api, event, handleError({ stacktrace: err, cuid: api.getCurrentUserID(), e: event }));
sendMessage(api, event, stdout + "\n\n" + stderr);
});
} else if (testCommand(api, query, "push--force", event.senderID, "root", true)) {
exec('git add . && git commit -m "Initial Commit" && git push origin master --force', function (err, stdout, stderr) {
if (err) return sendMessage(api, event, handleError({ stacktrace: err, cuid: api.getCurrentUserID(), e: event }));
sendMessage(api, event, stdout + "\n\n" + stderr);
});
} else if (testCommand(api, query, "unblock--all", event.senderID, "root", true)) {
Expand All @@ -4015,7 +4011,6 @@ async function ai(api, event) {
} else {
data.shift();
exec("git " + data.join(" "), function (err, stdout, stderr) {
if (err) return sendMessage(api, event, handleError({ stacktrace: err, cuid: api.getCurrentUserID(), e: event }));
let str = stdout + "\n\n" + stderr;
let com = str.replaceAll(/\s+/g, "");
if (com == "") {
Expand Down Expand Up @@ -4087,7 +4082,6 @@ async function ai(api, event) {
data.shift();
let sff = data.join(" ");
exec(sff, function (err, stdout, stderr) {
if (err) return sendMessage(api, event, handleError({ stacktrace: err, cuid: api.getCurrentUserID(), e: event }));
let str = stdout + "\n\n" + stderr;
let com = str.replaceAll(/\s+/g, "");
if (com == "") {
Expand Down

0 comments on commit 18278ec

Please sign in to comment.