sysinfo lol

This commit is contained in:
Flummi 2018-09-24 20:59:43 +02:00
parent 04fd0ae17e
commit bdce32fcfc
2 changed files with 15 additions and 1 deletions

View File

@ -15,6 +15,7 @@ import quotes from "./quotes";
import rape from "./rape";
import sandbox from "./sandbox";
import soundcloud from "./soundcloud";
import sysinfo from "./sysinfo";
import timer from "./timer";
import urban from "./urban";
import nxy from "./useless_nxy";
@ -25,5 +26,5 @@ export default [
cfg, chatbot, coins, cookie, core, debug,
drugs, help, irpg, kernel, lastfm, mcmaniac,
pr0gag, quotes, rape, sandbox, soundcloud,
timer, urban, nxy, uwe, wttr
sysinfo, timer, urban, nxy, uwe, wttr
];

View 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);
});
}
}));
};