Discord bot that posts random fancy photos of the one and only Jayson.
!jaybot go— Pick and post a random photo of Jayson
!jaybot go hello— Pick and post a random photo of Jayson, with "hello" text
>v7.10 & npm
>=v5 and GraphicsMagick
- Clone the repository and run
.envand open up
- Setup your bot's token.
DISCORD_BOT_TOKENto your bot's token.
- Create a Google Cloud Storage bucket.
GOOGLE_CLOUD_STORAGE_BUCKET_NAMEto your GCS bucket name.
- Setup a new folder inside your bucket. The photos will be uploaded here. Don't forget to make the uploaded files public.
GOOGLE_CLOUD_STORAGE_SOURCE_DIRto the created folder.
- Setup Google Cloud Storage.
GOOGLE_APPLICATION_CREDENTIALSto the path to your GCS configuration.
- Start the bot with
npm i -g forever forever node index.js
I know, I know. I built this for fun, but I don't want my friend's privacy to suffer. So instead of a static list of photos / urls (which I uploaded to Imgur, initially), I've made things configurable.
Since it's there, I added an image optimization to the mix. I also had some issues with Imgur's API, so I went ahead and switched to Google Cloud Storage since it's free.
Anyway, I love my friends so much I'm willing to use my free day to build rad shit like this. All-in for the memes.