Skip to content
This repository has been archived by the owner on Jul 20, 2024. It is now read-only.

Commit

Permalink
add README.md file after create a new bot
Browse files Browse the repository at this point in the history
  • Loading branch information
abdfnx committed Aug 31, 2022
1 parent 88fb1dd commit 1cb8573
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/pipes/new/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,12 @@ func NewBot(m model, l string, platform, lang int) {
log.Fatal(dotGitIgnoreFile)
}

readmeFile := os.WriteFile(filepath.Join(opts.BotName, "README.md"), []byte(templates.Content("bot-readme.md", "resources", "")), 0644)

if readmeFile != nil {
log.Fatal(readmeFile)
}

pwd, _ := os.Getwd()

pwd = filepath.Join(pwd, opts.BotName)
Expand Down

0 comments on commit 1cb8573

Please sign in to comment.