Add server config file

This commit is contained in:
Zed 2019-07-31 02:15:43 +02:00
commit 6a9d182249
8 changed files with 53 additions and 23 deletions

View file

@ -26,3 +26,6 @@ proc getCachedProfile*(username: string; force=false): Future[Profile] {.async.}
result = await getProfile(username)
if result.username.len > 0:
result.insert()
proc setProfileCacheTime*(minutes: int) =
profileCacheTime = initDuration(minutes=minutes)