>>30220386ntr allows you to inspect/change the memory of your 3ds over wifi, that is used to read pokemon names/requests as well as inject pokemon on the fly.
Input redirection is a .cia that runs in the background of the 3ds and allows you to send button input over wifi.
The bot just chains the two things together to look through the gts and trade the first ledyba that asks for a ditto