Jimmy062006/Opux

System.NullReferenceException

MyUncleSam opened this issue · 1 comments

Hello,

I updated the bot to the current version. As the config file changed I copy/pasted each setting value from the old one to the new one. But now if I start I get this error:

10.01.18 15:01:12   [   Error]: Object reference not set to an instance of an object.
System.NullReferenceException: Object reference not set to an instance of an object.
   at Opux.Program.<MainAsync>d__32.MoveNext() in /home/stefan/Opux/src/Opux/Program.cs:line 99

The part of the code tries to read the "token" from the "config" part. But it seems something is going wrong.

The beginning of my settings.json (for security reasons I removed the bot token itself):

{
  "config": {
    "token": "BOT_TOKEN_FROM_DISCORD_APP",
    "name": "Opux",
...

Can you help me getting it running again please?

Never mind, I did the settings transfer again and it seems to work now ... no idea why.