+ 1

How do I make a slash command??

Sorry,I mean "How do I execute system command?"

5th Mar 2021, 3:55 AM
Him8=)
Him8=) - avatar
3 Respuestas
+ 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); });
7th Mar 2021, 9:50 AM
visph
visph - avatar
0
what did you call 'slash command' exactly?
5th Mar 2021, 4:47 AM
visph
visph - avatar
- 1
nvm just /command or /tall,etc.
7th Mar 2021, 5:07 AM
Him8=)
Him8=) - avatar