add bacfoy eth
All checks were successful
Build Docker Image / build (amd64) (push) Successful in 5m28s
All checks were successful
Build Docker Image / build (amd64) (push) Successful in 5m28s
This commit is contained in:
@@ -1,7 +1,8 @@
|
|||||||
package commands
|
package commands
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"golang.org/x/text/language"
|
||||||
|
"golang.org/x/text/message"
|
||||||
"gopkg.in/telebot.v3"
|
"gopkg.in/telebot.v3"
|
||||||
"me.thuanle/bbot/internal/configs/tele"
|
"me.thuanle/bbot/internal/configs/tele"
|
||||||
"me.thuanle/bbot/internal/data"
|
"me.thuanle/bbot/internal/data"
|
||||||
@@ -47,10 +48,12 @@ func OnTokenInfoByToken(context telebot.Context, token string) error {
|
|||||||
baseTotal := baseAmount * basePrice
|
baseTotal := baseAmount * basePrice
|
||||||
curTotal := baseAmount * sp
|
curTotal := baseAmount * sp
|
||||||
|
|
||||||
msg := fmt.Sprintf(
|
mFmt := message.NewPrinter(language.AmericanEnglish)
|
||||||
"🎉∑ Bắc Kiều Phong's USDT: %.0f\n"+
|
|
||||||
"🎊 Bắc Kiều Phong's lợi nhuận: %.0f",
|
msg := mFmt.Sprintf(
|
||||||
baseTotal, curTotal-baseTotal,
|
"🎉∑ Bắc Kiều Foy's USDT: %.0f\n"+
|
||||||
|
"🎊 Bắc Kiều Foy's lợi nhuận: %.0f",
|
||||||
|
curTotal, curTotal-baseTotal,
|
||||||
)
|
)
|
||||||
_ = chat.ReplyMessage(context, msg)
|
_ = chat.ReplyMessage(context, msg)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user