I'm basically trying to make my bot so that when someone types "!unbanplayer <name>", the bot will connect to an FTP server, find a file, edit it, save it, etc.
This is just an example to give you an idea of what I'm trying to do. This obviously doesn't work, and the variables don't exist, just note that it is an example!
So basically someone in IRC types "!unbanplayer <name>". Then the bot connects to an FTP server, finds a file in a directory named "<name>.txt", opens it, searches for an instance of "banned=1" and changes it to "banned=0" (this unbans a player).
Is this possible? I'm sorta new with scripting, but it sounds like I'd need to use some sockets, and I have no clue how to use them. Any support is appreciated.