Commit 3d9ecbe8 authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent eead68eb
...@@ -10,7 +10,7 @@ async function simpleMessage(bot, msg, text) { ...@@ -10,7 +10,7 @@ async function simpleMessage(bot, msg, text) {
const opts = { const opts = {
reply_markup: { reply_markup: {
keyboard: [ keyboard: [
['💷 لیست اعضا'], ['🇮🇷 لیست اعضا'],
], ],
...@@ -100,19 +100,19 @@ function userShowMessage(bot, msg, user) { ...@@ -100,19 +100,19 @@ function userShowMessage(bot, msg, user) {
chat_id: msg.message.chat.id, chat_id: msg.message.chat.id,
message_id: msg.message.message_id message_id: msg.message.message_id
}; };
let text = '💷 ' let text = '🇮🇷 '
text += numberize(Math.abs(user.toman_balance)) + ' ' + 'تومان' + ' ' text += numberize(Math.abs(user.toman_balance)) + ' ' + 'تومان' + ' '
text += user.toman_balance === 0 ? '' : text += user.toman_balance === 0 ? '' :
user.toman_balance > 0 ? 'بدهکار' : 'طلبکار' user.toman_balance > 0 ? 'بدهکار' : 'بستانکار'
text += '\n' text += '\n'
text += '\n' text += '\n'
if (user.dollar_balance !== 0) { if (user.dollar_balance !== 0) {
text += '💵 ' text += '🇺🇸 '
text += numberize(Math.abs(user.dollar_balance)) + ' ' + 'دلار' + ' ' text += numberize(Math.abs(user.dollar_balance)) + ' ' + 'دلار' + ' '
text += user.dollar_balance === 0 ? '' : text += user.dollar_balance === 0 ? '' :
user.dollar_balance > 0 ? 'بدهکار' : 'طلبکار' user.dollar_balance > 0 ? 'بدهکار' : 'بستانکار'
text += '\n' text += '\n'
text += '\n' text += '\n'
...@@ -123,19 +123,19 @@ function userShowMessage(bot, msg, user) { ...@@ -123,19 +123,19 @@ function userShowMessage(bot, msg, user) {
if (user.euro_balance !== 0) { if (user.euro_balance !== 0) {
text += '💶 ' text += '🇪🇺 '
text += numberize(Math.abs(user.euro_balance)) + ' ' + 'یورو' + ' ' text += numberize(Math.abs(user.euro_balance)) + ' ' + 'یورو' + ' '
text += user.euro_balance === 0 ? '' : text += user.euro_balance === 0 ? '' :
user.euro_balance > 0 ? 'بدهکار' : 'طلبکار' user.euro_balance > 0 ? 'بدهکار' : 'بستانکار'
text += '\n' text += '\n'
text += '\n' text += '\n'
} }
if (user.lir_balance !== 0) { if (user.lir_balance !== 0) {
text += '💴 ' text += '🇹🇷 '
text += numberize(Math.abs(user.lir_balance)) + ' ' + 'لیر' + ' ' text += numberize(Math.abs(user.lir_balance)) + ' ' + 'لیر' + ' '
text += user.lir_balance === 0 ? '' : text += user.lir_balance === 0 ? '' :
user.lir_balance > 0 ? 'بدهکار' : 'طلبکار' user.lir_balance > 0 ? 'بدهکار' : 'بستانکار'
text += '\n' text += '\n'
text += '\n' text += '\n'
...@@ -143,28 +143,28 @@ function userShowMessage(bot, msg, user) { ...@@ -143,28 +143,28 @@ function userShowMessage(bot, msg, user) {
if (user.aed_balance !== 0) { if (user.aed_balance !== 0) {
text += '💰 ' + numberize(Math.abs(user.aed_balance)) + ' ' + 'درهم' + " " text += '🇦🇪 ' + numberize(Math.abs(user.aed_balance)) + ' ' + 'درهم' + " "
text += user.aed_balance === 0 ? '' : text += user.aed_balance === 0 ? '' :
user.aed_balance > 0 ? 'بدهکار' : 'طلبکار' user.aed_balance > 0 ? 'بدهکار' : 'بستانکار'
text += '\n' text += '\n'
text += '\n' text += '\n'
} }
if (user.can_balance !== 0) { if (user.can_balance !== 0) {
text += '💵 ' text += '🇺🇸 '
text += numberize(Math.abs(user.can_balance)) + ' ' + 'دلار کانادا' + ' ' text += numberize(Math.abs(user.can_balance)) + ' ' + 'دلار کانادا' + ' '
text += user.can_balance === 0 ? '' : text += user.can_balance === 0 ? '' :
user.can_balance > 0 ? 'بدهکار' : 'طلبکار' user.can_balance > 0 ? 'بدهکار' : 'بستانکار'
text += '\n' text += '\n'
text += '\n' text += '\n'
} }
if (user.pon_balance !== 0) { if (user.pon_balance !== 0) {
text += '💵 ' text += '🇺🇸 '
text += numberize(Math.abs(user.pon_balance)) + ' ' + 'پوند' + ' ' text += numberize(Math.abs(user.pon_balance)) + ' ' + 'پوند' + ' '
text += user.pon_balance === 0 ? '' : text += user.pon_balance === 0 ? '' :
user.pon_balance > 0 ? 'بدهکار' : 'طلبکار' user.pon_balance > 0 ? 'بدهکار' : 'بستانکار'
text += '\n' text += '\n'
text += '\n' text += '\n'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment