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

	<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>2002-03-16T17:38:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-03-16T17:38:00-04:00</updated>

		<published>2002-03-16T17:38:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=5453#p5453</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=5453#p5453"/>
		<title type="html"><![CDATA[Question script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=5453#p5453"><![CDATA[
Well this works if I ghetto it to a file, but there's probably a more efficient way.<br><br>### OutPut Channel ###<br>set ochan "#Lamest"<br>### Question Channel ###<br>set qchan "#WAGD"<br><br>### Question File ###<br>set location "/tmp/questions.$qchan"<br><br>bind msg - Question: pub_msg<br>bind pub m Accept pub_Accept<br>bind pub m Deny pub_Deny<br><br>proc pub_msg {nick uhost hand arg} {<br>global ochan qchan location<br>set question [string trim $arg]<br>puthelp "[exec echo $question &gt;&gt; $location]"<br>puthelp "PRIVMSG $ochan :$nick has submitted a question! Here it is!"<br>puthelp "PRIVMSG $ochan :$nick: $question."<br>puthelp "PRIVMSG $ochan :If you accept this question, type 'Accept', if you reject it, type 'Deny'."<br>}<br> <br>proc pub_Accept {nick host handle channel args} {<br>global ochan qchan question location<br>set question [exec cat $location]   <br>putserv "PRIVMSG $qchan :$nick: $question"<br>puthelp "[exec rm $location]"<br>return 1<br>}<br><br>proc pub_Deny {nick host handle channel args} {<br>global ochan qchan<br>putserv "PRIVMSG $nick :Your message did not meet needed requirements. Thanks for your time"<br>return 1<br>}<br><p>Statistics: Posted by Guest — Sat Mar 16, 2002 5:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-03-16T17:30:00-04:00</updated>

		<published>2002-03-16T17:30:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=5452#p5452</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=5452#p5452"/>
		<title type="html"><![CDATA[Question script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=5452#p5452"><![CDATA[
Basically this script will just have a channel setup for question review by a team, then it's passed to the main channel when accepted, or sends a message if denied, here is what I have so far if anyone could patch it up or give me some suggestions so it works I would appreciate it, I can't remember how to pass the question between the procs.<br><br>### OutPut Channel ###<br>set ochan "#Lamest"<br>### Question Channel ###<br>set qchan "#WAGD"<br><br>bind msg - Question: pub_msg<br>bind pub m Accept pub_Accept<br>bind pub m Deny pub_Deny<br><br>proc pub_msg {nick uhost hand arg} {          <br>global ochan qchan         <br>set question [string trim $arg]  <br>puthelp "PRIVMSG $ochan :$nick has submitted a question! Here it is!"<br>puthelp "PRIVMSG $ochan :$nick: $question."<br>puthelp "PRIVMSG $ochan :If you accept this question, type 'Accept', if you reject it, type 'Deny'."<br>}       <br> <br>proc pub_Accept {nick host handle channel args} {<br>global ochan qchan question<br>putserv "PRIVMSG $qchan :$nick: $question"<br>return 1<br>}<br> <br>proc pub_Deny {nick host handle channel args} {<br>global ochan qchan<br>putserv "PRIVMSG $nick :Your message did not meet needed requirements. Thanks for your time"<br>return 1<br>}<br><br><p>Statistics: Posted by Guest — Sat Mar 16, 2002 5:30 pm</p><hr />
]]></content>
	</entry>
	</feed>
