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: IRC chat relay  (Read 9407 times)

0 Members and 1 Guest are viewing this topic.

Offline Plac3bo

  • BeBot User
  • **
  • Posts: 50
  • Karma: +0/-0
IRC chat relay
« Reply #30 on: September 14, 2005, 10:44:43 am »
Im like the guy that never stops posting :)
1 "bug" .. the irc part spamms announcements, like this

Announce: IRRK News Flash: [link]Unicorns In Charge - Reaction[/link]

that shouldnt be there :)

Offline Blondengy

  • BeBot Creator and Founder
  • BeBot Hero
  • ******
  • Posts: 51
  • Karma: +0/-0
IRC chat relay
« Reply #31 on: September 14, 2005, 01:04:02 pm »
IRC

These should clear the prefix:
!irc ircprefix ""
!irc guildprefix ""

These now work in IRC:
!online
!is <player>

I think this is pretty much all the functionality I'm gonna add.
The IRRK news thingy: I guess you had problems with the bot at the start that it didn't display GC? Cause one of the fixes for that causes that bug :P Well, I hope it'll be fixed with BeBot 0.3.0.0 *looks at Khalem*

Offline Blondengy

  • BeBot Creator and Founder
  • BeBot Hero
  • ******
  • Posts: 51
  • Karma: +0/-0
IRC chat relay
« Reply #32 on: September 19, 2005, 05:45:58 pm »
!!!!!

The official/final version which now also includes a help file.

Added command:
!irc chat (gc|pgroup|both)
This defaults to "gc".

Changed:
No longer guild-only since with "!irc chat pgroup" you can now make a relay between the privategroup and IRC. This means that the _GUILD has been removed from the name so don't forget to delete the old IRC_GUILD.php when using this new IRC.php! ;)
All commands are now admin-only.

Offline Plac3bo

  • BeBot User
  • **
  • Posts: 50
  • Karma: +0/-0
IRC chat relay
« Reply #33 on: September 27, 2005, 12:08:02 pm »
well, theres a bug :)
some nicks on guildchat doesnt spam to irc
when I log in my alt Zrato, what he says doesnt show on irc...

Offline Blondengy

  • BeBot Creator and Founder
  • BeBot Hero
  • ******
  • Posts: 51
  • Karma: +0/-0
IRC chat relay
« Reply #34 on: September 27, 2005, 06:15:20 pm »
Did you add him on the "bot" list of the bot? Cause that could be a reason.
And if not does he show up in the bot's console?

Offline Plac3bo

  • BeBot User
  • **
  • Posts: 50
  • Karma: +0/-0
IRC chat relay
« Reply #35 on: September 27, 2005, 08:34:59 pm »
Hes member of the guild and I get logged on and logged off messages.
hes also in the members table.

Offline Plac3bo

  • BeBot User
  • **
  • Posts: 50
  • Karma: +0/-0
IRC chat relay
« Reply #36 on: September 28, 2005, 11:37:57 pm »
cant see the bot priv group either.. we usually have !relay on so alts can talk to guild. but on irc you cant see that.

Offline Mephistobane

  • BeBot User
  • **
  • Posts: 21
  • Karma: +0/-0
Re: IRC chat relay
« Reply #37 on: July 01, 2006, 11:32:39 am »
can we get a new updated link to the official version of this?

link is broke :P

Offline Blondengy

  • BeBot Creator and Founder
  • BeBot Hero
  • ******
  • Posts: 51
  • Karma: +0/-0
Re: IRC chat relay
« Reply #38 on: July 01, 2006, 12:56:41 pm »
The newest version is included in the offical download of the bot.
I think its both in the 0.2.5 and the SVN version.

Offline Zerovector

  • BeBot Rookie
  • *
  • Posts: 11
  • Karma: +0/-0
Re: IRC chat relay
« Reply #39 on: November 17, 2006, 06:35:24 pm »
Necromancy! But I was just wondering if anyone has made !whois into their IRC module, that's one of the most handy IRC commands and yet it's nowhere to be found :)

Offline Naturalistic

  • Contributor
  • *******
  • Posts: 221
  • Karma: +0/-0
Re: IRC chat relay
« Reply #40 on: November 18, 2006, 12:56:09 am »
I had implemented it on my old org bot... but since reformatting, backing bots up etc... it's lost somewhere in the DVDs.

I'll try to look for it. (I'm not sure if it's 100% or whether I was working on some bugs :P)
220/25 Eternalist Doctor
-----------------------------
Campalot Coding Co-ordinator and Super Admin
http://www.campalot.info/index.php

Offline Zerovector

  • BeBot Rookie
  • *
  • Posts: 11
  • Karma: +0/-0
Re: IRC chat relay
« Reply #41 on: November 18, 2006, 04:21:56 pm »
Super! Thanks in advance for the effort, Naturalistic :-*

Offline Evereane

  • BeBot Rookie
  • *
  • Posts: 9
  • Karma: +0/-0
Re: IRC chat relay
« Reply #42 on: December 13, 2006, 11:26:46 pm »
This is what I have working with mine...

Open IRC.php

Find $this -> irc -> setUseSockets(TRUE);
Under it, place...

Code: [Select]
...
$this -> irc -> registerActionhandler(SMARTIRC_TYPE_CHANNEL, $this -> bot -> commpre.'whois', $this -> bot -> commands["tell"]["irc"], 'irc_whois');
...

Then near the bottom (under the Function irc_part())

Code: [Select]
        /*
        * Whois Function - Used exclusively for IRC to strip color codes and add IRC specific coding
        */
function whois_player($name)
{
$content = $this -> bot -> get_site("http://www.anarchy-online.com/character/bio/d/" . $this -> bot -> dimension . "/name/" . strtolower($name) . "/bio.xml");
$who["nick"] = $this -> bot -> xmlparse($content, "nick");
$who["firstname"] = $this -> bot -> xmlparse($content, "firstname");
$who["lastname"] = $this -> bot -> xmlparse($content, "lastname");
$who["level"] = $this -> bot -> xmlparse($content, "level");
$who["gender"] = $this -> bot -> xmlparse($content, "gender");
$who["breed"] = $this -> bot -> xmlparse($content, "breed");
$who["profession"] = $this -> bot -> xmlparse($content, "profession");
$who["faction"] = $this -> bot -> xmlparse($content, "faction");
$who["rank"] = $this -> bot -> xmlparse($content, "rank");
$who["org"] = $this -> bot -> xmlparse($content, "organization_name");
$who["at_name"] = $this -> bot -> xmlparse($content, "defender_rank");
$who["at"] = $this -> bot -> xmlparse($content, "defender_rank_id");

if (!empty($who["nick"]))
{
$at = "(AT " . $who["at"] . " - " . $who["at_name"] . ") ";
$result = "\"" . $who["nick"] . "\"";
if (!empty($who["firstname"]) && ($who["firstname"] != "Unknown"))
$result = $who["firstname"] . " " . $result;
if (!empty($who["lastname"]) && ($who["lastname"] != "Unknown"))
$result .= " " . $who["lastname"];

$result .= " is a level " . $who["level"] . " " . $at . $who["gender"] . " " . $who["breed"] . " " . $who["profession"] . ", " . $who["faction"];
if (!empty($who["rank"]))
$result .= ", " . $who["rank"] . " of " . $who["org"] . ".";
else
$result .= ".";
}
else
$result = "www.anarchy-online.com was too slow to respond.";

return $result;
}

/*
* Gets called when someone does !whois
*/
function irc_whois(&$irc, &$data)
{
if (isset($this -> bot -> commands["tell"]["whois"]))
{
   preg_match("/^" . $this -> bot -> commpre . "whois (.+)$/i", $data -> message, $info);
                   $info[1] = ucfirst(strtolower($info[1]));

   if ($this -> bot -> aoc -> get_uid($info[1]))
      $this -> irc -> message(SMARTIRC_TYPE_CHANNEL, $this -> chan, $this -> whois_player($info[1]));
                   else
       $this -> irc -> message(SMARTIRC_TYPE_CHANNEL, $this -> chan, "Player " . $info[1] . " does not exist.");
}
else
    $this -> irc -> message(SMARTIRC_TYPE_CHANNEL, $this -> chan, "Whois module not installed.");
}

I've had no issues... some of that may be extra coding I don't need, but it works  ;D

Edit: Just noticed the forum stripped the IRC Command codes for bold... oh well.
« Last Edit: December 13, 2006, 11:32:05 pm by Evereane »

Offline Nytridr

  • BeBot Expert
  • ****
  • Posts: 262
  • Karma: +0/-0
    • Rising Sun
Re: IRC chat relay
« Reply #43 on: February 08, 2007, 11:09:29 pm »
I have a little problem with someone post a linked item in org chat.. what the other orgs get from the IRC server is pretty much spam..

Code: [Select]
anyone got a Awakened Chest Symbiant, Support Unit Aban (http://aomainframe.net/showitem.asp?LowID=236136&HiID=236136&QL=180) for sale?

That is just one item.. can you imagain what it would be like with like 5 or 10 items listed at one time.. it isnt pretty and is very unreadble.. that was the very first post I seen when we got all our bots connected up is someone asking if anyone wanted... then a list of 9 differnt items..

is there a way to transfer through IRC what these items are with out all the additional spam..?

Nytridr

.3 svn ..
Co-Prez of Rising Sun RK1 (1st & only org I will ever belong to)

Offline Wolfbiter

  • Contributor
  • *******
  • Posts: 149
  • Karma: +0/-0
    • KAZE
Re: IRC chat relay
« Reply #44 on: February 09, 2007, 03:36:04 am »
no, plain and simple. I'll repeat it again so you wont ask any follow up questions along the lines of "but what if...?". It is not possible in any way at all.
Too many toons.

 

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