Page 1 of 1

Generic command event

Posted: Thu Jun 10, 2004 2:59 pm
by Maestro
I am trying to make a command for my bot that just has them do whatever command I tell them. I made an event, and it's triggering, but MQ2 won't parse the command.

Code: Select all

#event Generic "#*#I need you to #1#"

Sub Event_Generic(ignore,command)
${command}
/return

Posted: Thu Jun 10, 2004 3:26 pm
by Oid
#chat group/tell

Posted: Thu Jun 10, 2004 3:49 pm
by Maestro
Doesn't that just change what channels the event looks in? #chat isn't in either manual I have, except as part of the description of #event. (.chm and the online one)

The event triggers fine, but if doesn't like me having that ${Generic} all on its own.

Posted: Thu Jun 10, 2004 4:17 pm
by Oid
hmm cant recall if there is a /docommand

Re: Generic command event

Posted: Thu Jun 10, 2004 7:13 pm
by Marze

Code: Select all

#Event Generic "#1#I need you to #2#"

Sub Main
  :Loop
   /doevents
   /goto :Loop
   /return

Sub Event_Generic(string Ignore, string Command)
   /docommand ${Command}
  /return