Skip to content
This repository has been archived by the owner on Oct 13, 2021. It is now read-only.

gtrxAC/dcutil

Repository files navigation

dcutil

A simple image editor bot for Discord based on Discord.js and Canvas.

Functionality

What dcutil can do:

  • create new images
  • get user avatars
  • resize images
  • paste images over images
  • write text to images
  • draw shapes to images
  • crop and add borders to images

What dcutil can't do:

  • meme generation without your own templates
  • add effects to images (check out NotSoBot for that)
  • live up to people's expectations

Example

  • _color black

  • _new
    Creates a new image.

  • _color white

  • _rect 2 2 46 46 4
    Draws a 46×46 rectangle starting at (2,2) with 4px outline.

  • _color red

  • _circle 50 0 50 50
    Draws a 50x50 diameter circle starting at (50,0).

  • _color darkslateblue

  • _text 10 60 14 monospace

  • dcutil
    Writes "dcutil" starting at (10,60) with 14px monospace font.

Self-hosting

  1. Clone the repository.
  2. Install the dependencies. npm i discord.js canvas
  3. Create a token.txt file in the root directory and paste your bot token there.
  4. Run the bot. node index.js

About

Discord Canvas Utility

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published