Skip to content

Commit

Permalink
fix assert for superadmins json
Browse files Browse the repository at this point in the history
  • Loading branch information
NotAFile committed Dec 18, 2018
1 parent 4f35347 commit ad50690
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker/docker-compose.webhooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ services:
- ./locales:/usr/local/openresty/nginx/locales
- ./lua:/usr/local/openresty/nginx/lua
ports:
- "80:80"
- "8080:80"

redis:
command: --save "" --appendonly no
Expand Down
4 changes: 2 additions & 2 deletions lua/groupbutler/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ local _M =
{
stats = os.getenv('LOG_STATS')
},
superadmins = assert(json.decode(os.getenv('SUPERADMINS')),
'You must export $SUPERADMINS with a JSON array containing at least your Telegram ID'),
superadmins = json.decode(assert(os.getenv('SUPERADMINS'),
'You must export $SUPERADMINS with a JSON array containing at least your Telegram ID')),
cmd = '^[/!#]',
bot_settings = {
old_update = tonumber(os.getenv("GB_OLD_UPDATE")) or 7, -- Age in seconds for updates to be skipped
Expand Down

0 comments on commit ad50690

Please sign in to comment.