Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
accounting
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
accounting
Commits
3d9ecbe8
Commit
3d9ecbe8
authored
Sep 24, 2020
by
Ahmad Nemati
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
eead68eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
message.js
message.js
+15
-15
No files found.
message.js
View file @
3d9ecbe8
...
@@ -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
'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment