It was a while ago, but I built this in my free time at uni. It’s a Unity project with a virtual cube that was streamed to YouTube.
You could feed beans to the cube by typing
!feed in the chat.
The pet used a Utility System for controlling its behaviour. It would get hungry, thirsty, tired, bored, and lonely.