Update index.js

Fixes the bot immediately crashing on non playtime based badges such as the "Pillar of Community" badge.