Skip to content

Add s!print Command #49

@evanugarte

Description

@evanugarte

How to do this

  1. Ensure the user sends a file and the file is of type .pdf
  2. We need a way to convert the fileurl to bytes and then send it to the api.
    e.g.
if (message.attachments.array().length) {
      const uploadedFile = message.attachments.array()[0];
      const fileUrl = uploadedFile.url;
      // need to do something with fileUrl...
}
  1. Connect the discord bot to the REST API on SCE-RPC. Consider making a helper function to send everything over from the s!print's execute function. An example helper function is in src/APIFunctions/2DPrinting.js:50 which is called in src/Pages/2DPrinting/2DPrinting.js:226.

To learn more about how printing works, read this wiki page

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions