Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const jimp = bot.modules['jimp'] //Same as require('jimp')
- jimp.read('./img/greeting.png')
- .then(async (bg) => {
- jimp.loadFont(jimp.FONT_SANS_32_WHITE)
- .then(async font => {
- await bg.print(font, 33, 335, `Willkommen auf ${message.guild.name}`) //message.guild.name = string
- .print(font, 63, 410, {
- text: message.member.displayName,
- alignmentX: jimp.HORIZONTAL_ALIGN_CENTER
- }) //message.member.displayName = string
- .write('./scanfiles/newuser.png', () => {
- message.channel.send('', {
- file: {
- name: 'test.png',
- attachment: './scanfiles/newuser.png'
- }
- })
- })
- })
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement