ayvacs / dimwit

Mess around with images and GIFs on Discord!

Home Page:http://ave.is-a.dev/dimwit/invite

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


Dimwit logo


Repository license Repository commit activity Repository Scrutinizer quality Repository Scuritinizer build pass/fail

About

Mess around with images and GIFs on Discord! Dimwit is a Discord bot that introduces numerous funny image-related commands. Written in TypeScript.

  • Multiple image-related commands, and a small set of useful utility commands
    • All features fully work with all widely-used image formats, including GIFs
  • A cache that allows users to select an already-uploaded image to use in their command without re-uploading it
    • The cache automatically saves, persisting between sessions

Hosting

Requirements

  • node.js (≥ 20.11.1)
  • npm (≥ 10.2.4)

Build and run

  • Install dependencies: npm i
  • Build JS files: npm run build
  • Run: npm start

Configuration

Create a config.json file in .config/ with the following information:

Required

Name Details
token Your bot's token
clientId Your app's application ID (string)
guildId ID of a testing guild (string)

Only required for certain features

You may also want to add the following information, which is not required for the bot to run but may be required for certain features:

Name Default Details
doAdvancedLogging false Suppress outputs that are usually unnecessary
inviteLink A URL that people can use to add the bot to the server (it is recommended to use 277025770496 for permissions and bot+applications.commands for scope)

Node scripts

Command Details
npm test Build and start.
npm run build Compile all .ts files in src/ to .js files in dist/. This will delete everything in the dist/ folder first.
npm run update-commands Requires that you compiled to .js with npm run build! Allows you to refresh and flush commands.

About

Mess around with images and GIFs on Discord!

http://ave.is-a.dev/dimwit/invite

License:GNU General Public License v3.0


Languages

Language:TypeScript 88.8%Language:JavaScript 11.2%