Well, this is a little thing I made for a bot of mine. It records friend codes for the wifi for Nintendo DS and Wii. It is easy to use, just use !writefc friendcodegoeshere to input your friend code and !findfc nickhere to find them. Please tell me what you think, but be gentle this is one of my first scripts that I think are good enough to become public.
On *:TEXT:*:*: {
if (($1 == !writefc) && ($nick !isin $read(FriendCodes.txt))) {
.write FriendCodes.txt Name: $nick Friend Code: $2
.notice $nick Thank you for inputing your Friend Code.
}
elseif (($1 == !writefc) && ($nick isin $read(FriendCodes.txt))) {
.notice $nick You are already in my database. Please do not try again, contact my owner if you need more information.
}
if (($1 == !findfc) && ($2 isin $read(FriendCodes.txt))) {
msg $nick $read(FriendCodes.txt,w,* $+ $2 $+ *)
}
elseif (($1 == !findfc) && ($2 !isin $read(FriendCodes.txt))) {
.notice $nick I am sorry, but the Friend Code you are trying to find is not in my database.
}
}