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
88004fa2
Commit
88004fa2
authored
Apr 28, 2019
by
Ahmad Nemati
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
e487275a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
8 deletions
+1
-8
.env
.env
+1
-1
message.js
message.js
+0
-7
No files found.
.env
View file @
88004fa2
...
...
@@ -2,7 +2,7 @@ LOCAL_TOKEN=660472612:AAGV17N2PNmLWEjHdphY9fHvnQEeOoYuGqY
SERVER_TOKEN=783628734:AAGHs5YcIGy4dhD3ZsKIQOKxcJVDD0ju4jY
HOST_Local=localhost
HOST_Server=172.17.0.1
DB_PASS_SERVER=
root
DB_PASS_SERVER=
mahan7797
CHANNEL_LOCAL=-1001376048500
CHANNEL_SERVER=-1001484268097
HETZNER_TOKEN=gCIC0wViuBRyN6RLgNebsdFbM7bqlJi0Dg8Rppy1IyTWpZsAnSNGlDIOt0pmyA3l
...
...
message.js
View file @
88004fa2
...
...
@@ -46,14 +46,7 @@ async function listUserMessage(bot, msg, users) {
bot
.
sendMessage
(
msg
.
chat
.
id
,
'
لطفا کاربر مورد نظر را انتخاب کنید.
'
,
opts
)
}
function
generateText
(
type
,
balance
)
{
let
text
=
'
'
text
+=
balance
<
0
?
(
-
1
*
parseFloat
(
balance
))
+
"
-
"
:
balance
text
+=
'
'
+
type
+
'
'
return
text
}
async
function
deleteMessage
(
bot
,
msg
)
{
await
bot
.
deleteMessage
(
typeof
msg
.
chat
!==
'
undefined
'
?
msg
.
chat
.
id
:
msg
.
message
.
chat
.
id
,
typeof
msg
.
message_id
!==
'
undefined
'
?
msg
.
message_id
:
msg
.
message
.
message_id
)
...
...
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