mirror of https://github.com/velour/catbase.git
Update slack integration to not Fatal on bad msgs
This commit is contained in:
parent
b0210fd240
commit
d582a294a5
|
@ -149,7 +149,8 @@ func (s *Slack) Serve() {
|
||||||
for {
|
for {
|
||||||
msg, err := s.receiveMessage()
|
msg, err := s.receiveMessage()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("Slack API error: %s", err)
|
log.Printf("Slack API error: %s", err)
|
||||||
|
continue
|
||||||
}
|
}
|
||||||
switch msg.Type {
|
switch msg.Type {
|
||||||
case "message":
|
case "message":
|
||||||
|
|
Loading…
Reference in New Issue