| View previous topic :: View next topic |
| Author |
Message |
Cletus Voice
Joined: 06 Aug 2006 Posts: 19
|
Posted: Sun Aug 06, 2006 6:43 pm Post subject: Random URL's When Triggered. |
|
|
I need a script that shoots out a link to a random url when someone types the trigger.
Some features I am looking for:
Channel users can add to the 'database' of links. (database is in quotes here because I am hesitant about this being an actual sql db, I'd prefer it if the added links went to a txt file similar to most quotes scripts).
More than one 'database' category of links.
A solid random code, for spitting out different urls stored.
Ability to create the categories either by editing the tcl or in channel.
Flagged opers have a delete command within channel.
I've seen something similar, a kind of pic bot thing, for porn pics. I won't lie I would probably utilize this for porn pictures as well, but also for more than that. Funny pics for instance, or whatever you can imagine (even links that aren't necessarily pictures). Suppose you have 4 categories of picture links (without being too graphic here I'll try to make these topics fairly mild): funnypics, shockpics, lesbian and tits. The user could do !addpic <category> <url> and this would add the pic to the db. A cool feature might be that that url is tagged with the users nick when it is referenced in the future. Now, the user does !shockpics and he gets a random url from the shockpics category. Flagged oppers could delete broken links, poor images, etc. 1 other command that would be nice would be !categories, which would then show all the database categories available for them to access.
Yeah it's a tall order, but a cool one I think, and I don't know why it's not out there already, perhaps it is, but I feel pretty sure I've thoroughly searched many sites for this.
If someone would like to contact me outside of this forum my email addy is mustytrucker@sbcglobal.net
PS - for simplicities sake, a script where all url additions and categories must be edited in the tcl would be good too. Basically just the random part with various category triggers.
Last edited by Cletus on Thu Apr 05, 2007 6:25 pm; edited 2 times in total |
|
| Back to top |
|
 |
Cletus Voice
Joined: 06 Aug 2006 Posts: 19
|
Posted: Thu Apr 05, 2007 6:23 pm Post subject: |
|
|
been a long time since i posted so i am going to revive this request. it doesn't have to necessarily be as elaborate as what i described above but here's the basics:
after uploading random image to a free hosting site, you input the url to your eggdrop.
eggdrop stores all these url's and when triggered shows a random image url.
hopefully without the need for an sql database. just txt file stored or tcl stored if only the owner would be the only one adding url's, or whatever so long as it doesn't need sql.
maybe there's something this simple already out there? or someone could make it rather easily? but it can be anything from this simple on up to as elaborate as what i described above, or anything in between.
please help, thanks.
PS - URL THiNGiE (located in the tcl archives) is very close for the basic end of what I'm looking for, I think. It just needs a random url feature. |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Fri Apr 06, 2007 6:18 am Post subject: |
|
|
If you want to extract a random line from a list, you can benefit from this example:
| Code: | set mylist {
"line 1"
"line 2"
"line 3"
"line 4"
"line 5"
}
set randline [lindex $mylist [rand [llength $mylist]]] |
_________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|