Coder Social home page Coder Social logo

ausername-1 / discordrpcmaker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thatonecalculator/discordrpcmaker

0.0 0.0 0.0 47.15 MB

Cross-platform Discord Rich Presence Maker, WITH BUTTONS!

Home Page: https://drpcm.t1c.dev

License: GNU General Public License v3.0

JavaScript 81.90% Shell 18.10%

discordrpcmaker's Introduction

Logo

Discord Rich Presence Maker, WITH BUTTONS!

⬇️ Scroll down for instructions! ⬇️

Version 1.7.8, on npm!

Discord Liberapay BMC Github StandardJS pkg

Large Small

Discord

This is meant to be noob-friendly, as long as you follow the instructions!


Supporters

You can Liberapay or BMC to get your name here!


Windows macOS Linux Alpine


Table of Contents:


Pre-install

Steps 4-7 are if you want images
  1. Go to https://discord.com/developers/applications/.
  2. Hit the "New Application" button in the top right.
  3. Give it a good name. This will be what the main text says!
  4. Navigate to the "Rich Presence" tab in the left bar. It should be the 4th option down.
  5. Go down to "Rich Presence Assets". You don't need a cover/invite image, don't worry!
  6. Upload either one or two images. One will be used for the large image, and the other will be used for the small image. Both are optional. In the example screenshots, I only uploaded one image (for a large image). Give them memorable names! (Note: sometimes they don't show up directly after being uploaded. This is normal.)
  7. Go back to the "General Information" tab in the left bar.
  8. Copy your Client ID. It should be a big number, and is underneath the description on the left-hand. Hold on to this, it's important! (No, you do NOT need a Client Secret.)

Regular install

If you're a regular user, this is what you want!

  1. Linux users, you skip steps 1-3 by opening a terminal emulator and running sh -c "$(wget https://raw.githubusercontent.com/ThatOneCalculator/DiscordRPCMaker/main/scripts/linux-install-wget.sh -O -)"
  2. Go to the top and click on your OS (Windows, macOS, Linux, Alpine) or go to the releases tab.
  3. Choose the latest version, and download the zip file for your given system.
  4. Install.
  • Windows:
    • Download the msi.
    • Run the installer.
    • Note: on Windows 10, you may have to hit More Info > Run Anyway.
  • macOS:
    • Download the pkg.
    • Run the installer.
  • Linux:
    • Download and extract the Linux zip. (Alpine users, download the Alpine zip!)
    • Open your terminal emulator of choice.
    • cd into the extracted folder.
    • sudo ./install.sh.
  1. Run rpcmaker, and follow the instructions there.
Windows users: to paste, right click!
macOS users: You may not be able to open it at first. If it doesn't let you run it, the Applications folder, find the app, right click and hit open (the first option).
  1. Open Discord.
  2. Run drpc, and watch your presence spring to life!
macOS instructions from step 4 apply here as well.

If you want to edit your presence, re-run rpcmaker.

🎉 Congrats, you're done! 🎉 Scroll down to the bottom for common issues, planned features, and ways to contact me!


Running/building from source

⚠️ Only if you know what you're doing! Go back to Regular Install if you're lost. ⚠️

Click me for the list of running/building instructions!

Running

Installing Node

  1. Download the NodeJS installer at https://nodejs.org/en/download/ (for Windows and macOS users). Linux users, install from your package manager.
  2. Install.
  • (Windows/macOS) Install the program. If prompted, make sure to check the box for "Automatically install the necessary tools."
  • (Linux) Make sure npm and node-gyp are installed.

Generating your presence

  1. Open a console. This will vary by operating system.
  • Windows: Open a program called cmd.
  • macOS: Open a program called Terminal.
  • Linux: Open your terminal emulator of choice.
  1. Type npm i -g rpcmaker and hit enter.
  1. Type rpcmaker and hit enter.
  2. Follow the prompts the program gives you.

Part 4: Running your presence

  1. Open Discord (it's fine in the background, but you wanna see your cool presence, right?)
  2. Just type the command below into the same cmd/Terminal window from before:
  • Windows: start /b drpc
  • macOS/Linux: drpc & disown

And close the window! Watch as your new presence springs to life!

Building

This will only work on Linux/macOS. Windows users can follow the steps and manually run the contents of build.sh, I guess.

  1. npm i -g pkg
  2. cd into the project directory.
  3. mkdir ./bin/
  4. cd ./bin/
  5. mkdir windows; mkdir macos; mkdir alpine; mkdir linux
  6. cd ../scripts
  7. ./build.sh

Pro tip: instead of typing the command every time, you can hit the ↑ (up) key and hit enter!

How to update the program:

  • Open cmd/Terminal.
  • npm i -g rpcmaker

How to edit your presence:

There's 2 options:

  • Open cmd and run rpcmaker (Recommended, just do this!)
  • Manually edit the options file. In Windows, this at %APPDATA%\Roaming\drpcm-options.json. In macOS/Linux, it's in ~/.config/drpcm-options.json.

Common issues

Help, I'm confused and followed the run from source instructions!

There was a big warning there for a reason. Go back and read the regular install instructions, ya goober.

My buttons aren't working!

Discord doesn't let you click your own buttons. However, everyone else can. This is a limitation with Discord.

I can't see the presence!

Make sure you are not invisible/offline. If you ARE online/idle/dnd...

  • Make sure you don't have another program taking up a presence slot.
  • Go to Settings > Game Activity > Make sure "Display currently running game as a status message" is ON.
  • Try running DRPC again.

The image(s) aren't showing!

If you just put them in, sometimes Discord takes a minute or so to cache them properly.

I'm on mobile, what do I do?

As of right now, there's no way to do this through a mobile device. Sorry!

Running/building from source specific issues below

Click me for the running/building instructions!

I can't install the npm package(s)!

  • Make sure you're using the LTS release of Node.js
  • Try reinstalling node, making sure npm is included.
  • Try npm r -g rpcmaker, then npm i -g node-gyp, then npm i -g rpcmaker.
  • macOS specific: If you upgraded your macOS from any version below 10.15 to 10.15 or 11, this will fix it:
    • sudo rm -rf /Library/Developer/CommandLineTools
    • Download and install this (you will need an Apple ID)
    • npm r -g rpcmaker, then npm i -g node-gyp, then npm i -g rpcmaker.
  • Windows specific:
    • Make sure that with your Node install, you checked "Automatically install the necessary tools." If you didn't reinstall Node.
    • If you are STILL having problems, refer to this. Note that it will restart your PC.
      • npm r -g rpcmaker, npm i -g --production windows-build-tools --vs2015
      • After restart, open up cmd again and type npm i -g rpcmaker

If none of this works, refer to old_instructions.md!!

Windows: System cannot find the specified path

  • Try adding C:\Users\Your name here\AppData\Roaming\npm to PATH, here's how to do that, then restart.
  • If you still get this error after adding to PATH and restarting, try directly running C:\Users\Your name here\AppData\Roaming\npm\rpcmaker.cmd and _____\maker.js
  • You can also do the instructions in old_instructions.md.
  • v1.7+: Binary releases
  • v2.0: Electron based GUI, multiple presences

Still need help, or just want to chat?

Open a new issue here or join the Discord!

The program has been tested on Windows 10, macOS 10.14, macOS 10.15, Arch Linux, and Ubuntu 20.04 LTS.

discordrpcmaker's People

Contributors

thatonecalculator avatar ausername-1 avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.