OxyTheMoron
New member
Greetings,
I'm trying to marry PircBot and KoLMafia with somewhat mixed success. Our clan hangs out on IRC, and I'd like to be able to have PircBot respond to commands in the channel (such as !buff Ode, for example) and then react to the calling player, as well as respond with error messages if something goes wrong.
I have called .initialize() and .attemptLogin() on the KoLmafiaCLI object (the DEFAULT_SHELL field for the latter) and logged in as the buffbot and things are OK. I can successfully buff the user in the channel. I can also send items to the caller this way.
However, if the bot is low on MP, or the user specifies an invalid buff, etc... how do I use the KoLmafiaCLI class/object (or any other item in the codebase) to determine that something has gone wrong and report back?
I can share code files (be forewarned, they are ugly...) if needed.
Thanks!
Oxy
I'm trying to marry PircBot and KoLMafia with somewhat mixed success. Our clan hangs out on IRC, and I'd like to be able to have PircBot respond to commands in the channel (such as !buff Ode, for example) and then react to the calling player, as well as respond with error messages if something goes wrong.
I have called .initialize() and .attemptLogin() on the KoLmafiaCLI object (the DEFAULT_SHELL field for the latter) and logged in as the buffbot and things are OK. I can successfully buff the user in the channel. I can also send items to the caller this way.
However, if the bot is low on MP, or the user specifies an invalid buff, etc... how do I use the KoLmafiaCLI class/object (or any other item in the codebase) to determine that something has gone wrong and report back?
I can share code files (be forewarned, they are ugly...) if needed.
Thanks!
Oxy