Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Little enchantments #3

Closed
wants to merge 13 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"
- package-ecosystem: "github-actions" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"
17 changes: 10 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,24 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up node.js
uses: actions/setup-node@v3
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
node-version: 18

- name: Generate a smaller USRBG json
- name: Install Dependencies
run: npm i fs-extra

- name: Generate a smaller USRBG JSON
run: |
node index.js

- name: Commit to the repo
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add .
git commit -m 'Update USRBG files' || true
git commit -m 'Build USRBG' || true
git push
132 changes: 130 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,130 @@
node_modules
package-lock.json
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional stylelint cache
.stylelintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variable files
.env
.env.development.local
.env.test.local
.env.production.local
.env.local

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next
out

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# vuepress v2.x temp and cache directory
.temp
.cache

# Docusaurus cache and generated files
.docusaurus

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*
19 changes: 9 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
Hello Vencord user owo
# How To Request Your Own USRBG Banner

# How to request your own USRBG banner
1. **Join the Black Box Discord Server**: Click [here](https://discord.gg/TeRQEPb) to join. Once there, navigate to the [#click-here-to-request](https://discord.com/channels/449175561529589761/645627516794699787/) channel.

1. Join [Black Box Discord Server](https://discord.gg/TeRQEPb) and go to [#background-request](https://discord.com/channels/449175561529589761/645627516794699787/)
2. **Upload Your Banner**: Ensure your banner is in one of the supported file types: .png, .jpg, .jpeg, or .gif. The maximum file size is 10 MB. Note that links to banners are not accepted; you must download and then upload the banner. Also, adult or NSFW banners are against the USRBG ToS and will be rejected.

2. Click **UPLOAD** button and **UPLOAD** your image from your device, Only **.GIF .PNG .JPG .JPEG** will be accepted. Max-size: **10MB**
<br>(**NOT** link, **NOT** gif picker from discord, you must download the image and then **UPLOAD** it)
<br>**DO NOT REQUEST Adult/NSFW content for your banners, this is against USRBG Terms of Service and will be rejected.**

3. Wait for your background request to be approved, take a bit of time.

4. If your background request is approved but you don't see it, restart Vencord. If still not, wait a bit more (it takes sometimes to update) and restart Vencord again.
3. **Wait for Approval**: Your background request will be reviewed and approved. This process may take some time.

4. **Check Your Banner**:
- If your banner request is approved but not visible, restart Vencord.
- If it still doesn’t appear, wait a bit longer as updates may take some time to process.
- Restart Vencord again if necessary.
- Ensure that the USRBG plugin is enabled if you still can't see your banner.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { writeFileSync, readFileSync } = require('fs');
const { writeFileSync, readFileSync } = require('fs-extra');

const URL = 'https://raw.githubusercontent.com/Discord-Custom-Covers/usrbg/master/dist/usrbg.json';
const deadbanner = JSON.parse(readFileSync('./deadbanner.json'));
Expand Down