EssaGalleryBot is a Discord bot for the Essa Gallery Project, designed to input image and YouTube video links through a Discord channel. It integrates with Cloudinary for image hosting and Redis for data storage.
- Discord bot using
discord.js
- Image hosting via Cloudinary
- Data storage using Redis
- Logging with
pino
and optional pretty output usingpino-pretty
- Configurable environment variables for easy setup
- Automatic upload using Discord channel
- Clone the repository:
git clone https://github.com/Essa-Media/EssaGalleryBot.git cd EssaGalleryBot
- Install dependencies:
npm i -g yarn yarn install
- Create
.env
file and from the example that are provided in.env.example
:TOKEN="YOUR_DISCORD_BOT_TOKEN" CLIENT_ID="YOUR_CLIENT_ID" REDIS_URI="YOUR_REDIS_URI" CLOUDINARY_URL="YOUR_CLOUDINARY_URL" LOG_LEVEL="info|debug|fatal|error|warn|trace"
yarn run dev
yarn run dev-no-pretty
Compiles the TypeScript code into JavaScript for production.
yarn run build
Runs the bot in production mode using the compiled JavaScript.
yarn run production