Advertisement
Guest User

Untitled

a guest
Jan 17th, 2019
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const jimp = bot.modules['jimp'] //Same as require('jimp')
  2.  
  3.         jimp.read('./img/greeting.png')
  4.             .then(async (bg) => {
  5.  
  6.                 jimp.loadFont(jimp.FONT_SANS_32_WHITE)
  7.                     .then(async font => {
  8.  
  9.                         await bg.print(font, 33, 335, `Willkommen auf ${message.guild.name}`) //message.guild.name = string
  10.                         .print(font, 63, 410, {
  11.                             text: message.member.displayName,
  12.                             alignmentX: jimp.HORIZONTAL_ALIGN_CENTER
  13.                           }) //message.member.displayName = string
  14.                         .write('./scanfiles/newuser.png', () => {
  15.                             message.channel.send('', {
  16.                                 file: {
  17.                                     name: 'test.png',
  18.                                     attachment: './scanfiles/newuser.png'
  19.                                 }
  20.                             })
  21.                         })
  22.                     })
  23.                 })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement