Initial commit. Should work, but no promises (yet).
This commit is contained in:
24
main.go
Normal file
24
main.go
Normal file
@@ -0,0 +1,24 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
// stdlib
|
||||
"log"
|
||||
"os"
|
||||
|
||||
// local
|
||||
"go.dev.pztrn.name/discordrone/env"
|
||||
"go.dev.pztrn.name/discordrone/message"
|
||||
)
|
||||
|
||||
func main() {
|
||||
env.ParseEnv()
|
||||
if env.Data.Debug {
|
||||
log.Printf("Starting Discordrone with parameters: %+v\n", env.Data)
|
||||
}
|
||||
|
||||
err := message.Process()
|
||||
if err != nil {
|
||||
log.Fatalln("Error appeared:", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user