Coder Social home page Coder Social logo

droops-dispatch's Introduction

droops-dispatch

WIP: More features will be added and bugs will be fixed as I'm made aware of them.

Note:

You need to have a gamedev license from Discord. You can buy a license by selecting/creating an application on Discord's Developer Portal.

Important:

This tool is NOT made by Discord, and they will also not provide support for the tool itself. So please don't contact them for issues you may encounter with this tool. If you need support for this tool, please open an issue on this github repo. Thank you.

IMPORTANT

Don't forget to set Discord's first party Dispatch as 'dispatch' in your environment variables!

How it works:

It listens for your shorter command, and executes the longer, normal command for you.

For example:

update 532009786162806794

would do

dispatch build push 532009786162806794 config.json Game/Windows

Commands

login

Opens Discord's oauth2 window to authorize Dispatch with your account.

Example

DISPATCH >: login

Parameters

None

update

Uploads the game files to the specified branch.

Example

DISPATCH >: update 532009786162806794

Parameters
argument description
branch_id ID of the branch you'd like to upload the update to

build publish

Publishes a build for it's branch. Note that, to publish a build, it had to be uploaded with the update command to said branch first. You cannot publish a build for branch 2 when it was uploaded to branch 1.

Example

DISPATCH >: build publish 532009786162806794 539036401950261275

Parameters
argument description
branch_id ID of the branch the update was uploaded on
build_id ID of the build

build list

Lists all builds for the specified branch.

Example

DISPATCH >: build list 532009786162806794

Parameters
argument description
branch_id ID of the branch you'd like to list the builds of

branch list

Lists all branches.

Example

DISPATCH >: branch list

Parameters

None

branch delete

Deletes the specified branch.

Example

DISPATCH >: branch delete 532009786162806794

Parameters
argument description
branch_id ID of the branch you'd to delete

CLI Commands

checkupdate

Checks for updates.

Example

DISPATCH >: checkupdate

Parameters

None

runupdate

Downloads & installs update.

Example

DISPATCH >: runupdate

Parameters

None

restart

Restarts the CLI, required for when you have changed the config.

Example

DISPATCH >: restart

Parameters

None

clear/cls

Clears the console.

Example

DISPATCH >: clear

DISPATCH >: cls

Parameters

None

exit

Exits the CLI.

Example

DISPATCH >: exit

Parameters

None

Configuration

NOTE:

A restart of the CLI is required after every config change. You can restart the CLI with the restart command.

variable type description
app_id Int64 The snowflake ID of your SKU
default_branch Int64 The snowflake ID of the branch the update command should default to, should the branch argument not be passed
enable_splash Bool Whether or not to post a splash on startup
custom_splash Bool True for a custom splash, False for the default splash
custom_splash_file_path str Filepath of the custom splash, if enabled
user_agent str Your email or website domain. Used to identify your requests to Discord.
dispatch_config_file str Filepath of your Dispatch config. WARNING: NOT the same as the config file of the client!
game_path str Filepath of your game files to be uploaded to Discord
webhook_url str Webhook URL to fire for game upload webhook
webhook_payload dict JSON object of the webhook post

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.