topkecleon / otouto

A Lua-based Telegram bot with plugins.
http://otou.to
GNU Affero General Public License v3.0
173 stars 112 forks source link

"lua: ./otouto/bot.lua:18: You didn't set your bot token in config.lua!" Well I did. #106

Closed NinjaTurtle007 closed 6 years ago

NinjaTurtle007 commented 6 years ago

I installed the bot as per the quick start instructions on an ubuntu.

Set the bot token and my user ID in the config file and launched it but it shows this:

./launch.sh lua: ./otouto/bot.lua:18: You didn't set your bot token in config.lua! stack traceback: [C]: in function 'assert' ./otouto/bot.lua:18: in function 'init' ./otouto/bot.lua:124: in function <./otouto/bot.lua:123> (...tail calls...) [C]: in ? otouto has stopped. ^C to exit. lua: ./otouto/bot.lua:18: You didn't set your bot token in config.lua! stack traceback: [C]: in function 'assert' ./otouto/bot.lua:18: in function 'init' ./otouto/bot.lua:124: in function <./otouto/bot.lua:123> (...tail calls...) [C]: in ? otouto has stopped. ^C to exit. lua: ./otouto/bot.lua:18: You didn't set your bot token in config.lua! stack traceback: [C]: in function 'assert' ./otouto/bot.lua:18: in function 'init' ./otouto/bot.lua:124: in function <./otouto/bot.lua:123> (...tail calls...) [C]: in ? otouto has stopped. ^C to exit.

topkecleon commented 6 years ago

Looks like you didn't set your bot token in config.lua.

That assertion doesn't check for a valid token, just that config.bot_api_key is set to something.

NinjaTurtle007 commented 6 years ago

well I 100% did set the token

bb010g commented 6 years ago

Could you post your config, with the token characters replaced by X or something?

d0v1k commented 6 years ago

Hi, I'm experiencing the same problem di you manage to fix?

Did you mange to fix this?

bb010g commented 6 years ago

@d0v1k Same thing—could you post your config, with the token characters replaced by X or something?