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.

send link on text

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
User avatar
Alboz
Voice
Posts: 5
Joined: Wed Feb 17, 2010 4:06 pm
Location: Albania
Contact:

send link on text

Post by Alboz »

I just need a script so that when someone types !forum the eggdrop bot says the forum url and so I can add more for other urls please.
t
tueb
Halfop
Posts: 76
Joined: Thu Oct 04, 2007 6:09 am
Location: #quiz.de @ irc.gamesurge.net
Contact:

Post by tueb »

Hi,

this would be the simplest script to do so:

Code: Select all

bind pub -|- !forum typ_forum

proc typ_forum {nick uhost handle channel text} {
   puthelp "PRIVMSG $channel :\[\002Forum\002\] http://www.moxquiz.de"
}
by changing "forum" and the url into something else you can add new links.



this woul be a more sophisticated script with a flood control:

Code: Select all

 
 set fl_flood_control 0
 set fl_msg {
      "\[\002Forum\002\] http://www.moxquiz.de/"
 }

bind pub -|- !forum fl:reply

proc fl:reply {nick uhost handle channel text} {
   global fl_flood_control fl_msg
   if {$fl_flood_control == "1"} {return 0}
   set fl_flood_control 1
   utimer 7 [list set fl_flood_control 0]
   set temp_fl $fl_msg
   set temp_fl [lindex $temp_fl [rand [llength $temp_fl]]]
   putquick "PRIVMSG $channel :$temp_fl"
   return 0
 }
i got this from someone else. unfortunately dont remember from whom.

tueb
#Quiz.de @ irc.GameSurge.net
JavaChat
d
doggo
Halfop
Posts: 97
Joined: Tue Jan 05, 2010 7:53 am
Contact:

Post by doggo »

here you go tested and working just change the url to your own

usage

Code: Select all

.chanset #somewere +foum or -forum

Code: Select all

# Rls: SaNcTuM_help.v1.0
# Date: 27/04/10
# Coded by: doggo
# Contact: #alt.binaries.inner-sanctum@EFNET
#
# Script Starts Here - DO NOT EDIT BELOW!



## forum ##

set forum "!forum"

bind PUB $forum forumcom 

proc forumcom {nick uhost hand chan text} { 
   global botnick 
   if {![channel get $chan forum]} {return 0}
   puthelp "NOTICE $nick :\0033http://doggo.is-a-geek.com"  
}

Code: Select all

[12:27pm] <doggo> -forum
[12:27pm] -tsara- http://doggo.is-a-geek.com
to add more ! cmd's just alter the procs and binds to yr own ;)

hope this helps
User avatar
Alboz
Voice
Posts: 5
Joined: Wed Feb 17, 2010 4:06 pm
Location: Albania
Contact:

Post by Alboz »

how can convert these codes for !radio ? if someone say in channel !radio eggdrop bot send radio link
d
doggo
Halfop
Posts: 97
Joined: Tue Jan 05, 2010 7:53 am
Contact:

Post by doggo »

Code: Select all

set forum "!forum" 

bind PUB $forum forumcom 

proc forumcom {nick uhost hand chan text} { 
simply by changing the procs and trigger to..

Code: Select all

set radio "!radio" 

bind PUB $radio radiocom 

proc radiocom {nick uhost hand chan text} { 
hope this helps :)
Post Reply