forked from galnir/Master-Bot
-
Notifications
You must be signed in to change notification settings - Fork 2
Customizing The Welcome Image
Bacon Fixation edited this page Nov 25, 2020
·
15 revisions
The welcome image uses Canvas which has a ton of options that you can explore and customize. Some customizations are harder to do than others and this page is here to make it understandable. The options we want to change are inside the
index.js
file that is located in the Master-Bot root folder, which is the same folder that your config.json that you created earlier is in. You can editindex.js
using your favorite text editor or coding program. The screenshots are from Visual Code Studios but the idea is the same.
- JPEG (Recommended Format) easy to change
- Find(or make) an image that you like
- Rename your Image to
wallpaper.jpg
- Move/Replace the old wallpaper inside '/Master-Bot/resources/welcome/' folder with your disired image
- Done
- Find a Font that you like, you can Browse Google Fonts.
- Take Note of the Font Name and Style Type
![]()
- Download the one you like and grab the Font file
<font-name.ttf>
and copy/move to the './Master-Bot/resources/welcome' folder- Open the
index.js
file (same folder as you config.json) in your favorite text editor and search forCanvas.registerFont
![]()
- Change the file name to
<font-name>.ttf
and the Style Type exampleBold, Italic, Light
![]()
- Search for
ctx.font
(there is 2 of them) and edit the font to what you set in thefamily: <Name> <style>
in Step 5![]()
![]()
- Save your work and you are Done