Archive > BeBot 0.2 support

is there a way to do this??

(1/1)

boogyman:
I was wondering if there was a way to get the bot to show the commands used by guildies to guests and vice versa?  Or is there a global fix that would always allow all chats/commands/responses to be seen by both channels?

I am currently running a 0.2.10 and a 0.2.11 bot (the later for testing) on a windows XP Pro box

any help would be great!

~boogy

tonyuh:
In Relay_GUILD.php


--- Code: ---    /*
      This gets called on a msg in the group
    */
    function gmsg($name, $group, $msg)
    {
    if (strtolower($name) != strtolower($this -> bot -> botname))
$this -> bot -> send_pgroup($highlight ."$name:</font><font color=#0FF20B> $msg");
    }

    /*
      This gets called on a msg in the privgroup without a command
    */
    function privgroup($name, $msg)
    {
    if (strtolower($name) != strtolower($this -> bot -> botname))
$this -> bot -> send_gc($highlight ."[Guest] $name:</font><font color=#0FF20B> $msg");
    }
--- End code ---

If you remove the if statement from both functions the bot will repeat itself, but i think it will do an infite amount of time (this is BAD). So a work around is to use send_pgroup and send_gc in the function that you want to echo in both channels.

Navigation

[0] Message Index

Go to full version