Skip to content

Commit

Permalink
Added Discord and Factorio message to confirm the bot is working when…
Browse files Browse the repository at this point in the history
… started (#36)
  • Loading branch information
Mattie112 authored Nov 3, 2024
1 parent 1e0dfff commit 483f700
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ func main() {
go sendMessageToDiscord(discord)
go handleCommands(rconClient)

// Notify Discord / Factorio the bot is online
messagesToDiscord <- "FactoriGO Chat Bot is online!"
messagesToFactorio <- "FactoriGO Chat Bot is online!"

// Setup recurring tasks
periodicTasks := schedule(60*time.Second, func() {
updatePlayerCount(rconClient)
Expand Down

0 comments on commit 483f700

Please sign in to comment.