Hi, I’m learing python and I was thinking about createing Lemmy bot.

    • Lvxferre
      link
      fedilink
      5
      edit-2
      1 year ago

      …wow.

      I just installed it. I was expecting something like "ah, it knows that a cup should be a certain amount of mililitres, but what if I ask it in grams? Then I put “1 cup sugar”, “grams”… and it returned 200g. It couldn’t find flour so I used butter, 226g. It works!

      Checking /usr/share/units/definitions.units, the devs had the insight to add a lot of cooking stuff to it. Also a way to define your own units. The syntax is an arse but I guess that the bot could handle it.

      This would be great as the “guts” of a really good conversion bot.