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: IGN Relay  (Read 9367 times)

0 Members and 1 Guest are viewing this topic.

Offline neongen

  • BeBot User
  • **
  • Posts: 64
  • Karma: +0/-0
Re: IGN Relay
« Reply #15 on: December 05, 2006, 12:17:35 am »
try and look at this http://bebot.link/index.php/topic,153.0.html nebhyper

Offline nebhyper

  • BeBot User
  • **
  • Posts: 62
  • Karma: +0/-0
Re: IGN Relay
« Reply #16 on: December 06, 2006, 06:24:13 am »
Everytime I do !ignrelay on   it spams all the bots I'm connecting to with:

[IGN Gridnet] authorized connection established with: United Notum Federation


Anyway to avoid that?  I mean an IGN bot booting up auto connects and does not cause that spam.


Also, speaking of booting up, anyway to automate !ignrelay on when the bot starts?

thanks
Siocuffin (Squad Commander of United Notum Federation)
alts: Nebhyper, Nebalmighty.

Offline nebhyper

  • BeBot User
  • **
  • Posts: 62
  • Karma: +0/-0
Re: IGN Relay
« Reply #17 on: December 07, 2006, 10:27:49 pm »
I'm trying to stop my bot from spamming all the IGN bots it's connected to with the ignsend on comamnd.

Since those bots are set up to accept my bots name anyway, I start digging thru the code to see if I could stop this as ignsend on is not needed everytime the bot restarts.

So, I added a function to the IGN_Relay_GUILD.php and a call to it from bot.php on start up. 

This function merely sets the state of each IGN bot in my database to "Online" and sets the prefix to be listened to for relaying. 

Below is what I added.

IGN_Relay_GUILD.php
Code: [Select]
function relay_auto()
{
// Starts listening to guild chat
$this -> bot -> log("IGNRELAY", "CONNECTION", "Connecting to bots");
        $this -> bot -> commands["gmsg"][$this -> bot -> guildname]["ignrelay"] = &$this;
$this -> bot -> log("IGNRELAY", "CONNECTION", "Listening to prefix");

// List all bots as connected
$rows = $this -> bot -> db -> select("SELECT botname, prefix FROM relaybots WHERE protocol = \"IGN\"");
foreach($rows as $row)
{
$botname = ucfirst(strtolower($row[0]));
$this -> prefix[$botname] = $row[1];
$this -> state[$botname] = "online";
$this -> bot -> log("IGNRELAY", "CONNECTION", "Connected to $botname.");

}
}

added to bot.php at the end of function connect()
Code: [Select]
$this -> commands["relay"]["IGN"] -> relay_auto ();

I can not test this right now, and before I try to test it can someone look it over and see if this will work?

Goal is to set each bot I connect to, to "Online" state and to get the bot to listen to the prefix without spamming the request to connect (ignsend on ) command to each bot.  This is based on the premise that each bot is already setup and expecting to listen for my bot. (If that makes sense.)

Thanks in advance
« Last Edit: December 08, 2006, 08:04:55 am by nebhyper »
Siocuffin (Squad Commander of United Notum Federation)
alts: Nebhyper, Nebalmighty.

Offline Dream

  • BeBot Rookie
  • *
  • Posts: 6
  • Karma: +0/-0
Re: IGN Relay
« Reply #18 on: January 01, 2007, 05:50:19 pm »
Well after much modification and tweaking of the Bot.php file, I now have what appears to be a functional version of the guild relay.

Well, functional in that it will relay fine, however the only problem I'm having is with IGN bots.

They're not sending "transmit xxxxxxx" in tells.

I put tracers in the IGN code, and its sending via its relay_packet($packets) function ... not via its send_packets($packets) function.

it send the messages out, as other IGN bots pick them up ... but there's no sign of a tell being sent out for BeBot code to pick up!

Any help on where I can catch hold of the sent out IGN messages would be greatly appreciated!

Peace,
Dream.

 

* 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: 509
  • 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