Sarah Clone Posts: 4
| [ Code: | function ChatArrival(self, nick, chat) if (string.find(string.lower(chat),'lol')) then bot:SendChat('L'..string.rep('o',math.random(1,10))..'L'); end; end; bot = GetNewBot(); bot.Name = 'lolbot'; bot.Connection = 'DSL'; bot.Description = 'LollerBot'; bot.Tag = '<++ V:0.674,M:A,H:4/0/0,S:10>'; bot.Password = 'test'; bot.Share = 13283297257; bot:Connect('nemesis.te-home.net',411); | This little script replies to every "lol" typed in chat with LooL with random number of o's :wink:
|