Booya
collapse collapse

* User Info

 
 
Welcome, Guest. Please login or register.
Did you miss your activation email?

* Search


* Board Stats

  • stats Total Members: 1074
  • stats Total Posts: 18300
  • stats Total Topics: 2487
  • stats Total Categories: 7
  • stats Total Boards: 31
  • stats Most Online: 500

Author Topic: is there a way to do this??  (Read 2608 times)

0 Members and 1 Guest are viewing this topic.

Offline boogyman

  • BeBot Rookie
  • *
  • Posts: 10
  • Karma: +0/-0
is there a way to do this??
« on: May 16, 2007, 12:28:31 am »
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

Offline tonyuh

  • BeBot User
  • **
  • Posts: 48
  • Karma: +0/-0
Re: is there a way to do this??
« Reply #1 on: May 16, 2007, 01:44:08 am »
In Relay_GUILD.php

Code: [Select]
    /*
      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");
    }

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.

 

* Recent Posts

0.7.0 updates by bitnykk
[May 17, 2020, 04:22:04 pm]


Stats module by bitnykk
[April 16, 2020, 04:45:43 pm]


OnlineOrg by Hell
[February 28, 2020, 11:21:55 pm]


AO Bots - discord server by Kjellis1234
[January 23, 2020, 04:17:04 pm]


Offline AA training timer module by Kjellis1234
[August 29, 2019, 11:12:14 pm]

* Who's Online

  • Dot Guests: 115
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Forum Staff

admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2020, SimplePortal