you can't watch a YouTube video and assume you know everything about this... Mirai aims to lag and destroy the server, not really spam bots, for that there are more specific tools.it works by a botnet called Mirai that basically infects ARC devices and makes them controlled bots that usually launch DDoS attacks on websites and MC servers.