Skip to content

Chedis ​

Chedis is a free and open source Discord bot that archives the images posted in your Discord channels to your Chevereto website. Type !archive in a channel and the bot uploads the image attachments to an album in your account.

You run Chedis yourself, on any computer or server that can run Node.js.

Create the Discord bot ​

  • Go to the Discord Developer Portal and click New Application
  • In Bot, click Reset Token and copy the bot token
  • In Bot, turn on Message Content Intent
  • In OAuth2 > URL Generator, check the bot scope and the Send Messages, Add Reactions and Read Message History permissions (permissions integer 67648)
  • Open the generated URL and add the bot to your Discord server

Get Chedis ​

You need Git and Node.js. Download Chedis and install its dependencies:

sh
git clone https://github.com/dope250/Chedis.git
cd Chedis
npm install

Add Chevereto to Chedis ​

You need your API key, the address of your Chevereto website and the ID of the album where the images will go.

TIP

The album ID is the last part of the album URL, after the dot. For https://mysite.com/album/discord.AbCd the album ID is AbCd.

Create a file named .env in the Chedis folder with the following content, and edit it to match your Discord bot and Chevereto website:

sh
TOKEN=your-discord-bot-token
CHEVERETO_API=your-api-key
CHEVERETO_ALBUM_ID=AbCd
CHEVERETO_URL=https://mysite.com

Replace each value with your own. Don't add comments or spaces after the values.

TIP

Your website address must not end with a slash or /api/1/upload, Chedis adds the upload path for you.

Start the bot ​

Run:

sh
npm start

Chedis prints Logged in as followed by the bot name when it's ready. Keep it running for the bot to stay online.

Archive images ​

In any channel the bot can see, do either of these:

  • Post a message with image attachments and the text !archive
  • Reply to a message that has image attachments with !archive

Chedis uploads every attachment of the message to your album and reacts with ✅ when the upload works. If something goes wrong, it posts an error message in the channel.

Need help? ​

Refer to the Chedis repository for help about the bot.

Released under the Apache-2.0 License.