From 0d52010d45be518b766869f49e1217a51fcfdc67 Mon Sep 17 00:00:00 2001 From: sakamakj <38378426+sakamakj@users.noreply.github.com> Date: Sat, 19 May 2018 13:08:18 +0200 Subject: [PATCH] Pr/1 (#48) * coffee * make coffee * make coffee * food I find it quite funny that arty would pin that message on discord and it is still there. * food I wonder how long that pin will stay about the random food suggestion generator... * food changed to what to eat * food changed to whattoeat * Update chat-bot.cfg * Coffee on twise --- Addons/Admin/auto-chat.lua | 7 +++++++ locale/en/chat-bot.cfg | 3 +++ 2 files changed, 10 insertions(+) diff --git a/Addons/Admin/auto-chat.lua b/Addons/Admin/auto-chat.lua index 2c55273b..9f3b3652 100644 --- a/Addons/Admin/auto-chat.lua +++ b/Addons/Admin/auto-chat.lua @@ -42,6 +42,8 @@ local commands = { ['aids']={'chat-bot.aids'}, ['riot']={'chat-bot.riot'}, ['lenny']={'chat-bot.lenny'}, + -- jokes about food and drink + ['whattoeat']={'chat-bot.food'}, ['orderpizza']=function(player) Server.new_thread{ timeout=math.floor(180*(math.random()+0.5)),data={player.name,0}, reopen=true }:on_event('timeout',function(self) @@ -50,6 +52,11 @@ local commands = { end self.data[2]=self.data[2]+1 end):open() return {'chat-bot.order-pizza-1'} end, + ['makecoffee']=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.make-coffee-2',self.data}} end + end):open() return {'chat-bot.make-coffee-1'} end, ['maketea']=function(player) Server.new_thread{ timeout=math.floor(180*(math.random()+0.5)),data=player.name }:on_event('timeout',function(self) diff --git a/locale/en/chat-bot.cfg b/locale/en/chat-bot.cfg index 203ca6ea..4e731599 100644 --- a/locale/en/chat-bot.cfg +++ b/locale/en/chat-bot.cfg @@ -25,5 +25,8 @@ make-tea-2= ☕ __1__ your tea is done! ☕ order-pizza-1= 🍕 Finding nearest pizza supplier... 🍕 order-pizza-2= 🍕 Figuring out the favourite pizza of __1__ 🍕 order-pizza-3= 🍕 __1__ your pizza is here! 🍕 +make-coffee-1= ☕ Boiling the water and grinding the coffee beans... ☕ +make-coffee-2= ☕ __1__ we ran out of coffe beans! Have some tea instead. ☕ get-beer-1= 🍺 Pouring A Glass 🍺 get-beer-2= 🍻 Chears Mate 🍻 +what-to-eat = Dont know what to make for dinner? Use a random recipe from the random dinner suggestion generator at http://www.whatthefuckshouldimakefordinner.com/