aboutsummaryrefslogtreecommitdiff
path: root/munch.go
blob: aa4932f4c9d0997b27667da616462edc40205529 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Copyright (C) 2021-2021 The Whirlsplash Collective
// SPDX-License-Identifier: GPL-3.0-only

package main

import (
	"github.com/Whirlsplash/munch/pkg/config"
	"github.com/Whirlsplash/munch/pkg/discord"
	"github.com/Whirlsplash/munch/pkg/server"
	"sync"
)

func main() {
	config.Setup()

	var wg sync.WaitGroup

	// Discord bot
	wg.Add(1)
	go func() {
		discord.Do()
		wg.Done()
	}()
	wg.Add(1)

	// Worlds bot
	go func() {
		server.Do()
		wg.Done()
	}()

	wg.Wait()
}