<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/21239" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2023-02-09T19:26:43-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/21239</id>

		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2023-02-09T19:26:43-04:00</updated>

		<published>2023-02-09T19:26:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111676#p111676</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111676#p111676"/>
		<title type="html"><![CDATA[WP Eggdrop error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111676#p111676"><![CDATA[
Sorry, I've removed the point. I didn't check my post, so didn't see the point was took as a part of the url<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Thu Feb 09, 2023 7:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2023-02-09T13:48:42-04:00</updated>

		<published>2023-02-09T13:48:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111675#p111675</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111675#p111675"/>
		<title type="html"><![CDATA[WP Eggdrop error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111675#p111675"><![CDATA[
Remove the dot at the end of the URL, and it'll work a lot better.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Thu Feb 09, 2023 1:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2023-02-09T13:41:54-04:00</updated>

		<published>2023-02-09T13:41:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111674#p111674</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111674#p111674"/>
		<title type="html"><![CDATA[WP Eggdrop error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111674#p111674"><![CDATA[
The link you provided leads me to TCL Archive's main page, nothing is selected in particular.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Feb 09, 2023 1:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2023-02-09T19:24:53-04:00</updated>

		<published>2023-02-09T11:15:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111671#p111671</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111671#p111671"/>
		<title type="html"><![CDATA[WP Eggdrop error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111671#p111671"><![CDATA[
Try <a href="http://tclarchive.org/download.php?id=1235" class="postlink">http://tclarchive.org/download.php?id=1235</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Thu Feb 09, 2023 11:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[fhazal]]></name></author>
		<updated>2023-02-09T05:14:43-04:00</updated>

		<published>2023-02-09T05:14:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111669#p111669</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111669#p111669"/>
		<title type="html"><![CDATA[WP Eggdrop error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111669#p111669"><![CDATA[
<blockquote class="uncited"><div>Use rss-synd to access your wordpress rss feed.<br>No need to have a plugin in wordpress and rss-synd works well.</div></blockquote>do u know which tcl is working for rss synd, i try a couple but its not working.<br><br>im searching for auto post to irc channel for every new post on wordpress without need to !rss command.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12993">fhazal</a> — Thu Feb 09, 2023 5:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2023-02-07T19:37:06-04:00</updated>

		<published>2023-02-07T19:37:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111664#p111664</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111664#p111664"/>
		<title type="html"><![CDATA[WP Eggdrop error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111664#p111664"><![CDATA[
Use rss-synd to access your wordpress rss feed.<br>No need to have a plugin in wordpress and rss-synd works well.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Tue Feb 07, 2023 7:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[fhazal]]></name></author>
		<updated>2023-02-07T15:27:01-04:00</updated>

		<published>2023-02-07T15:27:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111663#p111663</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111663#p111663"/>
		<title type="html"><![CDATA[WP Eggdrop error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111663#p111663"><![CDATA[
hye can anybody help, i can't make the eggdrop post a message to channel when creating a new post from wordpress. i keep receive " Lost connection while resolving hostname [103.*.198.**/5**60]" after trying to create a new post my wordpress website, im using wp eggdrop module for wordpress and wp-eggdrop.tcl for the eggdrop. <br><br>this is the tcl :<br><div class="codebox"><p>Code: </p><pre><code>set listenport "098765"# port for your script you want to listen on (you need to set same port in php script)set password "mypasswd"# password (you need to set same password in php script)set chan "#chat"# channel you want to send output tolisten $listenport script botlistenproc botlisten {idx} {control $idx botlisten2} proc botlisten2 {idx args} {set args [join $args] set password1 [lindex [split $args] 0]set message [join [lrange [split $args] 1 end]]if {[string match $::password $password1]} {putquick "PRIVMSG $::chan :$message"} else {putlog "Unauthorized person tried to connect to the bot"}}putlog "WP Eggdrop script loaded!"</code></pre></div>this is the web code : <br><div class="codebox"><p>Code: </p><pre><code>&lt;?php/*Plugin Name: WP EggdropPlugin URI: http://codeninja.me.uk/plugins/wp-eggdrop/?ref=wp-eggdropVersion: 0.1Description: Sends data to a eggdrop bot that annouces into IRC.Author: Iain CambridgeAuthor URI: http://codeninja.me.uk/?ref=wp-eggdrop*/function wpegg_scriptInstall(){        // Put in empty options    add_option("wpegg_server", "",NULL,"no");    add_option("wpegg_port","",NULL,"no");    add_option("wpegg_password","",NULL,"no");    add_option("wpegg_message","",NULL,"no");        }register_activation_hook(__FILE__, 'wpegg_scriptInstall');function wpegg_handlePost($PostID){        /*     * %A == Author Display Name     * %a == Author Full Name      * %d == Post Date     * %D == Post Date GMT     * %C == All catergories     * %c == 1st catergory.     * %T == Post's Title     * %t == Post's slug (url friendly title)     * %U == Permalink URL     */        $Post = get_post($PostID);    $Bot = wpegg_getOptions();    $Message = $Bot['Message'];            $Permalink = get_permalink($PostID);    // Get author details.    if ((strstr($Message,"%A")) || (strstr($Message,"%a")) ){            $User = get_userdata($Post-&gt;post_author);                    $Message = str_replace("%a","{$User-&gt;first_name} {$User-&gt;last_name}",$Message);        $Message = str_replace("%A",$User-&gt;display_name,$Message);                }                // Get catergory name.    if (strstr($Message,"%C")){                    foreach((get_the_category($PostID)) as $category) {             $Cat .= $category-&gt;cat_name . ' ';         }                     $Message =  str_replace("%C",$Cat,$Message);                }            if (strstr($Message,"%c")){                    $Catergories = get_the_category($PostID);                    $Message = str_replace("%c",$Catergories[0]-&gt;category_nicename,$Message);                }                   $Message = str_replace("%d",$Post-&gt;post_date,$Message);    $Message = str_replace("%D",$Post-&gt;post_date_gmt,$Message);    $Message = str_replace("%t",$Post-&gt;post_name,$Message);    $Message = str_replace("%T",$Post-&gt;post_title,$Message);    $Message = str_replace("%U",$Permalink,$Message);                    wpegg_sendMessage($Bot['Server'],$Bot['Port'],$Bot['Password'],$Message);          }// Send the messagefunction wpegg_sendMessage($BotServer,$BotPort,$BotPassword,$BotMessage){        $fp = fsockopen($BotServer, $BotPort, $errno, $errstr, 40);        if($fp)    {        if ( !fputs($fp, $BotPassword . " " . $BotMessage . "\r\n") ){        trigger_error('Unable to sent message, check php settings');        }    }        fclose($fp);}add_action('publish_post', 'wpegg_handlePost');//// Get the options.// function wpegg_getOptions(){        $Bot['Server']   = get_option("wpegg_server");        $Bot['Port']     = get_option("wpegg_port");        $Bot['Password'] = get_option("wpegg_password");        $Bot['Message']  = get_option("wpegg_message");         return $Bot;}//// Show Options Page!//function wpegg_showOptions(){        ?&gt;    &lt;div class="wrap"&gt;      &lt;div id="icon-options-general" class="icon32"&gt;&lt;br /&gt;&lt;/div&gt;            &lt;h2&gt;WP Eggdrop&lt;/h2&gt;            &lt;?php             if (isset($_POST['wpegg_submit'])){                        // Data been submitted.        $Errors = wpegg_updateOptions(); // send to be validated and updated.                // Set vars        $Bot['Server']   = $_POST['wpegg_server'];         $Bot['Port']     = $_POST['wpegg_port'];        $Bot['Password'] = $_POST['wpegg_password'];        $Bot['Message']  = $_POST['wpegg_message'];                 if (!empty($Errors)){ // Display errors.        ?&gt;        &lt;p&gt;            &lt;ol style="list-style-type: decimal;"&gt;                &lt;?php foreach ($Errors as $Error){?&gt;                &lt;li style="color: red;font-weight: bold;"&gt;&lt;?php echo $Error; ?&gt;&lt;/li&gt;                &lt;?php } ?&gt;            &lt;/ol&gt;        &lt;/p&gt;        &lt;?php         }        else { // Display updated notice!            ?&gt;&lt;div id="message" class="updated fade"&gt;&lt;p&gt;Options updated!&lt;/p&gt;&lt;/div&gt;            &lt;?php         }    }    else{        // Get bot options from SQL        $Bot = wpegg_getOptions();    }    ?&gt;        &lt;form method='post' action='?&lt;?php echo $_SERVER['QUERY_STRING']?&gt;'&gt;                &lt;table class="form-table"&gt;                    &lt;tr valign="top"&gt;                &lt;th scope="row"&gt;Bot Server/IP&lt;/th&gt;                &lt;td&gt;&lt;input type="text" name="wpegg_server" value="&lt;?php echo $Bot['Server']; ?&gt;" /&gt;&lt;/td&gt;            &lt;/tr&gt;                        &lt;tr valign="top"&gt;                &lt;th scope="row"&gt;Bot Port&lt;/th&gt;                &lt;td&gt;&lt;input type="text" name="wpegg_port" value="&lt;?php echo $Bot['Port']; ?&gt;" /&gt;&lt;/td&gt;            &lt;/tr&gt;                        &lt;tr valign="top"&gt;                &lt;th scope="row"&gt;Bot Password&lt;/th&gt;                &lt;td&gt;&lt;input type="text" name="wpegg_password" value="&lt;?php echo $Bot['Password']; ?&gt;" /&gt;&lt;/td&gt;            &lt;/tr&gt;                        &lt;tr valign="top"&gt;                &lt;th scope="row"&gt;Bot Message&lt;/th&gt;                &lt;td&gt;&lt;input type="text" name="wpegg_message" value="&lt;?php echo $Bot['Message']; ?&gt;" /&gt;&lt;/td&gt;            &lt;/tr&gt;                &lt;/table&gt;        &lt;p class='submit'&gt;                &lt;input type="submit" name="wpegg_submit" value="Update Options »" /&gt;            &lt;/p&gt;                       &lt;/form&gt;                      &lt;p&gt;               &lt;ol&gt;Message Formatting                   &lt;li&gt;%A - Author's display name&lt;/li&gt;                   &lt;li&gt;%a - Author's full name&lt;/li&gt;                   &lt;li&gt;$d - Post Date&lt;/li&gt;                   &lt;li&gt;%D - Post Date GMT&lt;/li&gt;                   &lt;li&gt;%C - All catergories seperated by a space&lt;/li&gt;                   &lt;li&gt;%c - The first catergory&lt;/li&gt;                   &lt;li&gt;%T - Post Title&lt;/li&gt;                   &lt;li&gt;%t - Post slug (url friendly title)&lt;/li&gt;                   &lt;li&gt;%U - Post permalink (web address)&lt;/li&gt;               &lt;/ol&gt;           &lt;/p&gt;       &lt;/div&gt;    &lt;?php }function wpegg_updateOptions(){        $Errors = array();        // Validate the information.    if(empty($_POST['wpegg_server'])){        $Errors[] = "Server/IP cannot be blank.";    }        if ($_POST['wpegg_port'] == ""){        $Errors[] = "Port cannot be blank.";    }    elseif (!is_numeric($_POST['wpegg_port'])){        $Errors[] = "Port has to be a number";    }        if (empty($_POST['wpegg_password'])){        $Errors[] = "Password cannot be blank";    }        if (empty($_POST['wpegg_message'])){        $Errors[] = "Password cannot be blank";    }        if (empty($Errors)){        update_option("wpegg_server",$_POST['wpegg_server']);        update_option("wpegg_port",$_POST['wpegg_port']);        update_option("wpegg_password",$_POST['wpegg_password']);         update_option("wpegg_message",$_POST['wpegg_message']);            }        return $Errors;}// Add to menu.function wpegg_addMenu(){    add_options_page('WP Eggdrop Settings', 'WP Eggdrop Settings', 'manage_options', 'wpegg', 'wpegg_showOptions');}add_filter('admin_menu','wpegg_addMenu');?&gt;</code></pre></div>i keep receiving this msg from the party line :<br><br>[02/08 03:11:32] &lt;Sentinel&gt; [19:11:15] Lost connection while resolving hostname [103.*.198.**/5**60]<br>[02/08 03:11:38] &lt;Sentinel&gt; [19:11:21] Lost connection while resolving hostname [103.*.198.**/5**60]<br><br>got the script from : <a href="https://github.com/rastaval/wp-eggdrop" class="postlink">https://github.com/rastaval/wp-eggdrop</a><br><br>if anyone can suggest to me a new eggdrop script that can make it post my new website post (wordpress) to my irc channel also good.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12993">fhazal</a> — Tue Feb 07, 2023 3:27 pm</p><hr />
]]></content>
	</entry>
	</feed>
