With this script, you can write a message to your bot and it saved the message.
The commands are:
For the guests: !write MESSAGE, !read
for the Admin: !gb on, !gb off
;Guestbook script - Made by toenie
on *:LOAD: {
echo -a 7::12 Thanks for use this guestbook script 7::
%admin = $$?="What is your OWN nickname?"
%gbook = off
}
on *:TEXT:!gb*:#: {
if ($nick == %admin) {
if ($2 == on) { %gbook = on | msg $chan 7::12The guestbook is on7:: | halt }
if ($2 == off) { %gbook = off | msg $chan 7::12The guestbook is turned off7:: | halt }
else { notice $nick 7::2 $2 12Error: Wrong command7:: }
}
}
on *:TEXT:!write*:#: {
if (%gbook == on) { inc %gb.count | write guestbook.txt Nummer:: %gb.count $+ :: Writed by:: $nick :: $2- | notice $nick 7::12Thanks for your reply 7:: }
else { msg $chan 7::12The guestbook is off7:: }
}
on *:TEXT:!read:#: {
if (%gbook == on) {
notice $nick You can read the guestbook now:
%reply = $calc($lines(guestbook.txt)-6)
:replies
if (%reply == $lines(guestbook.txt)) { halt }
else {
inc %reply
notice $nick $read(guestbook.txt,%reply)
goto replies
}
}
if (%gbook == off) { msg $chan 7::12The guestbook is off7:: }
}
;I hope you like this script ;-)
strange. Maybe you can try http://www.kletshoekje.nl/index.php?board=14;action=display;threadid=1115 - That\'s the original script. You must translate it self, because it\'s a dutch script. ;)