Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // BuildVersion to show in usage message BuildVersion string )
View Source
var RootCmd = &cobra.Command{ Use: "disco-bit", Short: "Lists commands", Long: `Lists all available commands.`, Run: func(cmd *cobra.Command, args []string) { if version { fmt.Printf("%s build: %s", os.Args[0], BuildVersion) os.Exit(0) } if _, err := os.Stat("config"); os.IsNotExist(err) { err := os.MkdirAll("config", os.ModePerm) utils.FatalIfError(err) } discord := bot.NewDiscord(token) err := discord.Start() utils.FatalIfError(err) }, }
RootCmd represents the base command when called without any subcommands
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.