feat: presence

This commit is contained in:
f
2025-11-07 11:35:04 -03:00
parent 01833e22ca
commit 9fdf239422
3 changed files with 15 additions and 0 deletions

View File

@ -1,5 +1,9 @@
version: 2.0
shards:
blank:
git: https://github.com/kostya/blank.git
version: 0.2.0
db:
git: https://github.com/crystal-lang/crystal-db.git
version: 0.11.0

View File

@ -12,3 +12,5 @@ dependencies:
github: "will/crystal-pg"
sqlite3:
github: "crystal-lang/crystal-sqlite3"
blank:
github: "kostya/blank"

9
src/presence.cr Normal file
View File

@ -0,0 +1,9 @@
require "blank"
class Object
def presence
return nil if blank?
self
end
end