Skip to content

Commit

Permalink
init msg
Browse files Browse the repository at this point in the history
  • Loading branch information
joshspicer committed Aug 13, 2023
1 parent a027db9 commit 007c520
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,12 @@ func main() {

func initializeCluster(bot *tgbotapi.BotAPI, mode string) {
router := ClusterRouter(bot)
go SetupTelegramCommandHandler(&BotExtended{bot}, mode)
botExtended := &BotExtended{bot}
go SetupTelegramCommandHandler(botExtended, mode)

botExtended.SendMessageToPrimaryTelegramGroup("[jarvis] cluster initializing")
botExtended.SendMessageToPrimaryTelegramGroup(fmt.Sprintf("[jarvis] %s", version))
botExtended.SendMessageToPrimaryTelegramGroup(fmt.Sprintf("[jarvis] %s", commit))

PORT := os.Getenv("PORT")
if PORT == "" {
Expand Down

0 comments on commit 007c520

Please sign in to comment.