CampFirePlay/commands/property/hatkeisList.js
Degradin baa0b5f3a9 global refactoring
Все переведено в модули
2023-10-08 23:43:12 +03:00

18 lines
743 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

const {
weaponshop
} = require('/workspace/degradin/Dev/Telegram/CampFire Play/config')
const {
spaces,
escape,
weaponShopUpdate
} = require('/workspace/degradin/Dev/Telegram/CampFire Play/utils')
module.exports = async (ctx) => {
let text = `[Hatkeis Gunsmith](https://telegra.ph/Hatkeis-Gunsmith-09-27)`
let shop = `\n Вы подходите к зданию с вывеской "Ништяки Хаткейса".\n Вот ассортимент на сегодня\n`
for (i = 0; i < 10; i++) {
shop += `${i}. ${weaponshop[i].name} (₽${spaces(weaponshop[i].price)})\n`
}
weaponShopUpdate()
return await ctx.replyWithMarkdownV2(text + escape(shop), {disable_web_page_preview: true})
}