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

	<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>2013-01-31T16:48:30-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Madalin]]></name></author>
		<updated>2013-01-31T16:48:30-04:00</updated>

		<published>2013-01-31T16:48:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100870#p100870</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100870#p100870"/>
		<title type="html"><![CDATA[put messages into specific channels]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100870#p100870"><![CDATA[
You can use this script with the same purpouse like this you are using now<br><a href="http://forum.egghelp.org/viewtopic.php?t=19313" class="postlink">http://forum.egghelp.org/viewtopic.php?t=19313</a> if you want any other modifications to this script leave here a reply and i will help you. <br>With that script you can create any trigger command on any channel (every channel will have its own database) meaning that you can create !url on 2 different channels and with 2 different output texts (very usefull i can say <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=6396">Madalin</a> — Thu Jan 31, 2013 4:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rayvtirx]]></name></author>
		<updated>2011-04-26T11:57:28-04:00</updated>

		<published>2011-04-26T11:57:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96767#p96767</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96767#p96767"/>
		<title type="html"><![CDATA[put messages into specific channels]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96767#p96767"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code># This sets the location of the file you want to be written out to someone in a msgset bfile "/home/matt/eggdrop/scripts/url.txt"#sets the command it should go on off in a chan or soset cmd "!url"#this is where you set where the file should be printed out#private = 0#channel = 1set bwhere 1## don't edit below this line -----------------------------------bind pub -|- $cmd dumpfileproc dumpfile {nick handle host chan text } {global bfile bwhereset foo [open $bfile r]while { ! [eof $foo] } {        set line [gets $foo]                if {!$bwhere} {                puthelp "NOTICE $nick :$line"                } else {                puthelp "PRIVMSG $chan :$line"                }        }}# This sets the location of the file you want to be written out to someone in a msgset cfile "/home/matt/eggdrop/scripts/console.txt"#sets the command it should go on off in a chan or soset cmdc "!console"#this is where you set where the file should be printed out#private = 0#channel = 1set cwhere 1## don't edit below this line -----------------------------------bind pub -|- $cmdc dumpfilecproc dumpfilec {nick handle host chan text } {global cfile cwhereset foo [open $cfile r]while { ! [eof $foo] } {        set line [gets $foo]                if {!$cwhere} {                puthelp "NOTICE $nick :$line"                } else {                puthelp "PRIVMSG $chan :$line"                }        }}# This sets the location of the file you want to be written out to someone in a msgset dfile "/home/matt/eggdrop/scripts/servers.txt"#sets the command it should go on off in a chan or soset cmdd "!servers"#this is where you set where the file should be printed out#private = 0#channel = 1set dwhere 1## don't edit below this line -----------------------------------bind pub -|- $cmdd dumpfiledproc dumpfiled {nick handle host chan text } {global dfile dwhereset foo [open $dfile r]while { ! [eof $foo] } {        set line [gets $foo]                if {!$dwhere} {                puthelp "NOTICE $nick :$line"                } else {                puthelp "PRIVMSG $chan :$line"                }        }}</code></pre></div>im currently using the above to read text from textfiles and post it in chat.<br>would prefer to be able to specify which channel to bind the commands in, so i could add a new block with the same command say !url or anything else , to a specific channel, or group of channels.<br>any help greatly appreciated <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=11236">rayvtirx</a> — Tue Apr 26, 2011 11:57 am</p><hr />
]]></content>
	</entry>
	</feed>
