Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

18
LINES

< > BotCompany Repo | #133 - +15 (pharmacokinetics t calculator)

Lua code

want("#139") -- match
want("#134") -- clockplus
fromSystem("clocktime")

mins = match(input, "+<number>")
if mins ~= nil then
  time = clocktime("x:xx")
  lentime = #time
  mins = tonumber(mins)
  
  -- Note: it seems that exceptions (e.g. attempt to call nil)
  -- in return statements are not reported properly. They show up
  -- as appearing in "loader:34".

  futuretime = clockplus(time, mins)
  log(futuretime)
  return futuretime
end

Author comment

see #131

Changed type to exclude from chat bot list

test run  test run with input  download  show line numbers   

Travelled to 8 computer(s): aoiabmzegqzx, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, tslmcundralx, tvejysmllsmz

No comments. add comment

Image recognition results

Recognizer Recognition Result Visualize Recalc
#308 javax.imageio.IIOException: Can't get input stream from URL! [visualize]

Snippet ID: #133
Snippet name: +15 (pharmacokinetics t calculator)
Eternal ID of this version: #133/1
Text MD5: e0a524ae5fd34d82b4620eea30578030
Author: stefan
Category:
Type: Lua code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-03-01 16:10:24
Source code size: 457 bytes / 18 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 891 / 246
Referenced in: [show references]

Formerly at http://tinybrain.de/133 & http://133.tinybrain.de