Alorie
- 7 Devlogs
- 6 Total hours
A discord bot that lets you log food by sending a photo, and uses claude's AI to estimate calories and macros automatically. Currently mid rebuild, no commands implemented yet. First project as well! (kindof)
A discord bot that lets you log food by sending a photo, and uses claude's AI to estimate calories and macros automatically. Currently mid rebuild, no commands implemented yet. First project as well! (kindof)
added /compare tonight, send two food pics and AI tells you how they stack up nutrition-wise. kept it neutral on purpose, didn’t want it picking a “winner” since that depends on what someone’s actually going for. also added /commands, it shows you what the bot’s commands are and what they do. more features coming soon
big one tonight. added a real goal command (separate from calcgoal) so you can just punch in a number directly, and both now calculate protein, carb ,fat targets too, not just calories. /log now shows your progress against those targets right after logging, plus AI writes a short one sentence observation about your day’s numbers instead of the bot just dumping raw stats at you. also spent a genuinely painful chunk of the night chasing a “hang” that turned out to not be a hang at all.. turns out i’d added a confidence field to my insert statement but never actually added that column to the database table itself. i wanna kms. more features coming soon
added a delete button right on the log confirmation message so if the bot logs something wrong or you just misclick, you can delete it instantly instead of hunting for the entry id and running a separate command. used discord’s button/view system for this, which was new territory. turns out you can attach interactive buttons to any message and handle clicks as their own separate interaction. also added a safety check so only the person who logged something can delete it, in case someone else is in the same channel. small feature, but makes the bot feel a lot better to use since mistakes are now a one click fix 😊
Added /calcgoal cog, it puts in your height, weight, age, and activity level and calculates a real daily calorie target using the mifflin-st jeor formula, then saves it as your goal automatically. also tried adding a /help command and it turned into a multi-hour nightmare. kept getting “unknown integration” errors no matter what i did. might try to add it again in the future
Got /today working. it now actually shows real calorie numbers instead of just a list of what i ate, plus a total for the day and how i’m doing against my goal if i set one. also had a whole side quest tonight untangling git after moving my project out of onedrive (which, turns out, was actually the reason my bot kept hanging forever on database writes, onedrive syncing was locking the file mid-write 😭😭). had to manually reconnect my local folder back to my github history since the .git folder didn’t come with when i moved things. annoying but got it sorted. next up is /week
Finally got my first real cog working, /log now actually takes my photo, sends it to claude, and gives me back calories and macros. it still might be buggy but it worked for me. more features coming!
Okay so today was mostly just me tearing my bot apart and rebuilding it on a new folder lol. had a whole working version before but it was all just one massive bot.py file so i split it into separate files. also finally got it on github which was it’s own experience 😭 accidentally committed my database file and some python cache junk before i got .gitignore actually working right, so i had to google how to untrack files without deleting them 😪. no actual commands work yet in this version, so it just connects and does nothing basically, but i will be implementing commands soon!