| View previous topic :: View next topic |
| Author |
Message |
MenzAgitat Op

Joined: 04 Jul 2006 Posts: 118 Location: France
|
Posted: Wed May 13, 2009 6:51 am Post subject: |
|
|
@ scooterh :
Did you read the description ?
On the first message of this thread, you can read :
| Quote: | This script adds the following commands:!addquote <quote>
!quote <quote number> [#chan]
!quoteinfo <quote number> [#chan]
To display some informations about a given quote. !delquote <quote number>
!randquote [#chan]
To display a random quote. !lastquote [#chan]
To display the last quote. !findquote [-all/#chan] <search argument(s)>
To look for a quote.
Put some quotation marks around your search arguments to look for an exact match.
Use the -all option to do a global search in every channel's databases OR specify a chan. !deletedquoteinfo <quote number>
To display some informations about a deleted quote (admin command) !undelquote <quote number>
To restore a deleted quote (admin command) !forcedelquote <quote number>
To delete a quote, even if you are not its author. (admin command) !cancelquote <latest quote number>
To cancel the latest stored quote (Does not leave any remains in the database). (admin command)
|
|
|
| Back to top |
|
 |
ajc13 Voice
Joined: 13 Oct 2009 Posts: 4
|
Posted: Wed Oct 14, 2009 12:08 am Post subject: |
|
|
Good script, but some thoughts:
Re sharing quotes I made a symlink from an existing quote file which appears to work for the quote script, allowing one file for multiple rooms.
IE:
cd ~/eggdrop/quotes.db
ln -s quotes.exists quotes.new
Also, it'd be useful if one could specify the command character in one place such that it's changed in all commands and examples.
IE, I use .{quotestuff} not !{quotestuff}
Since there are so many commands, a .quotehelp to summarize things would be helpful.
Lastly any thoughts of integrating into .chanset ?
---
Thanks again, |
|
| Back to top |
|
 |
demonicpagan Voice
Joined: 10 May 2010 Posts: 2
|
Posted: Fri Jul 16, 2010 6:33 am Post subject: Re: This script using eggdrop v1.6.18 |
|
|
| jagular wrote: | I have added the following line to my eggdrop's .conf file: source scripts/public_quotes_system.tcl.
Made settings to the public_quotes_system.tcl file as indicated by the commented documentation. The directory named quotes.db is not created.
Is this an script/eggdrop version problem? Is anyone using this script currently? I would love some feedback. Looks like a great script. What am i doing wrong? |
This is a really old thread, but I just recently downloaded this script and am having this similar issue. I'm not having any errors returned, the eggdrop is able to write to the directory because I issued the file mkdir quotes.db via tcl on the bot and it created it.
I am finding that the bot isn't responding to any of the commands given from this script and I have the channel specified in the variable allowed_chans. Any assistance would be greatly appreciated. |
|
| Back to top |
|
 |
Football Master
Joined: 26 Dec 2008 Posts: 205 Location: Quakenet, #Football
|
Posted: Fri Jul 16, 2010 8:26 am Post subject: |
|
|
Would be nice if the script could maintain a website and update it with the quote, a full list of the quotes. _________________ Idling at #Football, Quakenet. |
|
| Back to top |
|
 |
x0x Op
Joined: 10 Feb 2009 Posts: 140
|
Posted: Fri Apr 12, 2013 6:59 am Post subject: |
|
|
How to support networks with &, % and ~ user modes?
This is what I've set in my eggdrop config file: set opchars "@%&~"
And this is what I've set in the quote script config:
variable delquotecmd "!delquote"
# authorizations for !delquote
variable delquoteauth "-|o"
Still, nobody can delete quotes. Help? My chan ops do not have an account at the bot. |
|
| Back to top |
|
 |
Madalin Master

Joined: 24 Jun 2005 Posts: 310 Location: Constanta, Romania
|
Posted: Fri Apr 12, 2013 9:18 am Post subject: |
|
|
Why dont you add you chanops to the eggdrop and then -|o will work _________________ https://github.com/MadaliNTCL - To chat with me: https://tawk.to/MadaliNTCL |
|
| Back to top |
|
 |
x0x Op
Joined: 10 Feb 2009 Posts: 140
|
Posted: Fri Apr 12, 2013 9:19 am Post subject: |
|
|
| Because they change quite often in this particular example. |
|
| Back to top |
|
 |
Madalin Master

Joined: 24 Jun 2005 Posts: 310 Location: Constanta, Romania
|
Posted: Fri Apr 12, 2013 9:22 am Post subject: |
|
|
In this case i dont know if i would be in that situation i would have created an auth system or a script with whom i could add users to the eggdrop somehow so that they will remember or make the script work on another system like [isvoice] _________________ https://github.com/MadaliNTCL - To chat with me: https://tawk.to/MadaliNTCL |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Fri Apr 12, 2013 10:58 pm Post subject: |
|
|
| x0x wrote: | How to support networks with &, % and ~ user modes?
This is what I've set in my eggdrop config file: set opchars "@%&~"
And this is what I've set in the quote script config:
variable delquotecmd "!delquote"
# authorizations for !delquote
variable delquoteauth "-|o"
Still, nobody can delete quotes. Help? My chan ops do not have an account at the bot. |
http://ereader.kiczek.com/public_quotes_chanops.txt
This only lets those with the opchars you have selected modify everything if they have these modes in a channel. It does not use eggdrop user flags any longer. Those "auth" settings within the cofnig are removed as they no longer have any meaning. This should accomplish the task now. There are string/list (shimmering) issues all over in this script (using join on strings? using lindex on strings? forgetting to split a string before using lindex?? >_<) They should only cause issues with special characters, the shimmering effect only slows the code down a little (so little you dont notice combined with irc lag).
Also, to enable in your channel:
.chanset #yourchan +quotes
It no longer requires editing the script to add/remove channels. You must trust your channel operators, they have full control over this script now. _________________ speechles' eggdrop tcl archive |
|
| Back to top |
|
 |
SpiKe^^ Owner

Joined: 12 May 2006 Posts: 792 Location: Tennessee, USA
|
Posted: Fri Apr 12, 2013 11:24 pm Post subject: |
|
|
But that disables this setting completely and makes the script reply in all channels the bot is on...
| Code: | | variable allowed_chans {#yourchan} |
Maybe something more like this??
| Code: | proc pubqsys::channel_check {chan nick} {
if {[isop $chan $nick] && [lsearch -exact $pubqsys::allowed_chans $chan]>"-1"} { return 1 } { return 0 }
} |
_________________ SpiKe^^
Get BogusTrivia 2.06.4.7 at www.mytclscripts.com
or visit the New Tcl Acrhive at www.tclarchive.org
. |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Sat Apr 13, 2013 1:05 am Post subject: |
|
|
| SpiKe^^ wrote: | | But that disables this setting completely and makes the script reply in all channels the bot is on... |
| Code: | setudef flag quotes
...
if {[pubqsys::channel_check $chan $nick] == 0} {
...
proc pubqsys::channel_check {chan nick} {
if {[channel get $chan quotes] && [isop $chan $nick]} { return 1 }
return 0
}
... |
I've altered the procedure to check for more than it originally did and altered every invocation as well. Then changed how it builds allowed_channels internally in each procedure.
| Code: | | set allowed_chans [list]; foreach chan [channels] { if {[channel get $chan quotes]} { lappend allowed_chans $chan } } |
This behaves identically to having it "static" within the config as a variable. But with the benefit you can dynamically at any time turn it on/off in channels on a whim. The quotes are different for each channel by the way. You use the -all switch to make the channel irrelevant.
So really, I took the limitations the script had away and made it perform exactly as x0x has requested.  _________________ speechles' eggdrop tcl archive |
|
| Back to top |
|
 |
x0x Op
Joined: 10 Feb 2009 Posts: 140
|
Posted: Sat Apr 13, 2013 6:25 am Post subject: |
|
|
| Very, very nice! THANK you! |
|
| Back to top |
|
 |
x0x Op
Joined: 10 Feb 2009 Posts: 140
|
Posted: Sat Apr 13, 2013 6:36 am Post subject: |
|
|
| Don't think it works, there is no "-quotes" so no option to set "+quotes". |
|
| Back to top |
|
 |
SpiKe^^ Owner

Joined: 12 May 2006 Posts: 792 Location: Tennessee, USA
|
Posted: Sat Apr 13, 2013 10:23 am Post subject: |
|
|
Search for this line in the script and see if it's there...
| Code: | | setudef flag quotes | If it's not, add it to the top of the script.
Then in dcc chat with the bot, enable the script for each channel you want the script to run in, with...
| Quote: | | .chanset #yourchan +quotes |
_________________ SpiKe^^
Get BogusTrivia 2.06.4.7 at www.mytclscripts.com
or visit the New Tcl Acrhive at www.tclarchive.org
. |
|
| Back to top |
|
 |
x0x Op
Joined: 10 Feb 2009 Posts: 140
|
Posted: Sat Apr 13, 2013 10:48 am Post subject: |
|
|
Ok, it was missing indeed. Added it, enabled it with the bot. Still does not work.
When someone tries one of the commands:
[16:47:11] Tcl error [pubqsys::quote]: illegal channel: USERSNICKNAME |
|
| Back to top |
|
 |
|