A simple Discord Bot that allows users to generate a customized icon! Follow the instructions below to setup, configurate, and use this application :D
oh no! how did i find their secret font 😧
oops.- clone this repository at https://github.com/NoVa-Gh0ul/Discord-Icon-Gen
- run
npm install
- create an application on the discord developer portal and fill the .env file with the required values (Bot Token, Client ID, and the Guild ID)
Now your application is ready to use! For those who don't know how to start the bot, follow the steps below:
- In the terminal, run
node .
yeah thats pretty much it lol
If for some reason you're getting a "Token Invalid" error but you know your token is valid, move the .env file into the src folder. Im not sure why but sometimes it returns this error and thats a quick fix for it.
- To generate an icon, run the
/icon
command.
This is my own creation and not directly stolen from any third party sources. There is NOT a license on this code, do whatever you want! No credit needed. Why make this? Because gatekeeping a profile picture is childish, and it's also crazy to charge people $1 for something that took 30 minutes to make. And best of all no water mark!!
-
If you wish to add / change the custom background images, just delete or add the appropriate files under the images folder.
-
To change how much the text is slanted, go to line 93 of
icon.js
, there you'll seectx.rotate(-Math.PI / 20);
. To increase the slant, decrease the number (i.e:ctx.rotate(-Math.PI / 12);
). To decrease the slant, increase the number (i.e:ctx.rotate(-Math.PI / 26);
) -
To change the font, replace the
.otf
file under fonts with the desired font. NOTE: Some fonts will not work and return the following error ((process:18700): Pango-WARNING **: 21:32:57.339: couldn't load font "NAME_OF_FONT FONT_ROTATION", falling back to "Sans FONT_ROTATION", expect ugly output.
)
Check the examples folder to see some examples of the generated product, its quite cool :D
Also I added a hexStrings.txt file under the tools folder with some really cool colors, for a longer list of hex string values follow the link below: