PM /=/ console structure?

All about the macro plugin can be found in this forum. This forum is intended for the macro plugin only.

Moderator: Moderators

VashTheStampede
Plain Yogurt
Plain Yogurt
Posts: 68
Joined: 11 Jun 2011, 01:47
Noob?: No

PM /=/ console structure?

#1 Post by VashTheStampede »

So, I've made two different versions of this to see what happens. It looks from the docs that pms and console both use regular expression checks, so it seems to me I should be able to get it to work by swapping.

I've used console extensively, but never tried anything other than *. for pm. Now that I have, it fails to work.

Code: Select all

automacro pm_bot {
pm /bot/i
timeout 100
call {
}
}

Code: Select all

automacro pm_bot2 {
console /bot/i
timeout 100
call {
}
}
If I pm the word bot, the console version sees it, the pm version fails to trigger. And that is even when I have only the pm version in the macros.txt file(as it was originally).
myteam
Noob
Noob
Posts: 8
Joined: 18 Feb 2011, 06:35
Noob?: No

Re: PM /=/ console structure?

#2 Post by myteam »

Maybe you need put a 'coma' to end the pm line.

Tried this and working fine.

Code: Select all

automacro pm_bot {
    pm /bot/i,
    timeout 100
call {
    do c Yes I can here you $.lastpm
}
}