So I'm trying to create a fairly simple bot, and I just realized, rather than having to rewrite all the login code that mafia has in my choice of language, and then all the kmail parsing and sending code that zlib provides, I could just use mafia and zlib, and ash script it. Except then I realized, ash scripting is unlikely to have any way of generating md5 hashes*, which, there's no reason it should have that ability, but I don't know that mafia has any way of running code outside of itself, either? I would be happy either for a way to run native (Java?) code in a block (like the way you can write c++ code and drop into assembly), or a way to run an external executable that I compiled myself, passing in an argument, then waiting for it to return. (That one would be nicer, and probably easier, too.)
I bet the answer is a simple no, but I thought I would check, cause now I'm curious.
Relatedly, I know there's a command to read a url - is there any equivalent command to just read a text file on your hard drive? (As a simple string, that is, rather than needing to be in a particular map format.)
* if I'm wrong about that, I'd be happy to hear that, too.
I bet the answer is a simple no, but I thought I would check, cause now I'm curious.
Relatedly, I know there's a command to read a url - is there any equivalent command to just read a text file on your hard drive? (As a simple string, that is, rather than needing to be in a particular map format.)
* if I'm wrong about that, I'd be happy to hear that, too.