https://forums.mirc.com/ubbthreads.php/topics/254744/Re:_Command_for_making_bot_ret#Post254744
Check this post out.