CampFirePlay/utils/matPriceUpdate.js
2024-12-21 20:01:15 +03:00

11 lines
250 B
JavaScript

const rand = require('./rand')
const {
WorldModel
} = global.config
module.exports = async () => {
let world = await WorldModel.findByPk(1)
let price = rand(35, 170)
world.matPrice = price
world.save()
}