-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
Description
How to do this
- Ensure the user sends a file and the file is of type
.pdf - We need a way to convert the
fileurlto 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...
}- Connect the discord bot to the REST API on SCE-RPC. Consider making a helper function to send everything over from the
s!print'sexecutefunction. An example helper function is insrc/APIFunctions/2DPrinting.js:50which is called insrc/Pages/2DPrinting/2DPrinting.js:226.
To learn more about how printing works, read this wiki page