Message Maker
By Pug#8082
- - - - -

msg()
Generates a customized client-side message in the channel

typing()
Shows the typing indicator with a custom message

ping()
Generates a ping
Used with msg()

botnote()
Creates a verified bot tag on the most recent message with a custom message

gid()
Adds an image to the most recent message

pingomatic()
Dev tool for automating ping notation to div pings

harvestuser()
Harvests profiles and/or name colors from usernames

unread()
Adds unread DM indicator
How to use
msg()
- - - - -

Format
msg("name", "namecolor", "message", "time", "profilelink", true/false);

True/False is for whether or not you were pinged in the message

Setting time to "autoPM" or "autoAM" will use the current time in AM or PM

namecolor accepts things like "blue", "darkgreen", "#420069", and "rgb(100, 33, 255)"

Linebreaks are typed as \n or <br>, bold text is like <b>this</b>, and italic is <i>this</i>

Put \ before apostrophes or quotes in text so nothing breaks, for example the message would me "I\'m an \"example\"."

Use the pointer in the top left of the dev tools screen to select profiles and copy the links.
How to use
typing()
- - - - -

Format
typing("text");

It's pretty simple, you put in text and the typing indicator pops up with that text.
How to use
ping()
- - - - -

Format
ping("username");

Usage
msg("name", "namecolor", ping("Fossil Fuel Snatcher") + "Did you steal the coal from my furnace for the seventh time?", "time", "profilelink", true/false);

If you want to be the one pinged, put in your name. To get the golden youhavebeenpinged glow on the message, set mentioned to true in msg().
How to use
botnote()
- - - - -

Format
botnote("text");

botnote() adds the blue verified bot tag to the most recent message but with custom text. That's it.
How to use
gid()
- - - - -

Format
gid("width", "height", "link");

gid() stands for Generate Image DIV, which essentially means it slaps together an image.

You can see the width and height of images in the tab of some browsers or just in image editing software.

Discord only accepts some links such as from itself, imgur, tenor, gyfcat, and a few others.

If your image doesn't work because of this, send it somewhere and then copy that image link. It'll make it a Discord link so it works.
How to use
pingomatic()
- - - - -

Format
pingomatic("Hey @Pug check this out");

pingomatic() replaces @ pings with the divs for the pings, meaning they work when slapped into the HTML.

Unlike pingifier(), pingomatic runs pingifier for every true ping in the message, meaning that a message like "@Person @Other get in vc" would have both pings turned to divs.

Note that self pings work and glow gold like expected, but the self ping needs to be the only ping, and it has to not have anything after it.
How to use
harvestuser()
- - - - -

Format
harvestuser("nameonserver");

harvestuser() uses a name to find someone on a server list or DM list and harvest their profile and name color, which saves a lot of time. Note that the input is how they appear on the sidebar, meaning their nickname and not their actual username. If they don't have a nickname on the server or aren't on a server, then it is their username.
How to use
unread()
- - - - -

Format
unread("name", number);

unread() uses a name to find someone on a server list or DM list and adds an unread DM notification on the sidebar.
How to start
:D
- - - - -


All you need to do is run the script and then the GUI should appear on the top right of text channels in servers.
Note that if you want to use this in DMs or with users that don't exist you can always use the functions directly in the console and fill in what you want.
Copy everything from the text box, go to Discord, CTRL+SHIFT+i, Console, slap everything in there, and then Enter. Then it works until Discord restarts.