<commit_before>//Irc Bot for New Years Eve Celebration. Posts to irc when new year happens in each timezone
package main

import (
	"flag"
	"fmt"
	"os"
	"os/signal"
	"regexp"
	"sync"

	"github.com/badoux/checkmail"
	nyb "github.com/ugjka/newyearsbot/nyb"
	"mvdan.cc/xurls"
)

//Custom flag to get irc channelsn to join
var ircChansFlag nyb.IrcChans

func init() {
	flag.Var(&ircChansFlag, "chans", "comma seperated list of irc channels to join")
}

var usage = `New Year Eve Party Irc Bot
This bot announces new years as they happen in each timezone
You can query location using "hny" trigger for example "hny New York"

CMD Options:
[mandatory]
-chans			comma seperated list of irc channels to join eg. "#test, #test2"
-botnick		nick for the bot
-email			Refferer Email for Nominatim
[optional]
-ircserver		irc server to use (Default: irc.freenode.net:7000)
-trigger		trigger used for queries. (Default: hny)
-usetls			use tls encryption for irc. (Default: true)
-nominatim		Nominatim server to use (Default: http://nominatim.openstreetmap.org)
`

func main() {
	//Syncing for graceful exit
	var wait sync.WaitGroup
	//Flags
	ircServer := flag.String("ircserver", "irc.freenode.net:7000", "Irc server to use, must be TLS")
	ircNick := flag.String("botnick", "", "Irc Nick for the bot")
	ircTrigger := flag.String("trigger", "hny", "trigger for queries")
	ircTLS := flag.Bool("usetls", true, "Use tls for irc")
	ircEmail := flag.String("email", "", "Refferer email for Nominatim")<commit_msg>add newline in flag usage<commit_after>//Irc Bot for New Years Eve Celebration. Posts to irc when new year happens in each timezone
package main

import (
	"flag"
	"fmt"
	"os"
	"os/signal"
	"regexp"
	"sync"

	"github.com/badoux/checkmail"
	nyb "github.com/ugjka/newyearsbot/nyb"
	"mvdan.cc/xurls"
)

//Custom flag to get irc channelsn to join
var ircChansFlag nyb.IrcChans

func init() {
	flag.Var(&ircChansFlag, "chans", "comma seperated list of irc channels to join")
}

var usage = `New Year Eve Party Irc Bot
This bot announces new years as they happen in each timezone
You can query location using "hny" trigger for example "hny New York"

CMD Options:
[mandatory]
-chans			comma seperated list of irc channels to join eg. "#test, #test2"
-botnick		nick for the bot
-email			Refferer Email for Nominatim

[optional]
-ircserver		irc server to use (Default: irc.freenode.net:7000)
-trigger		trigger used for queries. (Default: hny)
-usetls			use tls encryption for irc. (Default: true)
-nominatim		Nominatim server to use (Default: http://nominatim.openstreetmap.org)
`

func main() {
	//Syncing for graceful exit
	var wait sync.WaitGroup
	//Flags
	ircServer := flag.String("ircserver", "irc.freenode.net:7000", "Irc server to use, must be TLS")
	ircNick := flag.String("botnick", "", "Irc Nick for the bot")
	ircTrigger := flag.String("trigger", "hny", "trigger for queries")
	ircTLS := flag.Bool("usetls", true, "Use tls for irc")
	ircEmail := flag.String("email", "", "Refferer email for Nominatim")
{'fraction_non_alphanumeric': 0.11678345011678345, 'fraction_numerical': 0.006006006006006006, 'mean_word_length': 4.334519572953736, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1097113', 'n_tokens_mistral': 1127, 'n_tokens_neox': 1076, 'n_words': 373}