Update SFX list and improve display functionality

- Update sfx/README.md to include all 275 sound files with proper categorization
- Organize missing sounds into appropriate categories (SILICON VALLEY, KING OF THE HILL, etc.)
- Fix SFX list display to use local README.md instead of external URL
- Add fallback to auto-generated list if README is missing
- Improve chunking to prevent Discord character limit errors

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Chris Ham
2025-08-16 14:54:40 -07:00
parent 80b21e5073
commit 437206851b
6 changed files with 82 additions and 11 deletions

59
sfx/README.md Normal file
View File

@@ -0,0 +1,59 @@
**GENERAL**
2+2, ahhh, alert, aspen, auw, aww, bonk, bustin, chafe, chipotle, chomp, choochoo, correct, date, dong, duck, enjoy, ez, fakehands, fbrage, fine, flippers, funnyhow, gatekeepah, gcn, groovy, gyst, help, herewego, heyheyhey, heymf, highscore, hop, how, hype, idgaf, imawot, interesting, jacked, knob, lab, laugh, lisa, long, mad, massage, mayo, meme, mmmm, mouthfeel, mybody, neat, nevergiveup, obaeb, ohno, okusa, onejoint, onfire, ow, poopy, popup, porkchop, pour, ppump, qty, raffle, rawr, rentfree, respect, robotears, rpgfarm, sdgtw, sendit, sofast, sogood, stick, store, suh, swag, tasty, tea, thatthing, theline, tmm, tojesus, tootski, trash, triple, urf, wahwah, wanker, waow, wdied, wow, yahoo, yippee, yoshi, youguys
**NERDS**
anders, blazeit, booty, butt, bwaa, disagree, doomtaonline, duckscream, emmapos, fdup, fk, fuckduck,hellway, jebaited, lol, mcgasm, milk, myman, nfc, oh, pprage, ppscream, rando, rip, run, runsover, sgqf, smd, speednoises, stfu, tbhamfact, teats, whathaveidone
**HAM**
archery, hamhelp, hamlaugh, hamlaugh2, hamscream, pyle, spam, speedrunner, stank, wait, why
**JOSH**
blblbl, goofy, joshbitch, joshgoat, joshlaugh, joshlaugh2, joshlaugh3, joshlaugh4, joshscream, joshwhinny, joshx
**LANX**
dominos, lanx, lanx2
**MUTT**
muttfart, muttfart2, muttlaugh, muttscream, muttwalksin, wobbuffet
**EMMA**
airplane, bye, byeb, emetarage, emetarage2, emetarage3, fu, split
**DEEBS**
1v2, bossmusic, dbio, deebsfart, deebslaugh, english, fencedash, lanmo, timmon, trinexx, vitty
**STEPHEN**
craft, diaper, f, mothhole
**FRICKER**
anteater, eggs, fuzzy, h2o, ncd, shj
**XELNA**
wiki, xelboss, xelkiss
**TWIN PEAKS**
albert, andhot, coffee, dead, drinkfull, fish, gordon, gordon2, gordon3, gordon4, gotalight, gum, letsrock, mapleham, mrjackpots, myarms, newshoes, present, veranda, vision
**ATHF**
arise, bananas, bjqueen, carlcandy, dontmatter, gross, hahaa, hightonight, idc, kudos, lang, party, rockin, threat, tonight, watchyourback
**IT CROWD**
20gp, door, esp, hammertime, oldman, seaparks, seeitnow
**SIMPSONS**
learnding, mash, nerd, rake, stahp, toofat, towel
**JURASSIC PARK**
bigshit, clever, digup, dinodna, dodson, hatethatman, hrwah, hunt, please, pushpush, trex, tour
**THE GOOD PLACE**
banana, human, puzzles, shirtballs, unhelpful
**SILICON VALLEY**
algore, crush, cumin, dd, goldcaps
**KING OF THE HILL**
bill
**MISC**
cd, cooler, slowmo-in, slowmo-out

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -28,20 +28,32 @@ module.exports = {
// If no SFX specified, show the list
if (!sfxName) {
try {
const response = await axios.get('https://rentry.co/ghbotsfx/raw');
const fs = require('fs');
const path = require('path');
const sfxReadmePath = path.join(__dirname, '..', '..', '..', 'sfx', 'README.md');
// Break into chunks if message is too long
let chunks = [response.data];
if (response.data.length > 2000) {
chunks = chunkSubstr(response.data, Math.ceil(response.data.length / 2));
}
for (const chunk of chunks) {
await message.channel.send(chunk);
if (fs.existsSync(sfxReadmePath)) {
const sfxListContent = fs.readFileSync(sfxReadmePath, 'utf-8');
// Break into chunks if too long (Discord limit is 2000 characters)
if (sfxListContent.length <= 2000) {
await message.channel.send(sfxListContent);
} else {
const chunks = chunkSubstr(sfxListContent, 1900); // Leave some buffer
for (const chunk of chunks) {
await message.channel.send(chunk);
}
}
} else {
// Fallback to generated list if README doesn't exist
const sfxNames = sfxManager.getSFXNames();
const sfxList = `**Available Sound Effects (${sfxNames.length}):**\n\`\`\`\n${sfxNames.join(', ')}\n\`\`\``;
await message.channel.send(sfxList);
}
} catch (error) {
console.error('Error fetching SFX list:', error);
await message.reply('Could not fetch the SFX list.');
console.error('Error reading SFX list:', error);
await message.reply('Could not load the SFX list.');
}
return;
}