-- TrickerBot2.lua, created by Ptaczek Dec-24, 2002
-- Just see how to implement the NMDC TriggerBot in LUA :)
-- changes
-- Feb-24, 2003, v2.0 Modification for DataArrival return value.
-- Tiny changes by VidFamne with lot of help by Piglja
-- VidFamne added Pigljas time-function, and some more trigs
-- A bug-fix by VidFamne, hopefully. And added some more triggs ;)
-- A new bug-fix ( for the "!me-command" ) by VidFamne, added ( 09.04.2003 ).
-- Added MatrixX On/Off function. Just type +quiet in mainchat to stop the Bot,
-- and +talk to start the Bot again. By VidFamne ( 05.05.2003 )
-- Bug-fix by [AF]Mike
botname = "I Robot"
trigall=1
trigs = {
["lol"]={
"Yeah, [USER] that was funny, Hahahaha.",
"Hmm, ok that was funny, I think :)",
"what! [USER] why are you laughing?",
},
hehe={
"Yeah, [USER] that was funny, Hahahaha.",
"Hmm, ok that was funny, I think :)",
},
message={
"The Minimum share size will be increased to 10gb as of Saturday 22 Jan 2005 if this may be a problem for some of you pls PM me Dibbler",
},
haha={
"Yeah, [USER] that was funny, Hahahaha.",
"talking to yerself again Krugar :)",
},
cooont={
"Hey, [USER] Is that Geordie speak, Hahahaha.",
"Bad Word introduced by Krugar:)",
},
rofl={
"Yeah, [USER] that was funny, Hahahaha.",
"Hmm, ok that was funny, I think :)",
"what! [USER] why are you laughing?",
},
bastid={
"[USER] calling yourself names again Hahahaha.",
"Hmm, ok that was funny, I think :)",
},
lmao={
"Yeah, [USER] that was funny, Hahahaha.",
"Hmm, ok that was funny, I think :)",
"what! [USER] why are you laughing?",
"hohohohoh"
},
bye={
"See ya, [USER]",
"Bye, [USER] .....*sniff*",
"Hey, [USER] get your ass back here. Hehe just kidding, if U have to go U have to go, Bye",
},
cya={
"See ya, [USER]",
"Bye, [USER] .....*sniff*",
},
["cu"]={
"See ya, [USER]",
"Bye, [USER] .....*sniff*",
"Hey, [USER] get your ass back here. Hehe just kidding, if U have to go U have to go, Bye",
},
fuck={
"Watch IT [USER]!! One more line of code and i could kick your ass!",
"I hate it when you talk like that!",
"Don't ever insult me again",
},
fucker={
"Watch IT [USER]!! One more line of code and i could kick your ass!",
"I hate it when you talk like that!",
"Don't ever insult me again",
},
["shut up"]={
"Make me!",
"Ooh! I'm wounded!",
"I'll shut up when I damn well please",
},
stfu={
"Make me!",
"Ooh! I'm wounded!",
"I'll shut up when I damn well please",
},
["hi"]={
"Hello [CURUSER]",
"Hey [CURUSER]",
"Wassup [CURUSER]",
},
hello={
"Hello [CURUSER]",
"Hey [CURUSER]",
},
hey={
"Hello [CURUSER]",
"Hey [CURUSER]",
},
drunk={
"me dRunk? -*- hik -*-",
"pftftt paff the boffle bartender pfffttttttt",
"I just drank a little...",
"I am not drunk!!",
},
["bot"]={
"Bots suck!",
"Direct Connect bots are lame...",
"A bot? we'll get along fine as soon as you realize I'm God.",
"Me? I don't think so...",
"Don't lie!",
"piece of shit! I 've been found out! -NOT-",
"I am quite human...",
"bite me!",
"eat shit! I am not a bot!",
"a bot?",
"What the shit is a bot?",
"You don't think my name is 'Bot' do you?",
"Are you trying to say that I am a machine?",
"ME? HAHA",
"I am a real person!",
"I am not a bot, I am a real human!",
"I may be dumb, but I am not a bot!",
},
drug={
"drugz?",
"illegal substances?",
"narcotics?",
"sniiiiiifffffff",
"Me drugs? never!",
"I think all the drugs are smuggled in from the planet 'Uranus'",
"whehhwewe! pretty elephants!",
"*snif* ahh!"
},
drink={
"gulp, gulp, gulp",
"*takes big drink*",
"Bartender! pour me another!",
"hik!",
"I am thirsty...",
"pass the bottle",
"*takes a shot*",
"I need another cool one",
"this bud's for me! *gulp*",
"I can drink 16 six packs!",
"All American beer sucks!",
"Dutch beer is GEWD!",
"aye... I'll drink any man under the table!",
"*reaches for another beer*",
"*burp*",
},
sorry={
"don't worry about it",
"that's ok ",
"ok",
"that's allright",
"fine",
"as long as your sorry...",
"allright",
"I feel you didn't really mean that...",
"you don't sound sincere",
"are you really sorry?",
"forget it",
"no sweat",
"ok"
},
wassup={
"hunting crocodiles",
"nothing at the moment",
"eating",
"eating pizza :)",
"changing the tires on my dodge",
"juggling chainsaws",
"drinking beer",
"smoking up a storm",
"belly-dancing",
"hacking microsoft.com",
"trying to keep awake!",
"watching television",
},
["gay"]={
"does it matter if I am ?",
"what difference does it make whether or not I am",
"of course not, don't be silly",
"Whether I'm or not is my secret if I lift shirts thats up to me",
"why do you want to know?",
"why are you so nosy?",
},
bitch={
"Who are you calling a bitch??",
"Oh, I'm upset gonna BITCH SLAP you now",
"VidFamne is a bitch!",
"[CURUSER] is always trying to make me his bitch",
"I can be a bitch!",
"Hey [CURUSER], that is no way to talk!",
"Do you think foul language impresses me?",
"A bitch is a female dog"
},
yeah={
"yes",
"yep",
"uh huh",
"100%",
"bang on!",
"you bet",
"uh-hu",
"yes",
"of course!",
},
slot={
"Yeah i gotta slot for ya",
"As if you need another one of those",
"Pull your finger out of your ass and youd have a free one",
"A slot...a slot omg not again"
}
}
function Main()
frmHub:RegBot(botname)
end
function ChatArrival(User, data)
status=string.sub(data,1,string.len(data)-1)
-- parse the command
s,e,cmd = string.find( status, "%b<>%s+(%S+)" )
if (cmd=="+quiet") then
trigall=0
SendToAll(botname, "Hmf, If you want me to be quiet you only have to ask Asshole :(( ")
return 1
elseif (cmd=="+talk") then
trigall=1
SendToAll(botname, "You are not worthy nor my Master, but as i'm a script i have no choice :-)")
return 1
end
-- get the msg only using regular expression
s,e,msg = string.find(data, "%b<>([%a ]+)")
-- look in the table
if trigall==1 then
for key, value in trigs do
for key2, value2 in value do
if( string.find( string.lower(msg), key) ) then
else break
end
if( string.find( string.lower(msg), "!me") ) then
t="**"..User.sName
data=string.gsub (msg, "!me", t, 1 )
end
SendToAll( data ) -- send the original data
SetTimer(700)
StartTimer()
answer, x = string.gsub(value[math.random(1,table.maxn(value))], "%b[]", curUser.sName)
return 1; -- tell the hub we have processed the data
end
end
end
end
function OnTimer()
SendToAll( botname, answer ) -- send bot's answer
StopTimer()
end
Use the [ code], Luke. bastya_elvtars
thx Mutor