
ts-node, use tsc-watch instead.ts-node because it was never meant to be used for bots.ts-node is designed for REPL purposes. That's short for Read Eval Print Loop.eval() statement, print the result, and loop.watch flag of tsc (tsc --watch) and run node dist/index.js to run your bot, then cancel that process and restart it when you have changes that require restarting.tsc --watch and another in which you run the bot.tsc-watch.