This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Random URL's When Triggered.

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
C
Cletus
Voice
Posts: 19
Joined: Sun Aug 06, 2006 6:01 pm

Random URL's When Triggered.

Post by Cletus »

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.
C
Cletus
Voice
Posts: 19
Joined: Sun Aug 06, 2006 6:01 pm

Post by Cletus »

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.
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

If you want to extract a random line from a list, you can benefit from this example:

Code: Select all

set mylist {
 "line 1"
 "line 2"
 "line 3"
 "line 4"
 "line 5"
}

set randline [lindex $mylist [rand [llength $mylist]]]
Post Reply