<?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/19033" />

	<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>2012-07-22T12:08:29-04:00</updated>

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

		<entry>
		<author><name><![CDATA[blake]]></name></author>
		<updated>2012-07-22T12:08:29-04:00</updated>

		<published>2012-07-22T12:08:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99768#p99768</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99768#p99768"/>
		<title type="html"><![CDATA[On message[solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99768#p99768"><![CDATA[
I have done as you have said but I would still prefer to do the other way so if any one could further look into it id be grateful<br><br>thanks<br><br>Edit: following errors<br><br>[18:48] &lt;Tweeter&gt; [21:48:01] Tcl error [proc:twitter:friendsauto]: invalid character "]"<br>[18:48] &lt;Tweeter&gt; in expression "... "severewarn" $screen]]" have removed one ] no errors showing now<br><br>Edit Its not re tweeting anything at all they haven't blocked me because it let me re tweet via twitter itself<br> I also done +follow severewarn<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10512">blake</a> — Sun Jul 22, 2012 12:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[blake]]></name></author>
		<updated>2012-07-22T07:17:22-04:00</updated>

		<published>2012-07-22T07:17:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99766#p99766</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99766#p99766"/>
		<title type="html"><![CDATA[On message[solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99766#p99766"><![CDATA[
Hey<br><br>Thanks for that speechless <br><br>I have been given permission to use there tweet as my own by them but copy and paste method gets a tad tedius and only works if im at my computer this way I dont have to worry about it<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10512">blake</a> — Sun Jul 22, 2012 7:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2012-07-21T21:38:02-04:00</updated>

		<published>2012-07-21T21:38:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99764#p99764</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99764#p99764"/>
		<title type="html"><![CDATA[On message[solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99764#p99764"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>if {![isbotnick $nick]} {if {![info exists skip]} {putserv "$to :$tt" ; set sp 0}} else {if {[string equal -nocase "friends" $type]} {if {($twitter($tuser,lastidf) &lt; $id &amp;&amp; ![string equal -nocase $screen $tuser]) || ($twitter($tuser,lastidf) == $id &amp;&amp; [info exists sp] &amp;&amp; ![string equal -nocase $screen $tuser])} {if {![info exists skip]} {# ---&gt; code added starts here - automations should retweet# is the user that just tweeted the one we want? if {[string equal -nocase "severewarn" $screen]]} {# yes - set query with id to retweetset q [list [list id $id]]# map url with id of tweet to retweetset rt [string map [list "%id%" "$id"] $twitter(retweet)]# issue retweet - silentlyif {[catch {set rtt [proc:twitter:oauth $rt POST $chan $q]} error]} { putlog "$twitter(logo) Auto-Retweet: $error" }}# &lt;--- code added ends here putserv "$to :$tt" ; set sp 0}if {![info exists pure]} {set twitter($tuser,lastidf) $idset pure 0}}} else {</code></pre></div>You can do this all within birdy itself by a slight hack. This will allow it to detect when its running its friends automation, and during the initial spew of this check if it should "retweet" the message if it matches your pattern. Hopefully you can understand the code above enough to understand how to hack it in. The procedure you want to do this in is called, <strong class="text-strong">proc:twitter:restapi</strong>. This is more natural, a retweet of something like this, than taking the tweet and claiming it for your own. Consider this a more ethical approach to what you want to do.<br><br>Note: This requires you have issued .. +follow severewarn .. and they have not blocked you, this will then retweet every single one of their tweets into your own timeline. If you want it more refined or something, let me know. ;D<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Sat Jul 21, 2012 9:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[blake]]></name></author>
		<updated>2012-07-21T18:12:12-04:00</updated>

		<published>2012-07-21T18:12:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99762#p99762</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99762#p99762"/>
		<title type="html"><![CDATA[On message[solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99762#p99762"><![CDATA[
They are both the same the tweeter eggdrop is running speechless burdy script both eggdrops are eggdrop v1.6.20<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10512">blake</a> — Sat Jul 21, 2012 6:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2012-07-21T18:00:03-04:00</updated>

		<published>2012-07-21T18:00:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99761#p99761</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99761#p99761"/>
		<title type="html"><![CDATA[On message[solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99761#p99761"><![CDATA[
Hard to say then. I assume "Tweeter" is a different eggdrop than the one running this script.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Jul 21, 2012 6:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[blake]]></name></author>
		<updated>2012-07-21T17:17:50-04:00</updated>

		<published>2012-07-21T17:17:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99757#p99757</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99757#p99757"/>
		<title type="html"><![CDATA[On message[solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99757#p99757"><![CDATA[
That has not worked <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10512">blake</a> — Sat Jul 21, 2012 5:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2012-07-21T16:59:23-04:00</updated>

		<published>2012-07-21T16:59:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99756#p99756</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99756#p99756"/>
		<title type="html"><![CDATA[On message[solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99756#p99756"><![CDATA[
I roughly recall channel text being stripped of any control characters prior being matched, but just in case I'm wrong; try replacing the mask in the binding with just "*"<br>(bind pubm - "*" user:message)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Jul 21, 2012 4:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[blake]]></name></author>
		<updated>2012-07-21T16:56:35-04:00</updated>

		<published>2012-07-21T16:56:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99755#p99755</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99755#p99755"/>
		<title type="html"><![CDATA[On message[solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99755#p99755"><![CDATA[
Hey<br><br>Sorry nml375 but that dont seem to be working either thanks for your help though<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10512">blake</a> — Sat Jul 21, 2012 4:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2012-07-21T16:24:46-04:00</updated>

		<published>2012-07-21T16:24:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99754#p99754</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99754#p99754"/>
		<title type="html"><![CDATA[On message[solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99754#p99754"><![CDATA[
Well, if it's sent to a channel, you need the pubm binding, not the msg or msgm bindings... Which also means that the proc has to be modified to take the new set of parameters.<br><div class="codebox"><p>Code: </p><pre><code>bind pubm - "% Severe Warnings:*" user:messageproc user:message {nick host handle channel text} {  set text [stripcodes bcruag $text]  set pattern {Severe Warnings: ([[:alnum:][:space:][:punct:]]*?) \( ?[[:digit:]]+@severewarn.* ?\)}  if {[string equal -nocase $nick "tweeter"] &amp;&amp; [regexp -- $pattern $text match warning]} {    puthelp "PRIVMSG #Twitter :!tweet : $warning"  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Jul 21, 2012 4:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[blake]]></name></author>
		<updated>2012-07-21T16:19:49-04:00</updated>

		<published>2012-07-21T16:19:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99753#p99753</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99753#p99753"/>
		<title type="html"><![CDATA[On message[solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99753#p99753"><![CDATA[
That hasnt made any difference <br><br>it still isnt outputting anything to the channel when it sees <br><br>&lt;+Tweeter&gt; <strong class="text-strong">Severe Warnings:</strong> Severe Thunderstorm Warning for Johnston, Sampson, and Wayne County in NC until 4:45pm EDT. #ncwx ( 226763682313539584@severewarn - 11s ago via ReadyWarn )<br><br>this is also on the channel #twitter its not being sent via private message its a channel message<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10512">blake</a> — Sat Jul 21, 2012 4:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2012-07-21T16:01:58-04:00</updated>

		<published>2012-07-21T16:01:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99751#p99751</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99751#p99751"/>
		<title type="html"><![CDATA[On message[solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99751#p99751"><![CDATA[
Minor typo in my last post, fixed now.<br>(used "Severe Warning:" instead of "Severe Warnings:" in the binding)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Jul 21, 2012 4:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[blake]]></name></author>
		<updated>2012-07-21T15:59:39-04:00</updated>

		<published>2012-07-21T15:59:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99750#p99750</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99750#p99750"/>
		<title type="html"><![CDATA[On message[solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99750#p99750"><![CDATA[
Tried this its stll not sending any out put to the channel showing no errors<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10512">blake</a> — Sat Jul 21, 2012 3:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2012-07-21T16:00:33-04:00</updated>

		<published>2012-07-21T15:42:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99749#p99749</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99749#p99749"/>
		<title type="html"><![CDATA[On message[solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99749#p99749"><![CDATA[
Control-codes such as bold would be stripped using the stripcodes command.<br>I've successfully tested the regexp pattern against the string you posted.<br>One thing that strikes me now though, is that you are using a msg binding, not an msgm binding. You can't use wildcards with msg bindings, and the "command" part is only matched against the first word spoken. You'll need msgm instead.<br><div class="codebox"><p>Code: </p><pre><code>bind msgm - "Severe Warnings:*" user:messageproc user:message {nick host handle text} {  set text [stripcodes bcruag $text]  set pattern {Severe Warnings: ([[:alnum:][:space:][:punct:]]*?) \( ?[[:digit:]]+@severewarn.* ?\)}  if {[string equal -nocase $nick "tweeter"] &amp;&amp; [regexp -- $pattern $text match warning]} {    puthelp "PRIVMSG #Twitter :!tweet : $warning"  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Jul 21, 2012 3:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[blake]]></name></author>
		<updated>2012-07-21T15:44:09-04:00</updated>

		<published>2012-07-21T15:32:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99748#p99748</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99748#p99748"/>
		<title type="html"><![CDATA[On message[solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99748#p99748"><![CDATA[
Hey<br><br>I have tried that it is not doing anything at all could it be because this part is in bold Severe Warnings<br><br>this is the output<br><br>&lt;+Tweeter&gt; <strong class="text-strong">Severe Warnings:</strong> Severe Thunderstorm Warning for Johnston, Sampson, and Wayne County in NC until 4:45pm EDT. #ncwx ( 226763682313539584@severewarn - 11s ago via ReadyWarn )<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10512">blake</a> — Sat Jul 21, 2012 3:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2012-07-21T14:23:14-04:00</updated>

		<published>2012-07-21T14:23:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99746#p99746</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99746#p99746"/>
		<title type="html"><![CDATA[On message[solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99746#p99746"><![CDATA[
When using the msg binding, the proc is called with four parameters (nickname, user@host, handle, and text) - your proc expects a fifth parameter (dest). You'll have to remove that fifth one (or provide a default value for it) for it to work with your binding.<br><br>As for the more advanced parts of your request, I'd probably use regular expression matching rather than glob-based matching (string match):<div class="codebox"><p>Code: </p><pre><code>bind msg - "*" user:messageproc user:message {nick host handle text} {  set text [stripcodes bcruag $text]  if {[regexp -- {Severe Warnings: ([[:alnum:][:space:][:punct:]]*?) \( ?[[:digit:]]+@severewarn.* ?\)} $text match warning]} {    puthelp "PRIVMSG #Twitter :!tweet : $warning"  }}</code></pre></div>Might have to tune the pattern depening on permitted contents of the messages.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Jul 21, 2012 2:23 pm</p><hr />
]]></content>
	</entry>
	</feed>
