1
- export function getPackage ( dirName : string ) {
2
- return `{
1
+ export function getPackage ( dirName : string ) {
2
+ return `{
3
3
"name": "${ dirName } ",
4
4
"version": "0.0.1",
5
5
"description": "Bot created with create-discord-bot CLI",
@@ -11,9 +11,9 @@ export function getPackage (dirName: string) {
11
11
}`
12
12
}
13
13
14
- export function getScript ( token : string , botName : string ) {
15
- const tokenValue = token . length > 0 ? token : 'your-token-from-discord-api'
16
- return `/* ${ botName } generated with create-discord-bot CLI */
14
+ export function getScript ( token : string , botName : string ) {
15
+ const tokenValue = token . length > 0 ? token : 'your-token-from-discord-api'
16
+ return `/* ${ botName } generated with create-discord-bot CLI */
17
17
const Discord = require('discord.js')
18
18
const client = new Discord.Client()
19
19
client.on('ready', () => {
@@ -22,14 +22,14 @@ export function getScript (token: string, botName: string) {
22
22
client.login('${ tokenValue } ');`
23
23
}
24
24
25
- export function getReadme ( botName : string ) {
26
- return `# ${ botName }
25
+ export function getReadme ( botName : string ) {
26
+ return `# ${ botName }
27
27
Discord Bot generated with [create-discord-bot](https://github.com/HZooly/create-discord-bot)
28
28
29
29
To get the Bot invitation link, you can use [discord-bot-invitation](https://github.com/HZooly/discord-bot-invitation)
30
30
`
31
31
}
32
32
33
- export function getGitignore ( ) {
34
- return '/node_modules'
33
+ export function getGitignore ( ) {
34
+ return '/node_modules'
35
35
}
0 commit comments