forked from MTSR/telegram
Fail if token is not specified
This commit is contained in:
parent
6e38773fb9
commit
5807ed7b92
4
init.lua
4
init.lua
@ -6,6 +6,10 @@ local telegram = {}
|
|||||||
local token = minetest.settings:get("telegram.token")
|
local token = minetest.settings:get("telegram.token")
|
||||||
local chat_id = minetest.settings:get("telegram.chatid")
|
local chat_id = minetest.settings:get("telegram.chatid")
|
||||||
|
|
||||||
|
if not token then
|
||||||
|
error("Bot token should be specified in the config in order to work.")
|
||||||
|
end
|
||||||
|
|
||||||
local UPDATES_TIMEOUT = 1 -- seconds
|
local UPDATES_TIMEOUT = 1 -- seconds
|
||||||
local UPDATES_LIMIT = 10
|
local UPDATES_LIMIT = 10
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user