Skip to content

Helmare/snapcord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snapcord

Turns text channels into a Snapchat-style chats, where messages are deleted after 24 hours. You can save messages by reacting with 💾.

Click install to add it to your server 😊

Features

  • Automatically deletes old messages.
  • Set how long messages last in the channel.
  • Messages reacted with 💾 are saved.

Commands

/enable

Enables Snapcord in a channel with a specified duration.

Option Required Description
duration yes Amount of time before messages are deleted.
channel no Which channel to enable (this one by default).

/disable

Disables Snapcord in a channel.

Option Required Description
channel no Which channel to disable (this one by default).

/status

Replies whether or not Snapcord is enabled in a channel.

Option Required Description
channel no Which channel to enable (this one by default).

Local Install

Requirements

  • Node.js (latest LTS version recommended)
  • A Discord bot token
  • A PostgreSQL database hosted on Neon

Installation

  1. Clone this repository:

    git clone https://github.com/Helmare/snapcord.git
    cd snapcord
  2. Install dependencies:

    npm install
  3. Create a .env or .env.development file and add the following:

    SLEEP_DURATION=60000
    DISCORD_CLIENT_TOKEN='your-token'
    DATABASE_URL='your-database-url'
  4. Start the bot:

    npm run dev

About

A Discord bot to turn text channels into a Snapchat-style chats, where messages are deleted after 24 hours. You can save messages by reacting with 💾.

Resources

Stars

Watchers

Forks

Contributors