Skip to content

xDestinoJS/meme-machine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Meme Machine

Last Commit Contributors

A project created to display images sent in a Discord chat to a website using discord.js and socket.io!

Requirements

Node.JS, text editor (e.g. VSCode)

Why?

Meme Machine can be used to display memes on your social media (e.g. YouTube Videos & Twitch Streams) using OBS's or Slobs's Browser Source.

Setup

  1. Run git clone https://github.com/xDestinoJS/meme-machine in your terminal
  2. Run cd meme-machine
  3. Run npm install discord.js socket.io express
  4. Open index.js with your text editor and replace the variables "token" and "url":
    • replace token with your Discord bot token (you can get one at the Discord Developer Portal)
    • replace url with the url of your website (not required)
  5. Run node .
  6. Point your browser to http://localhost:3000

Getting a Discord bot token

  1. Go to the Discord Developer Portal and click on the "New Application" button. Then, give the application a name and click "Create":
    Image
  2. Then, create a Bot User by navigating to the "Bot" tab under settings and clicking "Add Bot":
    Image
    Click "Yes, do it!" to continue.
  3. Disable public bot if you don't want other people to invite your bot:
    image
  4. Then, copy your bot token:
    image

⚠️ Always keep the token a secret, as that is the equivalent to your bot's password. Anyone with the token can log in as your bot.

Inviting your bot to your server

  1. Get the Client ID by navigating to the "General Information" tab under settings
  2. Click "Copy" under Client ID
    image
  3. Replace "INSERT_CLIENT_ID_HERE" with your Client ID:
    https://discord.com/oauth2/authorize?client_id=INSERT_CLIENT_ID_HERE&scope=bot&permissions=3072
  4. Go to that URL

Credits

TimeTicks, xDestino and the authors of socket.io, discord.js and express

Disclaimer

Users of Meme Machine have the ability to post any image, including NSFW images. I'm not responsible for any ban on any social media for any NSFW content being displayed.

About

A project created to display images sent in a Discord chat to a website using discord.js and socket.io!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors