|
|
@ -5,6 +5,7 @@ import (
|
|
|
|
"log"
|
|
|
|
"log"
|
|
|
|
"os"
|
|
|
|
"os"
|
|
|
|
"os/signal"
|
|
|
|
"os/signal"
|
|
|
|
|
|
|
|
"syscall"
|
|
|
|
|
|
|
|
|
|
|
|
"github.com/hugot/go-deltachat/deltabot"
|
|
|
|
"github.com/hugot/go-deltachat/deltabot"
|
|
|
|
"github.com/hugot/go-deltachat/deltachat"
|
|
|
|
"github.com/hugot/go-deltachat/deltachat"
|
|
|
@ -97,7 +98,7 @@ func main() {
|
|
|
|
dcClient.On(deltachat.DC_EVENT_INCOMING_MSG, bot.HandleMessage)
|
|
|
|
dcClient.On(deltachat.DC_EVENT_INCOMING_MSG, bot.HandleMessage)
|
|
|
|
|
|
|
|
|
|
|
|
wait := make(chan os.Signal, 1)
|
|
|
|
wait := make(chan os.Signal, 1)
|
|
|
|
signal.Notify(wait, os.Interrupt)
|
|
|
|
signal.Notify(wait, os.Interrupt, syscall.SIGTERM)
|
|
|
|
|
|
|
|
|
|
|
|
for {
|
|
|
|
for {
|
|
|
|
select {
|
|
|
|
select {
|
|
|
|