Added !pass a beer

This commit is contained in:
Cooldude2606
2018-05-18 23:43:16 +01:00
parent f82e8ce815
commit c7487839af
2 changed files with 9 additions and 2 deletions

View File

@@ -54,7 +54,12 @@ local commands = {
timeout=math.floor(180*(math.random()+0.5)),data=player.name
}:on_event('timeout',function(self)
if self.data then game.print{'chat-bot.message',{'chat-bot.make-tea-2',self.data}} end
end):open() return {'chat-bot.make-tea-1'} end
end):open() return {'chat-bot.make-tea-1'} end,
['passabeer']=function(player) Server.new_thread{
timeout=math.floor(180*(math.random()+0.5)),data=player.name
}:on_event('timeout',function(self)
if self.data then game.print{'chat-bot.message',{'chat-bot.get-beer-2',self.data}} end
end):open() return {'chat-bot.get-beer-1'} end
}
Event.register(defines.events.on_console_chat,function(event)