fix: 🐛 motd

This commit is contained in:
ThatOneCalculator 2022-09-13 21:38:02 -07:00
parent c8895e3f03
commit fbaaf2640f

View file

@ -534,7 +534,7 @@ router.get('(.*)', async ctx => {
icon: meta.iconUrl,
splashIcon: splashIconUrl,
themeColor: meta.themeColor,
randomMOTD: motd,
randomMOTD: motd[Math.floor(Math.random() * motd.length)],
privateMode: meta.privateMode,
});
ctx.set('Cache-Control', 'public, max-age=3');