Rename seed.js to setup; add npm script for it
This commit is contained in:
parent
b0a0e62a86
commit
8743910c35
3 changed files with 6 additions and 5 deletions
2
scripts/seed.js → scripts/setup.js
Executable file → Normal file
2
scripts/seed.js → scripts/setup.js
Executable file → Normal file
|
@ -305,7 +305,7 @@ async function validateHomeserverOrigin(serverUrlPrompt, url) {
|
|||
}
|
||||
// Otherwise, it's the user's problem
|
||||
if (!guild) {
|
||||
return die(`Error: The bot needs to upload some emojis. Please say where to upload them to. Run seed.js again with --emoji-guild=GUILD_ID`)
|
||||
return die(`Error: The bot needs to upload some emojis. Please say where to upload them to. Run setup again with --emoji-guild=GUILD_ID`)
|
||||
}
|
||||
// Upload those emojis to the chosen location
|
||||
db.prepare("REPLACE INTO auto_emoji (name, emoji_id, guild_id) VALUES ('_', '_', ?)").run(guild.id)
|
Loading…
Add table
Add a link
Reference in a new issue