This application is basically a bot for discord built in NodeJS.
The bot receives a call from a prefix and then takes a random image and inserts text.
Example:
# This prefix is a ";"
; This is funny!
The bot returns an random image containing the text "This is funny!"
- Create .env and change sensitive data
- Install dependency
# If you use yarn for control dependency run:
yarn
# If you use npm for control dependency run:
npm install
# Or
npm i
- Add image URLs to .env
- Create a randomPhoto.js in src > utils and add process.env files like this in the example file
- Add the variables of the .env images to array
- Add the bot to your Discord server
- Running application
# To run in development use:
yarn dev
# If you use npm run:
npm run dev
# To execute:
yarn start
# Or
npm start