Hello first post. Just got started in the world of Eggdrop.
Trying to do a simple script that spits out a url from www.ipdb.org (pinball machine database) after a trigger is entered on the channelipdb followed by the name of a game. This script was originally a wiki script I tried to modify for my own needs. Ie:
!IPDB pinbot should return in the channel for all to see.
#========================================================================
# ** IPDB Quick Link
#========================================================================
# * Description:
#
# * Allows IRC users to link to IPDB quickly through the bot.
# * The default format is:
# !ipdb game name
#
#------------------------------------------------------------------------
# * Features:
#
#========================================================================
# Calls the script when people say !ipdb at the start of the line.
# Changes this to whatever you want to make the script call on other
# keywords.
bind pub - "!ipdb" spidey:ipdb_link
# Two letter language of the wiki you want to link to.
proc spidey:ipdb_link { nick hand chan text } {
# Print link
putserv "PRIVMSG $chan http://$::www.ipdb.org/search.pl?searchtype=quick&any=$text (Requested by \002$nick\002)"
}
# Log the script as successfully loaded.
putlog "IPDB_log: Loaded"
Last edited by johnpursglove on Sat Sep 06, 2008 10:22 pm, edited 1 time in total.
Well I solved my own problem for the most part. Found some stuff here in this forum. Read a few parts and came up with a good answer. Well almost. How can I parse a space in the text.
##################################################################
# Internet Pinball Database Game Look up Script
# For fast searching of Internet Pinball Database
# through a bot.
#
#
# Please Feel free to improve this script in any way
# and use it in your bots!!!
##################################################################
bind pub - "!ipdb" pinbot:ipdbproc
proc pinbot:ipdbproc {name uhost hand chan text} {
puthelp "PRIVMSG $chan http://www.ipdb.org/search.pl?searchtype=quick&any=$text"
}