diff --git a/index.js b/index.js index a3244ff..69fb5d1 100644 --- a/index.js +++ b/index.js @@ -59,8 +59,14 @@ app.post('/', async function (req, res) { let msgs = req.body.data.split('\n'); + let msg = msgs[0]; + + if (msg.startsWith('!')) { + msg = `/${msg.slice(1)}`; + } + setTimeout(async function () { - sessions[id].stdin.write(msgs[0] + '\n'); + sessions[id].stdin.write(msg + '\n'); }, 100); });