Skip to content

Commit

Permalink
fix: (all) refactor and DRY up code
Browse files Browse the repository at this point in the history
  • Loading branch information
tyzbit committed Jul 20, 2023
1 parent 4431e61 commit 775148d
Show file tree
Hide file tree
Showing 11 changed files with 664 additions and 692 deletions.
22 changes: 18 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,34 @@ Otherwise, it will save stats to a local sqlite database at `/var/go-discord-arc

## Usage

Configure the bot with slash commands:
React to a message that has links with 🏛 (The "classical building" emoji) and the bot will respond in the channel with an archive.org link for the link(s). It saves the page to archive.org if needed.

- You can also right-click (or long press) a message and use "Get snapshot" to get a message with snapshots that only you can see.

**This is a pretty good way to get around paywalls to read articles for free.**

### Commands

Configure the bot:

`/settings`

Get a snapshot for one URL in a message visible only to you:
`/archive`

You can also right-click (or long press) a message and use "Get snapshot" to get a message with snapshots for any link that only you can see.
`/archive`

Get stats for the bot:

`/stats`

Get help for the bot:
Get this help message:

`/help`

### NOTES

- It can take up to a few minutes for archive.org to save a page, so if you don't get a link immediately, please be patient.

## Development

Create a `.env` file with your configuration, at the bare minimum you need
Expand Down
Loading

0 comments on commit 775148d

Please sign in to comment.