Skip to content

NoVa-Gh0ul/Discord-Icon-Gen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord-Icon-Gen

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 😧

Font Source / Download

oops.

INSTALLATION

Now your application is ready to use! For those who don't know how to start the bot, follow the steps below:

STARTUP / USAGE

  • 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.

DISCLAIMER

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!!

CONFIGURATION ASSISTANCE

  • 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 see ctx.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.)

EXAMPLES / TOOLS

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:

About

A simple Discord Bot that allows users to generate a customized icon!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published