https://github.com/e-e-e/are.na-discord-bot
A discord bot for posting links and files to are.na
https://github.com/e-e-e/are.na-discord-bot
Last synced: 18 days ago
JSON representation
A discord bot for posting links and files to are.na
- Host: GitHub
- URL: https://github.com/e-e-e/are.na-discord-bot
- Owner: e-e-e
- Created: 2022-05-06T12:34:12.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-06T12:54:39.000Z (almost 4 years ago)
- Last Synced: 2025-08-12T16:36:15.610Z (7 months ago)
- Language: TypeScript
- Size: 69.3 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# An Are.na Discord Bot
This is a very basic discord bot for sharing links and posting the content to [are.na](https://are.na).
## How this bot works
If you post links or attachments a discord channel and mention this bot (`@your-bot-name`), the bot will automatically
post the links and/or attachments to your are.na channel.
## Getting started
Dependencies:
- Node v16+
- Yarn 3.2+
Clone this repository to get the code.
### Environment Variables
Requires environment variables for configuring access to discord and to are.na. You can set these however you normally
set environment variables for your deployment, or you can place a `.env` file at the root of this directory.
```
DISCORD_BOT_TOKEN=YOUR_DISCORD_BOT_TOKEN
DISCORD_BOT_ID=YOUR_DISCORD_BOT_USER_ID
ARENA_API_TOKEN=YOUR_ARENA_API_TOKEN
```
### Channel configuration
You can specify which of your discord channels will post to which are.na channels by creating a file
named `channels.json` in the root of this directory. This maps the discord channel to the are.na channel slug. Example:
```json
{
"my-discord-channel-name": "my-arena-channel-slug"
}
```
### Running the app
Install dependencies:
```bash
yarn install
```
#### Development
```bash
yarn dev
```
#### Production
First build the app:
```bash
yarn build
```
Run the app:
```bash
yarn start
```