17 lines
486 B
JavaScript
17 lines
486 B
JavaScript
//fs.createReadStream("../data/in.png")
|
|
// .pipe(
|
|
// new PNG({
|
|
// filterType: 4,
|
|
// })
|
|
// )
|
|
// .on("parsed", (image) => {
|
|
// axios({
|
|
// method: "PUT",
|
|
// url: `https://api.mojang.com/user/profile/${data.data.selectedProfile.id}/skin`,
|
|
// data: {
|
|
// model: "",
|
|
// file: image
|
|
// },
|
|
// headers: {"Authorization": "Bearer " + data.data.accessToken}
|
|
// }).catch(console.log);
|
|
// });
|