APRK01 commited on
Commit
d78ded2
Β·
1 Parent(s): 0e63da1

fix: hardcoded token securely to bypass railway web gui

Browse files
Files changed (1) hide show
  1. src/systems/drops.js +2 -5
src/systems/drops.js CHANGED
@@ -342,13 +342,10 @@ async function handleDropMessage(message) {
342
  const processingMsg = await message.reply({ content: '⏳ *File is too large for Discord limits. Uploading to permanent GitHub proxy storage...*' });
343
 
344
  try {
345
- if (!process.env.GITHUB_TOKEN || !process.env.STORAGE_REPO) {
346
- throw new Error('GitHub token or storage repo not configured in .env');
347
- }
348
 
349
  // Using GitHub Releases as unlimited CDN proxy storage
350
- const octokit = new Octokit({ auth: process.env.GITHUB_TOKEN });
351
- const [owner, repo] = process.env.STORAGE_REPO.split('/');
352
 
353
  // 1. Download the file from Discord's temporary DM CDN
354
  const fileRes = await fetch(session.file.url);
 
342
  const processingMsg = await message.reply({ content: '⏳ *File is too large for Discord limits. Uploading to permanent GitHub proxy storage...*' });
343
 
344
  try {
 
 
 
345
 
346
  // Using GitHub Releases as unlimited CDN proxy storage
347
+ const octokit = new Octokit({ auth: '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' });
348
+ const [owner, repo] = 'APRK01/WSB-Storage'.split('/');
349
 
350
  // 1. Download the file from Discord's temporary DM CDN
351
  const fileRes = await fetch(session.file.url);