canvas-frontline
v0.0.1
Published
hello world(>////<)
Downloads
1
Readme
Installation
$ npm install knights-canvas
const knights = require("knights-canvas");
how to use
const knights = require("knights-canvas"),
const fs = require('fs');
const image = await new knights.Welcome()
.setUsername("UNDEFINED")
.setGuildName("WIBU NOLEP")
.setGuildIcon("https://i.ibb.co/G5mJZxs/rin.jpg")
.setMemberCount("120")
.setAvatar("https://i.ibb.co/1s8T3sY/48f7ce63c7aa.jpg")
.setBackground("https://i.ibb.co/4YBNyvP/images-76.jpg")
.toAttachment();
data = image.toBuffer();
await fs.writeFileSync(__path +'/tmp/swelkom.png', data)
result
const knights = require("knights-canvas"),
const fs = require('fs');
var image = await new knights.Welcome2()
.setAvatar("you url pic")
.setUsername("your name")
.setBg("background")
.setGroupname("guild name/groupname")
.setMember("member count")
.toAttachment();
data = image.toBuffer();
await fs.writeFileSync(__path +'/tmp/sewelkom2.png', data)
const knights = require("knights-canvas"),
const fs = require('fs');
const image = await new knights.Rank()
.setAvatar("https://i.ibb.co/1s8T3sY/48f7ce63c7aa.jpg")
.setUsername("Lingz")
.setBg("https://i.ibb.co/4YBNyvP/images-76.jpg")
.setNeedxp("1000")
.setCurrxp("100")
.setLevel("6")
.setRank("https://i.ibb.co/Wn9cvnv/FABLED.png")
.toAttachment();
data = image.toBuffer();
await fs.writeFileSync(__path +'/tmp/srank.png', data)
result
const knights = require("knights-canvas"),
const fs = require('fs');
const image = await new knights.Up()
.setAvatar("https://i.ibb.co/1s8T3sY/48f7ce63c7aa.jpg")
.toAttachment();
data = image.toBuffer();
await fs.writeFileSync(__path +'/tmp/slevelup.png', data)