Archive > 0.3.x Custom/Unofficial Modules

Whompa Module

<< < (4/4)

Alreadythere:
replace all $this -> bot -> compre with $this -> bot -> commpre I think

fija:
Thanks,

I'll try it when I get home. I just noticed that in the post you made the other day that there was a difference between the two commpre statements. I missed that one  :-[

I'll post back if I have probs.

Fija

pod13:
OOPS!  :-[

I've fixed the commpre mistake in the uploaded ZIP file.

fija:
ok, I know its been a while since I last posted on this. There is a slight problem I came across with this module and that is that when you use the command in the pgroup the bot only returns your name. Not an org bot so I can clarify if this fix will work for that.


--- Quote ---/*
   This gets called on a msg in the privgroup with the command
   */
   function pgmsg($name, $msg)
   {
        $this->bot->send_pgroup($name,$this->do_whompa_stuff($name, $msg));
--- End quote ---

I changed to this

--- Quote ---/*
   This gets called on a msg in the privgroup with the command
   */
   function pgmsg($name, $msg)
   {
        $this->bot->send_pgroup($this->do_whompa_stuff($name, $msg));
   }

--- End quote ---

Note that I have removed the $name before $this->do_whompa_stuff($name, $msg));

btw this also works great in v4 of bebot ;)

Hope this helps someone.

Fija

Metaphblade:
in 4.0 if you do a !whompa cities  it will only display a popup with omni/neut/clan on the page, no citites next to them.

Navigation

[0] Message Index

[*] Previous page

Go to full version