CampFirePlay/utils/matPriceUpdate.js
2024-12-21 09:34:53 +03:00

11 lines
284 B
JavaScript

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