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

	<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>2005-07-07T07:47:28-04:00</updated>

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

		<entry>
		<author><name><![CDATA[mrdr]]></name></author>
		<updated>2005-07-07T07:47:28-04:00</updated>

		<published>2005-07-07T07:47:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51917#p51917</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51917#p51917"/>
		<title type="html"><![CDATA[Need some help with this script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51917#p51917"><![CDATA[
I have this script. Here's the example what it does.<br>me: !duxas nick<br>bot: {nick uzhduxintas}<br>And now I need, when I write "!unduxas nick" bot will delete that nick from the list. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> <br>Any ideas?<br><div class="codebox"><p>Code: </p><pre><code># what would you like the commands (addquote and quote) prefixs to be?set quoteitpubprefix "!"# where would you like the quoteit data to be stored?set quoteitfile "quoteit.data"# would you like quotes to be displayed via private notice?## 0 = no, display quotes in channel instead# 1 = yes, display quotes via private notice.set quoteitvianotice "1"if { ![info exists toolbox_loaded] } { source scripts/alltools.tcl }bind pub - [string trim $quoteitpubprefix]duxai quoteit:pub:quotebind pub G|G [string trim $quoteitpubprefix]duxas quoteit:pub:addquoteproc quoteit:pub:quote {nick uhost hand chan arg} { global quoteitfile quoteitvianotice set quotes "" if { [file exists $quoteitfile] } { set file [open $quoteitfile r]  } else {  if { $quoteitvianotice == 0 } { putmsg $chan "$quoteitfile does not exist. You'll need to add quotes to the database first by typing \002!addquote &lt;a quote&gt;\002" }  if { $quoteitvianotice == 1 } { putnotc $nick "$quoteitfile does not exist. You'll need to add quotes to the database first by typing \002!addquote &lt;a quote&gt;\002" }  return 0 } while { ![eof $file] } {  set quote [gets $file]  if { $quote != "" } {   set quotes [linsert $quotes end $quote]  } } close $file set row [rand [llength $quotes]]   set quote [list $quotes]  if { $quote != "" } {  if { $quoteitvianotice == 0 } {   putmsg $chan "$quote"  }  if { $quoteitvianotice == 1 } {   putnotc $nick "$quote"  }  return 1 }}proc quoteit:pub:addquote {nick uhost hand chan arg} { global quoteitfile if { $arg == "" } {  putnotc $nick "Usage: !duxas &lt;nick&gt;"  return 0 } set file [open $quoteitfile a] puts $file "$arg" close $file putmsg $chan "{$arg uzhduxintas}" return 1}putlog "*** Duxu tcl loaded"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6362">mrdr</a> — Thu Jul 07, 2005 7:47 am</p><hr />
]]></content>
	</entry>
	</feed>
