level up fix
This commit is contained in:
parent
919257e2f0
commit
cac7998667
3
bot.js
3
bot.js
@ -35,7 +35,8 @@ export const sendEvent = ({ type, ...payload }) => {
|
||||
break
|
||||
case EVENT_TYPE_PLAYER_LEVEL_CHANGE:
|
||||
const { newLevel } = payload
|
||||
if (newLevel % LEVEL_NOFIFICATION_EACH_LEVELS === 0) {
|
||||
console.log({ payload })
|
||||
if (parseInt(newLevel) % LEVEL_NOFIFICATION_EACH_LEVELS === 0) {
|
||||
sendMessageToAll(`Игрок ${payload.displayName} прокачался до уровня ${newLevel}!`)
|
||||
}
|
||||
break
|
||||
|
Loading…
x
Reference in New Issue
Block a user