A really basic Discord bot that only has one purpose, send a message in a channel when a tree from "Grow a Tree" bot needs to be watered.
Made for trash Discord (join us and help us grow the tree pls)
Project initialized using the A8 stack, my personal TypeScript app initializer
Note: This bot is still in development and is not yet ready for public use.
- Node.js 20 or higher
- A Discord bot token with the "Message Content Intent"
- A PostgreSQL database
- A Redis database
- Clone the repository
- Install the required packages with
npm install
- Copy the
.env.example
file to.env
and fill in the required values - (Optional) Start a database with Docker using
docker compose up -d
- Initialize your database with
npm run db:push
- Run the bot with
npm run start:dev
ornpm run start
(after building the project withnpm run build
)
It also has Docker but I haven't tested it yet, so I can't guarantee it works.
The most important command (because it does everything at once) is the /set-tree
command.
You will need to provide :
- The channel where the tree is located
- The channel where to send the reminder message
- The "Grow a Tree" bot user
- The name of the tree (case sensitive)