check telegram string

This commit is contained in:
w1ndyb0y
2020-12-21 16:18:08 +08:00
parent 8a116818cf
commit 481870cea9
2 changed files with 43 additions and 3 deletions
+5 -3
View File
@@ -55,8 +55,7 @@ func init() {
// startCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle")
}
func start(cmd *cobra.Command, args []string){
func start(cmd *cobra.Command, args []string) {
// Go signal notification works by sending `os.Signal`
// values on a channel. We'll create a channel to
// receive these notifications (we'll also make one to
@@ -95,7 +94,10 @@ func start(cmd *cobra.Command, args []string){
}
buffer, count := utils.ReadPort()
if count > 0 {
log.Print(string(buffer))
if lograw {
log.Print(string(buffer))
}
utils.Append(buffer)
}
}
<-done