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

	<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>2020-04-14T08:57:16-04:00</updated>

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

		<entry>
		<author><name><![CDATA[crymsun]]></name></author>
		<updated>2020-04-14T08:57:16-04:00</updated>

		<published>2020-04-14T08:57:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108200#p108200</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108200#p108200"/>
		<title type="html"><![CDATA[Todo-list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108200#p108200"><![CDATA[
Yes - in terms of IRC chan Ops, of which there are several different types, depending on the network.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12774">crymsun</a> — Tue Apr 14, 2020 8:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2020-04-14T00:57:22-04:00</updated>

		<published>2020-04-14T00:57:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108198#p108198</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108198#p108198"/>
		<title type="html"><![CDATA[Todo-list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108198#p108198"><![CDATA[
You mean channel operators that may not have access to your bot?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue Apr 14, 2020 12:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[crymsun]]></name></author>
		<updated>2020-04-13T19:19:36-04:00</updated>

		<published>2020-04-13T19:19:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108197#p108197</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108197#p108197"/>
		<title type="html"><![CDATA[Todo-list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108197#p108197"><![CDATA[
This is a fantastic script...<br><br>One question... it indicates o as the access flag - but on testing, looks like just the owner can activate the todo commands. None of the other Ops can.<br><br>How do I change that so all Ops can activate the list?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12774">crymsun</a> — Mon Apr 13, 2020 7:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[maniak]]></name></author>
		<updated>2015-07-26T18:41:42-04:00</updated>

		<published>2015-07-26T18:41:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104323#p104323</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104323#p104323"/>
		<title type="html"><![CDATA[Todo-list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104323#p104323"><![CDATA[
Alright, thanks! Ill check it out!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12554">maniak</a> — Sun Jul 26, 2015 6:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2015-07-26T14:21:04-04:00</updated>

		<published>2015-07-26T14:21:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104322#p104322</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104322#p104322"/>
		<title type="html"><![CDATA[Todo-list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104322#p104322"><![CDATA[
Untested modification of my script at: <a href="http://forum.egghelp.org/viewtopic.php?t=19179" class="postlink">http://forum.egghelp.org/viewtopic.php?t=19179</a><br><br>Please test and see what we have so far:)<br><div class="codebox"><p>Code: </p><pre><code># EditTextFile (ToDo-List ver) Version 0.4 ## author:  SpiKe^^ ## e-mail:  spike&lt;at&gt;mytclscripts&lt;dot&gt;com ## webpage: http://mytclscripts.com/ ## This file is Copyrighted under the GNU Public License. ## http://www.gnu.org/copyleft/gpl.html ############ General Script Settings ############ Set the channel(s) for this script to run in #set eTxFile(chan) {#yourchannel #anotherchannel #someotherchan}# Set the full route &amp; file name of the ToDo-List file #set eTxFile(file) {/usr/home/spike/eggdrop/scripts/filename.txt}# Set the access flags to use the ToDo-List public commands #set eTxFile(flags) {o|o}########### Public Command Trigger ############ Set the public trigger for all the ToDo-List commands ##    note: All ToDo-List commands start with this one word!set eTxFile(cmd) {!todo}########### Public Command Options ############ Set the command option for the add line command ## to add a line at the end of the file: #    example:  !todo add The text to add at file end.#    example:  !todo add end The text to add at file end.# to add a line at a specific line position in the file:#    example:  !todo add 4 The text to add at file line 4.#    note: this will renumber the original line 4 &amp; all lines after it!set eTxFile(add) {add}# Set the command option for the delete line command ## to delete a specific line (by line number) from the text file#    example:  !todo del 4#    note: this will renumber all lines after line 4!set eTxFile(del) {del}# Set the command option for the list file command ## to list all lines from the text file#    example:  !todo list# note: list is also the default if no command option is given!#    example:  !todoset eTxFile(list) {list}########### Extended Command Options ############ Set the command option for the read line command ## to read a specific line (by line number) from the text file#    example:  !todo read 4#    note: use to check for correct line before doing !todo del or editset eTxFile(read) {read}# Set the command option for the edit line command ## to edit a specific line (by line number) in the text file#    example:  !todo edit 4 New text to replace file line 4.set eTxFile(edit) {edit}# Set the command option to get help with this script ## to see all valid ToDo-List command options#    example:  !todo helpset eTxFile(help) {help}################ End Settings ################bind pub $eTxFile(flags) $eTxFile(cmd) etfProcCmdset eTxFile(chan) [split $eTxFile(chan)]proc etfProcCmd {nk uh hn ch tx} {  global eTxFile  if {[lsearch -nocase $eTxFile(chan) $ch]=="-1"} {  return 0  }  set tx [split [string trim $tx]]  set opt [lindex $tx 0]  set tx [string trim [join [lrange $tx 1 end]]]  if {$opt eq $eTxFile(add)} {    etfProcAdd $nk $ch $tx  } elseif {$opt eq $eTxFile(del)} {    etfProcEdit $nk $ch $tx del  } elseif {$opt eq "" || $opt eq $eTxFile(list)} {    etfProcRead $nk $ch $tx file  } elseif {$opt eq $eTxFile(read)} {    etfProcRead $nk $ch $tx  } elseif {$opt eq $eTxFile(edit)} {    etfProcEdit $nk $ch $tx  } else {    if {$opt eq $eTxFile(help)} {      puthelp "PRIVMSG $ch :--- ToDo-List script help ---"    } else {      puthelp "PRIVMSG $ch :Invalid ToDo-List command option: $opt"    }    puthelp "PRIVMSG $ch :Valid options for $eTxFile(cmd): \             $eTxFile(add), $eTxFile(del), $eTxFile(list),\             $eTxFile(read), $eTxFile(edit), $eTxFile(help)"    puthelp "PRIVMSG $ch :To get help for an option, use it without arguments."    puthelp "PRIVMSG $ch :Example: $eTxFile(cmd) $eTxFile(add)"    puthelp "PRIVMSG $ch :Example: $eTxFile(cmd) $eTxFile(del)"  }  return 0}proc etfProcAdd {nk ch tx} {  set tx [split $tx]  if {[lindex $tx 0] eq "end" || [string is digit -strict [lindex $tx 0]]} {    set addat [lindex $tx 0] ; set tx [string trim [join [lrange $tx 1 end]]]  } else {  set addat end  ;  set tx [join $tx]  }  if {$tx eq ""} {  set add "$::eTxFile(cmd) $::eTxFile(add)"    puthelp "PRIVMSG $ch :Correct syntax is: $add \[position\] &lt;text to add&gt;"    puthelp "PRIVMSG $ch :Example: $add Text to add at end of the list."    puthelp "PRIVMSG $ch :Example: $add end Text to add at end of the list."    puthelp "PRIVMSG $ch :Example: $add 4 Text to add at list line 4."    return  }  set tf $::eTxFile(file)  if {![file exists $tf]} {  set addat end  ;  set nofile 1  }  if {$addat ne "end"} {  set tx "$addat $tx"    etfProcEdit $nk $ch $tx add  ;  return  }  set id [open $tf a]  ;  puts $id $tx  ;  close $id  if {![file exists $tf]} {    puthelp "PRIVMSG $ch :Unable to find or make ToDo text file: $tf"  } elseif {[info exists nofile]} {    puthelp "PRIVMSG $ch :Added line to new ToDo-List: $tx"  } else {    puthelp "PRIVMSG $ch :Added line at end of ToDo-List: $tx"  }  return}proc etfProcRead {nk ch tx {do line} } {  set tf $::eTxFile(file)  if {![file exists $tf]} {    puthelp "PRIVMSG $ch :ToDo-List is currently empty."  ;  return  }  if {$do eq "line" &amp;&amp; ![string is digit -strict $tx]} {    set read "$::eTxFile(cmd) $::eTxFile(read)"    puthelp "PRIVMSG $ch :Correct syntax is: $read &lt;line#&gt;"    puthelp "PRIVMSG $ch :Example: $read 4"    return  }  set tid [open $tf]  ;  set lnum 0  while {![eof $tid]} {  set line [gets $tid]    if {$line ne ""} {  incr lnum      if {$do eq "file"} {  puthelp "PRIVMSG $ch :\[$lnum\]  $line"      } elseif {$lnum==$tx} {        puthelp "PRIVMSG $ch :\[$lnum\]  $line"  ;  break      }    }  }  close $tid  if {$lnum=="0"} {    puthelp "PRIVMSG $ch :ToDo-List is currently empty." ;  return  }  if {$do eq "line" &amp;&amp; $tx&gt;$lnum} {  set tl line    if {$lnum&gt;"1"} {  set tl lines  }    puthelp "PRIVMSG $ch :List line $tx doesn't exist ($lnum $tl in the list)"  }  return}proc etfProcEdit {nk ch tx {do edit} } {  set tf $::eTxFile(file)  if {![file exists $tf]} {    puthelp "PRIVMSG $ch :ToDo-List is currently empty."  ;  return  }  set tx [split $tx]  if {$do eq "edit"} {    if {[llength $tx]&lt;"2" || ![string is digit -strict [lindex $tx 0]]} {      set edit "$::eTxFile(cmd) $::eTxFile(edit)"      puthelp "PRIVMSG $ch :Correct syntax is: $edit &lt;line#&gt; &lt;new edited text&gt;"      puthelp "PRIVMSG $ch :Example: $edit 4 New text to replace list line 4."      return    }  } elseif {$do eq "del" &amp;&amp; ![string is digit -strict [lindex $tx 0]]} {    set del "$::eTxFile(cmd) $::eTxFile(del)"    puthelp "PRIVMSG $ch :Correct syntax is: $del &lt;line#&gt;"    puthelp "PRIVMSG $ch :Example: $del 4"  ;  return  }  set find [lindex $tx 0]  ;  set tx [string trim [join [lrange $tx 1 end]]]  set new [file dirname $tf]/newfile.tmp  ;  set nid [open $new w]  set tid [open $tf]  ;  set lnum 0  while {![eof $tid]} {  set line [gets $tid]    if {$line ne ""} {  incr lnum      if {$lnum==$find} {        if {$do eq "edit"} {          puthelp "PRIVMSG $ch :Replaced line $lnum text: $line"          puthelp "PRIVMSG $ch :with the new text line: $tx"          puts $nid $tx        } elseif {$do eq "del"} {          puthelp "PRIVMSG $ch :Deleted line $lnum text: $line"        } elseif {$do eq "add"} {          puthelp "PRIVMSG $ch :Added new line $lnum text: $tx"          puts $nid $tx  ;  puts $nid $line        }      } else {  puts $nid $line  }    }  }  close $tid  if {$find&gt;$lnum} {    if {$do eq "add"} {  incr lnum      puthelp "PRIVMSG $ch :Added new line $lnum text: $tx"      puts $nid $tx  ;  close $nid  ;  file rename -force $new $tf    } else {      if {$lnum&gt;"0"} {  set tl line        if {$lnum&gt;"1"} {  set tl lines  }        puthelp "PRIVMSG $ch :List line $find doesn't exist ($lnum $tl in the list)"      } else {  puthelp "PRIVMSG $ch :ToDo-List is currently empty."  }      close $nid  ;  file delete $new    }  } else {  close $nid  ;  file rename -force $new $tf  }  return}putlog "EditTextFile (ToDo-List ver) Ver. 0.4 by SpiKe^^ loaded."</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Sun Jul 26, 2015 2:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[maniak]]></name></author>
		<updated>2015-07-24T16:34:31-04:00</updated>

		<published>2015-07-24T16:34:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104321#p104321</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104321#p104321"/>
		<title type="html"><![CDATA[Todo-list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104321#p104321"><![CDATA[
Hello people,<br><br>I have been looking for a simple todo-list script. But havent found anything.<br><br>Im thinking commands should be something like this:<br><br>!todo add<br>!todo del<br>!todo<br><br><strong class="text-strong">!todo add Upgrade server to 1.1</strong> (adds this to the todo-list)<br><strong class="text-strong">!todo del Upgrade server to 1.1</strong> (removes this from the todo-list)<br><strong class="text-strong">!todo</strong> (announces all things added to the todo-list with what date its added)<br><br><span style="text-decoration:underline"><strong class="text-strong">Examples:</strong></span><br><br><strong class="text-strong">!todo add</strong> Updgrade server to 1.1<br>&lt;Botnick&gt; Upgrade server to 1.1 added to list<br><br><strong class="text-strong">!todo del</strong> Upgrade server to 1.1<br>&lt;Botnick&gt; Upgrade server to 1.1 removed from list<br><br><strong class="text-strong">!todo</strong><br>&lt;Botnick&gt; --- Things to do ---<br>&lt;Botnick&gt; [2015-05-22] Upgrade server to 1.1<br>&lt;Botnick&gt; [2015-06-10] Fix auto-op<br>&lt;Botnick&gt; [2015-07-24] Fix new cool script<br>                 --- End of List ---<br><br>Something like that. Is there any script you know about that works similar to this? Or is this maybe something you could create?<br><br>Please tell me if anything is unclear or if you have any good ideas for this.<br><br>Thanks in advance!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12554">maniak</a> — Fri Jul 24, 2015 4:34 pm</p><hr />
]]></content>
	</entry>
	</feed>
