BirkhoffLee@tg says to YSITD
我剛剛寫的是這個 new SandCastle( timeout: 30000 ).createScript( "exports.main = function() {#{message.text}}" ).on('exit', (err, output) -> console.log err console.log output ).on('timeout', (err, output) -> bot.sendMessage chat_id: message.chat.id, text: "Sorry #{message.from.first_name}! The script execution timed out. The limit of each execution time is 30 seconds." ).run()