This repository was archived by the owner on Feb 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmain.go
33 lines (30 loc) · 1.09 KB
/
main.go
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
package main
import (
"os"
"github.com/go-chat-bot/bot/slack"
"github.com/go-chat-bot/bot/telegram"
_ "github.com/go-chat-bot/plugins-br/cnpj"
_ "github.com/go-chat-bot/plugins-br/cotacao"
_ "github.com/go-chat-bot/plugins-br/cpf"
_ "github.com/go-chat-bot/plugins-br/dilma"
_ "github.com/go-chat-bot/plugins-br/lula"
_ "github.com/go-chat-bot/plugins-br/megasena"
_ "github.com/go-chat-bot/plugins-br/gloria_a_deus"
_ "github.com/go-chat-bot/plugins/9gag"
_ "github.com/go-chat-bot/plugins/catfacts"
_ "github.com/go-chat-bot/plugins/catgif"
_ "github.com/go-chat-bot/plugins/chucknorris"
_ "github.com/go-chat-bot/plugins/crypto"
_ "github.com/go-chat-bot/plugins/encoding"
_ "github.com/go-chat-bot/plugins/example"
_ "github.com/go-chat-bot/plugins/gif"
_ "github.com/go-chat-bot/plugins/godoc"
_ "github.com/go-chat-bot/plugins/guid"
_ "github.com/go-chat-bot/plugins/puppet"
_ "github.com/go-chat-bot/plugins/treta"
_ "github.com/go-chat-bot/plugins/url"
)
func main() {
go telegram.Run(os.Getenv("TELEGRAM_TOKEN"), os.Getenv("DEBUG") != "")
slack.Run(os.Getenv("SLACK_TOKEN"))
}