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

	<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-04-23T14:17:45-04:00</updated>

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

		<entry>
		<author><name><![CDATA[FmX]]></name></author>
		<updated>2023-04-23T14:17:45-04:00</updated>

		<published>2023-04-23T14:17:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111858#p111858</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111858#p111858"/>
		<title type="html"><![CDATA[YouTube script little help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111858#p111858"><![CDATA[
Work like a charm  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink">  Thanks <strong class="text-strong">simo</strong><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8470">FmX</a> — Sun Apr 23, 2023 2:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2023-04-23T01:56:08-04:00</updated>

		<published>2023-04-23T01:56:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111850#p111850</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111850#p111850"/>
		<title type="html"><![CDATA[YouTube script little help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111850#p111850"><![CDATA[
try this:<br><div class="codebox"><p>Code: </p><pre><code>bind pubm - "*http*youtube*" youtube_url proc youtube_url {nick uhost hand chan text} {  set url_regex {(?:http(?:s|).{3}|)(?:www.|)(?:youtube.com\/watch\?.*v=|youtu.be\/)([\w-]{11})}  if {[regexp $url_regex $text url]} {    set modified_url [string map {"youtube.com/watch?v=" "youtubepp.com/watch?v="} $url]    putnow "PRIVMSG $chan :@ $nick, here is the youtube change link: $modified_url"  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sun Apr 23, 2023 1:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[FmX]]></name></author>
		<updated>2023-04-22T18:17:27-04:00</updated>

		<published>2023-04-22T18:17:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111845#p111845</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111845#p111845"/>
		<title type="html"><![CDATA[YouTube script little help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111845#p111845"><![CDATA[
Hello. Can someone help me with this script:<br><div class="codebox"><p>Code: </p><pre><code>bind pub - "+youtube" youtube_urlproc youtube_url {nick uhost handle channel text arg} {  set url_regex {(https?://www\.youtube\.com/watch\?v=[a-zA-Z0-9_-]+)}  if {[regexp $url_regex $arg url]} {    set modified_url [string map {"youtube.com/watch?v=" "youtubepp.com/watch?v="} $url]    putnow "PRIVMSG $channel :@ $nick, here is the youtube change link: $modified_url"  }}</code></pre></div>Purpose of the script is that if someone post youtube url in channel, bot reply with same url but added <strong class="text-strong">pp<br></strong> after youtube. <br>But when loaded it, nothing happens when someone post youtube url. Please some help<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8470">FmX</a> — Sat Apr 22, 2023 6:17 pm</p><hr />
]]></content>
	</entry>
	</feed>
