Got another chat bot process I am trying to learn. Okay, so I now have a javascript chat bot that connects to a websocket chat room and functions normally. I have gotten it to respond to commands
ex
if (text === "!ping" && (user === "user" || isStaff || isOwner || isSub)) {
channel.sendMessage("pong");
}
What I am trying to do now is take a command such as "!up" and translate that into the bot pressing the "up" arrow on the keyboard inside of another program.
I am not sure of how to get started in this. Every time I try to google it, all I get is how to read keyboard events when someone enters a key into a text box. I am new to javascript so I am unaware of there being an exact name for what it is that I am trying to do. If someone could at least point me into the right direction as to what it is I need to look up in order to learn to do it, I would be very grateful :)