Skip to content
Snippets Groups Projects
Commit f456994a authored by Reviath's avatar Reviath
Browse files

Checking if the config file is edited.

parent 46ccabe5
Branches
Tags
No related merge requests found
Pipeline #642 passed
......@@ -15,6 +15,11 @@ import (
func main() {
config.ReadConfig()
if config.Token == "TOKEN" || config.ClientID == "CLIENT_ID" || config.ClientSecret == "CLIENT_SECRET" || config.WebURL == "WEB_URL" {
fmt.Println("Edit config file before running.")
os.Exit(1)
}
client, err := discordgo.New(fmt.Sprintf("Bot %s", config.Token))
if err != nil {
fmt.Printf("Creating a session failed: %s.\n", err.Error())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment