27.05.2013, 01:00
(
Последний раз редактировалось Disconett; 18.10.2013 в 03:29.
)
Fixed
mIRC scripting is really inconvenient. I'd recommend you to use any other language for IRC bot(s) - it's really easy to write one if you follow the IRC rfc. However, the problem in your code is that your echo channel most likely shows in-game chat like "Nickname: hello world" or "Nickname[id]: hello world". on *:TEXT: won't trigger if the text is somewhere in the middle of the line.
|
Your ON TEXT match simply is incorrect for the text you wish to match. And it is very poorly coded, in the way that; you can spam the command, thus spamming the bot, additionally, it doesn't check for specific names or permisisons. |
Scripting this server-side would just be so much more easier. |
Yes, it is a simple command. I was thinking it would pick it up if it saw it. I have seen many other server do this with mIRC bots, where a player can put a command in-game and the bot would pick it up.
I agree that scripting it server-side would be so much easier. The reason I don't want to do it is because I want everything to go through IRC as I said before. If I did it server-side, people in IRC would be able to use the commands and they wouldn't get logged. Could you provide an example of a command that will work? |