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

	<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>2009-02-24T16:19:11-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Nimos]]></name></author>
		<updated>2009-02-24T16:19:11-04:00</updated>

		<published>2009-02-24T16:19:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87539#p87539</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87539#p87539"/>
		<title type="html"><![CDATA[Help script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87539#p87539"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>#### Help script######## Config####### Helpfile:set helpfile(file) "omfg_its_a_helpfile.txt"###### Output Target (private=0 channel=1)set helpfile(target) 0###### Output Method (either "PRIVMSG" or "NOTICE")set helpfile(method) "NOTICE"####### End of Config###bind pub !help pub:helpproc pub:help {nick host hand chan text} {global helpfileset fp [open $helpfile(file) r]set data [split [read -nonewline $fp] "\n"]close $fpif {$helpfile(target) == 1} {set target $chan} else {set target $nick} foreach line $data {puthelp "$helpfile(method) $target :$line"}}putlog "Helpfile Reader loaded with file $my_helpfile"</code></pre></div>I wrote it in the forums textbox, so its not well formatted, but it should work.<br><br>The bot will output every line of the file in its own message, example:<br><br>Helpfile:<br>"Commands:<br>!help - Shows this text<br>!kickall - Kicks all users"<br><br>Channel:<br>&lt;User&gt; !help<br>&lt;Bot&gt; Commands:<br>&lt;Bot&gt; !help - Shows this text<br>&lt;Bot&gt; !kickall - Kicks all users<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9877">Nimos</a> — Tue Feb 24, 2009 4:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[starpossen]]></name></author>
		<updated>2009-02-23T13:22:43-04:00</updated>

		<published>2009-02-23T13:22:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87530#p87530</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87530#p87530"/>
		<title type="html"><![CDATA[Help script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87530#p87530"><![CDATA[
Something like:<div class="codebox"><p>Code: </p><pre><code>bind pub - !help pub:help proc pub:help {nick uhost hand chan arg} {set chan [string tolower $chan]    putserv "NOTICE $nick :Hello this is a help text" }</code></pre></div>This will notic the one typing, instead of posting in the chanel.<br><br>Very simple, but i'm sure someone can make a better one<br>as i'm no pro at .tcl scripting.<br><br>*EDIT gah, didn't see you wanted it to read from a file<br>which mine doesn't.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7219">starpossen</a> — Mon Feb 23, 2009 1:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Football]]></name></author>
		<updated>2009-02-23T13:11:34-04:00</updated>

		<published>2009-02-23T13:11:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87529#p87529</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87529#p87529"/>
		<title type="html"><![CDATA[Help script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87529#p87529"><![CDATA[
Couldn't find in the archieve here a script that when you type !Help it plays a help file which you can configure..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10393">Football</a> — Mon Feb 23, 2009 1:11 pm</p><hr />
]]></content>
	</entry>
	</feed>
