package main

import "fmt"
import "os"
import "os/exec"
import "strconv"

func main() {
    fmt.Println("Ding!")
    cmd := exec.Command("paplay", "/usr/share/sounds/freedesktop/stereo/complete.oga")
    cmd.Start()

    interval, _ := strconv.Atoi(os.Args[1])
    fmt.Println(interval)
}

package main

import "fmt"
import "os"
import "os/exec"
import "strconv"
import "time"


func main() {
    cmd := exec.Command("paplay", "/usr/share/sounds/freedesktop/stereo/complete.oga")
    cmd.Start()

    interval, _ := strconv.Atoi(os.Args[1])
    counter := 0

    for true {
        fmt.Println("Ding!", counter)
        time.Sleep(time.Second * time.Duration(interval))
        cmd := exec.Command("paplay", "/usr/share/sounds/freedesktop/stereo/complete.oga")
        cmd.Start()
        counter++
    }
}

Make it go ding in an infinite loop
Make it go ding in an infinite loop
