sysinfo lol
This commit is contained in:
parent
04fd0ae17e
commit
bdce32fcfc
@ -15,6 +15,7 @@ import quotes from "./quotes";
|
|||||||
import rape from "./rape";
|
import rape from "./rape";
|
||||||
import sandbox from "./sandbox";
|
import sandbox from "./sandbox";
|
||||||
import soundcloud from "./soundcloud";
|
import soundcloud from "./soundcloud";
|
||||||
|
import sysinfo from "./sysinfo";
|
||||||
import timer from "./timer";
|
import timer from "./timer";
|
||||||
import urban from "./urban";
|
import urban from "./urban";
|
||||||
import nxy from "./useless_nxy";
|
import nxy from "./useless_nxy";
|
||||||
@ -25,5 +26,5 @@ export default [
|
|||||||
cfg, chatbot, coins, cookie, core, debug,
|
cfg, chatbot, coins, cookie, core, debug,
|
||||||
drugs, help, irpg, kernel, lastfm, mcmaniac,
|
drugs, help, irpg, kernel, lastfm, mcmaniac,
|
||||||
pr0gag, quotes, rape, sandbox, soundcloud,
|
pr0gag, quotes, rape, sandbox, soundcloud,
|
||||||
timer, urban, nxy, uwe, wttr
|
sysinfo, timer, urban, nxy, uwe, wttr
|
||||||
];
|
];
|
||||||
|
13
src/inc/trigger/sysinfo.mjs
Normal file
13
src/inc/trigger/sysinfo.mjs
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
import cp from "child_process";
|
||||||
|
|
||||||
|
export default bot => {
|
||||||
|
bot._trigger.set("sysinfo", new bot.trigger({
|
||||||
|
call: /^(\.|\/)sysinfo/i,
|
||||||
|
set: "uwe",
|
||||||
|
f: e => {
|
||||||
|
cp.exec("inxi", (err, stdout, stderr) => {
|
||||||
|
e.reply(stdout);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}));
|
||||||
|
};
|
Loading…
Reference in New Issue
Block a user