arnaucube
arnaucube/goNmapTelegramBotPublic Self-hosted repository
goNmapTelegramBot/main.go
main.goRaw
 1package main
 2
 3import (
 4	"strings"
 5)
 6
 7func checkIp(text string) bool {
 8	if len(strings.Split(text, ".")) != 4 {
 9		return false
10	}
11	if len(strings.Split(text, "")) > 16 {
12		return false
13	}
14
15	return true
16}
17
18func main() {
19	readConfig()
20	telegramBot()
21}