As was mentioned before, this is possible, however it is unbelievably complicated. It would likely involve neural net structures and fuzzy logic, and that is just for starters. The mIRC scripting language can undoubtedly perform the necessary logic, just as any other standard language can.. that is, if you can figure out how to make the code properly. You could start by researching AI as a general topic and see if you can comprehend it enough to create binary logic that will act as AI.

Good Luck.

-genius_at_work