Daily Rem is a Twitter bot that tweets a Rem picture from Danbooru every hour. This version is built with Node.js, using the Danbooru API to fetch images and the Twitter API v2 to post tweets.
- Fetches random safe-for-work Rem images from Danbooru.
- Tweets the image along with the artist's name (if available) every hour.
- Built with TypeScript for type safety and maintainability.
-
Clone the project repository:
git clone https://github.com/your-repo/daily-rem.git cd daily-rem
-
Copy the
.env.example
file to.env
and fill in your credentials:cp .env.example .env
Update the following variables with your Twitter API keys and Danbooru API URL:
API_KEY='YOUR_API_KEY' API_SECRET='YOUR_API_SECRET' ACCESS_TOKEN='YOUR_ACCESS_TOKEN' ACCESS_TOKEN_SECRET='YOUR_ACCESS_TOKEN_SECRET' DANBOORU_API_URL='https://danbooru.donmai.us/posts/random.json?tags=rem_(re:zero)+rating:safe'
-
Install dependencies:
npm install
-
Run the bot in development mode:
npm run dev
-
To build and run the bot in production:
npm run build npm start
-
Build the Docker image:
docker-compose build
-
Start the container:
docker-compose up -d
-
Logs can be found in the
logs
directory.
All images used are the property of their respective artists.
If you have any questions, encounter issues, or just want to connect, feel free to reach out on Twitter.