Mysticales wrote:Well without any edits. I do !youtube and it just kept saying no videos found. Like if it had a search issue.
As for what I tried to edit (and revert) was just the section that tells how many results to give back on a command. Just the number. Using an Unreal irc server. TCL is 8.4 but dont think that should be a factor in this?
The script is written to support eggdrop 1.6.17/tcl 8.4 and any version on up. It supports utf-8 patching. It supports so much I would rather people read the config.
So, !youtube isn't working. This is known already. Youtube results are set to 0 in the config. Didn't you notice this? Youtube instead has a "custom trigger-phrase" which wraps !yt and !youtube requests instead through as a !google request and adds the phrase "site:youtube.com" to the query. This is clever magic. Custom trigger-phrasing is very powerful.
The list of broken things is as follow:
!images - fixed 100% in my copy
!youtube - haven't even looked at yet
!dailymotion - haven't even looked at yet
!myspace - haven't even looked at yet
!local - partially fixed 50% in my personal copy
!google - investigating/working on, personal copy 60%
There may be some others. But for the most part I know about the above. In the last 3 weeks, for my normal full-time job, I've put in roughly 60hrs week. This leaves none for this project as it is a for free endeavor. It doesn't feed me or buy me clothing. This next upcoming week I shall have several days where I should be able to focus some attention on the things mentioned above.
Here is how you set up the script... Just source it.
__AFTER__ it is sourced, and you have confirmed it works. At this point go ahead and make changes. Most people WILL need to change "use_gzip" variable setting within the config to 0. The script just refuses to work until you do so. So make that change if this is you. Other settings have equal effect, it depends on the platform and the way the bot is compiled. If you _ARE NOT_ utf-8 patched, there are ways to work around this but the settings to do this are not included. You need to ask what they would be. It requires building a list within the encode_strings section of the script and enabling utf8workaround. It's a very complicated attempt to make this all work right for everybody. No matter what country, what language, what platform, etc you use. It is quite damn good at what it does right.
Consider it more, proof-of-concept.. Something to show that it can be done, and a method to implement it as "proof". So until next week, hopefully sooner who knows, when I post again. Remember to be patient. Everything falls into place eventually. Time is our enemy, not me.
Code: Select all
# number of search results/image links to return, 'define:' is always 1 as some defs are huge
# ------
variable search_results 3
variable image_results 4
variable local_results 4
variable group_results 3
variable news_results 3
variable print_results 3
variable video_results 4
variable scholar_results 4
variable youtube_results 0
variable locate_results 1
variable gamespot_results 3
variable trans_results 1
variable daily_results 4
variable gamefaq_results 20
variable blog_results 3
variable ebay_results 3
variable popular_results 10
variable rev_results 1
variable wiki_results 1
variable wikimedia_results 1
variable recent_results 10
variable mininova_results 3
variable ign_results 3
variable myspacevids_results 3
variable trends_results 25
variable helpbot_results 1
See that big ol stuff up there? To turn a trigger off, set its related "results" setting to 0. See how youtube is up there? Has that 0 next to it. Yeah, youtube is really a custom-trigger phrase crafted to pass thru google. Custom-trigger phrase passing is my "invention" and contribution to the google script.
Code: Select all
# Custom Trigger Phrasing
# This is used to customize triggers and for
# constructing phrases to pass, format is:
# "custom-trigger:trigger-to-associate-with:phrase-to-pass"
# within the phrase-to-pass, %search% = the users input.. but,
# if this is passed onto another custom trigger it will become
# the enitre phrase which was passed from the trigger before it.
# hopefully people understand how to use these, and remember
# to read the lines below this at least twice before
# constructiong your phrasing...
# DO NOT USE YOUR COMMAND CHAR IN THESE IT IS ASSUMED.
# special tcl characters MUST be escaped for you to acheive greatness.
variable my_customs {
"ch:g:%search% +site:computerhope.com"
"eh:g:%search% +site:egghelp.org"
"mi:g:%search% +site:mircscripts.org"
"rw:wm:.wiki.roms-isos.com %search%"
"gw:wm:.wiki.gbatemp.net/wiki %search%"
"ed:wm:.encyclopediadramatica.ch %search%"
"un:wm:.uncyclopedia.wikia.com %search%"
"wq:wm:.en.wikiquote.org/wiki %search%"
"lw:wm:.lyricwiki.org %search%"
"wk:wm:.en.wiktionary.org/wiki %search%"
"bible:wm:.biblewiki.be/wiki %search%"
"znc:wm:.en.znc.in/wiki %search%"
"gbr:g:.com.br %search%"
"got:g:%search% +ext:torrent"
"rs:g:%search% +inurl:rapidshare"
"rsmp3 r3 rs3:rs:%search% inurl:mp3"
"kiczek:gf:%search% in usa"
"mysite:g:+site:%%1%% +ext:%%2%% %%3-end%%"
"cg:g:+inurl:%%1%%.craigslist +%%2-end%%"
"kt:g:%search% +site:kotaku.com"
"gay:f:%search% +ass +gay vs %search% +vagina -gay"
"yt:g:%search% site:youtube.com"
"ts:g:%search% site:twitter.com"
"ft:wm:.futurama.wikia.com %search%"
"fg:wm:.familyguy.wikia.com %search%"
"ad:wm:.americandad.wikia.com %search%"
"sp:wm:.southpark.wikia.com %search%"
"sw:wm:.starwars.wikia.com %search%"
"st:wm:.malf.wikia.com %search%"
"na:wm:.naruto.wikia.com %search%"
"in:wm:.inuyasha.wikia.com %search%"
"gr:wm:.gremlins.wikia.com %search%"
"wow:wm:.wowwiki.com %search%"
"smf:wm:.smurfs.wikia.com %search%"
"sm:wm:.sailormoon.wikia.com %search%"
"pk:wm:.pokemon.wikia.com %search%"
"ss:wm:.strawberryshortcake.wikia.com %search%"
"mlp:wm:.mlp.wikia.com %search%"
"lps:wm:.lps.wikia.com %search%"
"ant:wm:.ants.wikia.com %search%"
"gm:wm:.gaming.wikia.com %search%"
"nt:wm:.nothing.wikia.com %search%"
"ff:wm:.finalfantasy.wikia.com %search%"
"ok:wm:.openkinect.org/wiki %search%"
"bl:wm:.borderlands.wikia.com %search%"
"egg:wm:.eggwiki.org %search%"
}
All of these above are creating more "triggers". If you need help understanding how these work... ASK