collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18363
  • stats Total Topics: 2500
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: relay command  (Read 5842 times)

0 Members and 1 Guest are viewing this topic.

Offline skeezix

  • BeBot User
  • **
  • Posts: 21
  • Karma: +0/-0
relay command
« on: November 29, 2005, 06:18:54 pm »
This works great, but is there a way to have it remember settings (such as automatically relay upon restart), and re-send requests to people who were previously in a guest channel?

Thanks!

Offline Xenixa

  • Contributor
  • *******
  • Posts: 307
  • Karma: +0/-0
relay command
« Reply #1 on: November 29, 2005, 07:38:21 pm »
Not currently ... nope.
It's on the Todo list though :)
<<< Hack's in Zend Studio

All my Custom Bebot files may be Found Here <-clicky

Offline skeezix

  • BeBot User
  • **
  • Posts: 21
  • Karma: +0/-0
relay command
« Reply #2 on: November 30, 2005, 01:14:37 am »
figured I'd ask ;)

Thanks!

Offline Xenixa

  • Contributor
  • *******
  • Posts: 307
  • Karma: +0/-0
relay command
« Reply #3 on: November 30, 2005, 02:30:59 am »
You know what?.... I take that back. The newer Bebot preview v0.3.0 has a way to turn the relay back on after a restart.
See first post here: http://bebot.fieses.net/viewtopic.php?t=147
<<< Hack's in Zend Studio

All my Custom Bebot files may be Found Here <-clicky

Offline skeezix

  • BeBot User
  • **
  • Posts: 21
  • Karma: +0/-0
relay command
« Reply #4 on: November 30, 2005, 04:50:08 pm »
wasnt' sure if that was a relay between guilds, or a relay between guest channel and current guild that the bot resides.  or both. :)

$guild_relay_target = False; // False if you dont want a relay bot, set to target bots name otherwise.

I can probably just add a similar line anyway to the bot somewhere to enforce it but thanks for replies at least :)

Offline Dracutza

  • BeBot Apprentice
  • ***
  • Posts: 126
  • Karma: +0/-0
Re: relay command
« Reply #5 on: November 17, 2006, 02:36:32 am »
and what would this fix have been?

running ver 3 of bebot, and in setting up out guestchan, i find that after a restart, I need to !relay again to enable the guestchan.

I tried setting "$guild_relay_target = ""; // False if you dont want a relay bot, set to target bots name otherwise." to the name of our bot. But that didn't seem to do it.

Offline kuznechik

  • Contributor
  • *******
  • Posts: 60
  • Karma: +0/-0
Re: relay command
« Reply #6 on: November 17, 2006, 10:44:43 am »
add switching relay on on startup.
Code: [Select]
$commands["connect"][] = &$relay;

function connect()
{
$this -> bot -> commands["gmsg"][$this -> bot -> guildname]["relay"] = &$this -> bot -> commands["pgmsg"]["guest"];
$this -> bot -> commands["privgroup"]["relay"] = &$this -> bot -> commands["pgmsg"]["guest"];
}

Well, guild_relay is completely diff thing. I ended up enabling it on startup same way and adding possibility to relay privgroup to other bot.
Still dunno how to relay blobs, really annoying to not be able to see logons of people who have alts blob in logon message (=almost all).
« Last Edit: November 17, 2006, 10:47:01 am by kuznechik »
Kuznechik, proud bot admin of Disciples of Omni-Tek, Rimor.

Offline jjones666

  • Contributor
  • *******
  • Posts: 353
  • Karma: +0/-0
Re: relay command
« Reply #7 on: November 17, 2006, 11:40:17 am »
Another idea is having a notification/welcome message when people join.  As we do this anyway showing news and online people, I simply added the following:

Code: [Select]
function pgjoin($name)
{
$botname = $this -> bot -> botname;
// A generic welcome message example
$this -> bot -> send_tell($name, "Welcome to " . $this -> bot -> guildname . ", " . $name);
// Lets show the online list
$this -> bot -> commands["tell"]["online"] -> tell($name, $this -> bot -> commpre . "online");
if (isset($this -> bot -> commands["privgroup"]["relay"]))
$this -> bot -> send_tell($name, "Guest chat relay is <font color=#ffff00>active.</font>");
else
$this -> bot -> send_tell($name, "Guest chat relay is <font color=#ffff00>not active.</font>");
}

So at least people know whether to turn it on when joining guest chat.

Offline Dracutza

  • BeBot Apprentice
  • ***
  • Posts: 126
  • Karma: +0/-0
Re: relay command
« Reply #8 on: November 25, 2006, 10:46:03 am »
add switching relay on on startup.
Code: [Select]
$commands["connect"][] = &$relay;

function connect()
{
$this -> bot -> commands["gmsg"][$this -> bot -> guildname]["relay"] = &$this -> bot -> commands["pgmsg"]["guest"];
$this -> bot -> commands["privgroup"]["relay"] = &$this -> bot -> commands["pgmsg"]["guest"];
}

