+ 1
How do I make a slash command??
Sorry,I mean "How do I execute system command?"
3 ответов
+ 2
oh, you're meaning was "how do I execute system command"...
it's only possible on server side js (nodejs), not in browsers, for security reasons ^^
var spawn = require('child_process').spawn;
var ls = spawn('ls', ['-l']);
ls.stdout.on('data', function (data) {
console.log(data);
});
0
what did you call 'slash command' exactly?
- 1
nvm
just /command or /tall,etc.