fix drone CI, fix markdown in kill message
This commit is contained in:
parent
90a86fc18b
commit
36055c61a8
@ -15,7 +15,13 @@ steps:
|
|||||||
- name: install
|
- name: install
|
||||||
commands:
|
commands:
|
||||||
- make install
|
- make install
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
|
|
||||||
- name: restart
|
- name: restart
|
||||||
commands:
|
commands:
|
||||||
- systemctl restart craft-bot
|
- systemctl restart craft-bot
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
|
@ -47,7 +47,12 @@ func (fms *fragMessages) addFrag(ctx context.Context, playerName string, entityN
|
|||||||
if fm.playerName == playerName && fm.entityName == entityName {
|
if fm.playerName == playerName && fm.entityName == entityName {
|
||||||
mc.resetTimer(fm.messageID, fm.chatID, time.Second*30)
|
mc.resetTimer(fm.messageID, fm.chatID, time.Second*30)
|
||||||
fm.increaseFrag()
|
fm.increaseFrag()
|
||||||
mess := tgbotapi.NewEditMessageText(fm.chatID, fm.messageID, fmt.Sprintf("%s убил %s x *%d*", fm.playerName, fm.entityName, fm.fragCount))
|
mess := tgbotapi.NewEditMessageText(
|
||||||
|
fm.chatID,
|
||||||
|
fm.messageID,
|
||||||
|
fmt.Sprintf("%s убил %s ✗ *%d*", fm.playerName, fm.entityName, fm.fragCount),
|
||||||
|
)
|
||||||
|
mess.ParseMode = tgbotapi.ModeMarkdown
|
||||||
_, err := botApi.Send(mess)
|
_, err := botApi.Send(mess)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
x
Reference in New Issue
Block a user