Well, guild_relay is completely diff thing. I ended up enabling it on startup same way and adding possibility to relay privgroup to other bot.
Still dunno how to relay blobs, really annoying to not be able to see logons of people who have alts blob in logon message (=almost all).

I'm sorry, but where should i try adding this to?  I can deal without login messages/announcements, but it would be nice to not have to worry about turning relay on after every restart.

ironically, i see that the release notes say somehting about relay will now not default to ON after a restart

wtb line of code for relay in 0.3.0  ;)

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: relay command
« Reply #9 on: November 25, 2006, 11:57:46 am »
There are two relays in the bot, not to be confused with eachother.

One is the bot <-> bot relay which is what in 0.3 is possible to set to reactivate automatically, and the other is the pgroup <-> gc relay which has not yet received this treatment.

The relay plugin is high on my priority however since it's currently utterly broken in current SVN.
BeBot Founder and Fixer Kingpin

Offline Dracutza

  • BeBot Apprentice
  • ***
  • Posts: 126
  • Karma: +0/-0
Re: relay command
« Reply #10 on: November 27, 2006, 04:33:43 pm »
and the other is the pgroup <-> gc relay which has not yet received this treatment.

The pgroup <-> gc relay is the one i am speaking of.

Is it a known fact that this relay command is allowed to be used by people on the guest list?  It was brought to my attention by a guest that they can tell the bot !relay to turn pgroup<->gc on and off.  Per the configuration used with the Rights Management inculded in the 0.3.3, [G] is NOT given permission to this command in any way.

To a point i am happy about this flaw/bug/misconfiguation (as they can enable the guest chan if they want in the event that it's not on,) but to another point i am not. 

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: relay command
« Reply #11 on: November 27, 2006, 05:10:01 pm »
Sounds very odd. I haven't encountered any such issues with permissions to date.

Have you checked guest permissions for all 4 possible channels? (although guild chat is moot, and tell2 __should__ be irrelevant)

I'll be sure to have a look when i work on the relay as im as annoyed as you are with the lack of functionality.
BeBot Founder and Fixer Kingpin

Offline Dracutza

  • BeBot Apprentice
  • ***
  • Posts: 126
  • Karma: +0/-0
Re: relay command
« Reply #12 on: November 27, 2006, 05:30:03 pm »

Have you checked guest permissions for all 4 possible channels? (although guild chat is moot, and tell2 __should__ be irrelevant)

Yes i have.  I even went as far as granting Guest permission, then taking it away, in the event that something needed to be reset for whatever reason.

tell2 does NOT work, as expected.  An un-org'ed, non guest test toon got the response "I only listed to members" when i tried /tell bot !relay.

un-org'ed guest members however can turn on and off, where relay permission are only allowed for Admin and SuperAdmin.

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: relay command
« Reply #13 on: November 27, 2006, 06:11:11 pm »
Actually, try checking your commands table in the database.

Depending which version you are running it should only list either long names or short names.

I might have forgotten to add an upgrade script when the change was done from long names to short names.

Also, as for Tell2 (which will be removed eventually) it requires that the module actually hook into tell2 specifically, and not all modules do this as they have no need for non members to be able to access the bot.
BeBot Founder and Fixer Kingpin

Offline Parfet

  • BeBot User
  • **
  • Posts: 33
  • Karma: +0/-0
Re: relay command
« Reply #14 on: January 20, 2007, 10:13:31 am »
add switching relay on on startup.
Code: [Select]
$commands["connect"][] = &$relay;

function connect()
{
$this -> bot -> commands["gmsg"][$this -> bot -> guildname]["relay"] = &$this -> bot -> commands["pgmsg"]["guest"];
$this -> bot -> commands["privgroup"]["relay"] = &$this -> bot -> commands["pgmsg"]["guest"];
}

Well, guild_relay is completely diff thing. I ended up enabling it on startup same way and adding possibility to relay privgroup to other bot.
Still dunno how to relay blobs, really annoying to not be able to see logons of people who have alts blob in logon message (=almost all).

I tried adding this to my guildbot's 'Relay_GUILD.php' under the section for commands, (only logical place), and had to comment it out... the bot was immediately dieing due to 'Fatal error: Call to undefined method Relay::connect() in C:\pcbot\Bot.php on line 190'... could i get a better explanation? perhaps a full posting of the correct file? thank you for your time.

Edit: nevermind, i got a newer Relay_GUILD.php out of the SVN, and i see it works a bit different... just have to change the check where noted to 1 {on}
« Last Edit: January 22, 2007, 12:51:31 pm by Parfet »

 

* Recent Posts
[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm]


0.8.x updates for AoC by bitnykk
[January 30, 2024, 11:16:08 pm]


0.8.x updates for AO by bitnykk
[January 30, 2024, 11:15:37 pm]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am]


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm]

* Who's Online
  • Dot Guests: 647
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal