Add trivia scoring with !score leaderboard

This commit is contained in:
justin committed 2026-09-06 16:33:42 -07:00
1 parent da8b83478a
commit 37c55abcbd
5 files changed
+169 -10

No files matched your search

+5 -1
View File
@@ -79,6 +79,10 @@ if (-not (Test-Path "memory.yaml")) {
Copy-Item "memory.yaml.example" "memory.yaml"
}
if (-not (Test-Path "scores.json")) {
Copy-Item "scores.json.example" "scores.json"
}
if ([string]::IsNullOrWhiteSpace((Get-EnvValue "DISCORD_BOT_TOKEN"))) {
Write-Host ""
Write-Host "Need a Discord bot token:"
@@ -166,7 +170,7 @@ if (-not (Test-CommandExists pm2)) {
npm install -g pm2
}
$AppName = "discord-game-price-bot"
$AppName = "discord-bot"
pm2 delete $AppName 2>$null | Out-Null
pm2 start index.js --name $AppName --cwd $ScriptDir --output "$ScriptDir\bot.log" --error "$ScriptDir\bot.error.log"