Commit 88004fa2 authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent e487275a
......@@ -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
......
......@@ -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)
......
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