Skip to content

A Discord bot that can be configured to regularly post memes from Reddit in a text channel.

Notifications You must be signed in to change notification settings

dpleshkov/memetron-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Memetron

A Discord bot that can be configured to regularly post memes from Reddit in a text channel.

Example

How it works

Memetron uses Reddit's API to see if any new posts have made it to the "Hot" section in a subreddit. If so, it grabs the image(s) posted and embeds them in a message.

Bugs and limitations

  • Currently only static images work. Gifs and videos do not embed properly.
  • Configuration is currently done from a config.json file. As such, I am not hosting a public bot which you can add to your Discord server freely. If you wish to add this bot, you will need to host it yourself.

Self Hosting

Requires Node.js and NPM installed as well as a registered Discord Bot account. Familiarity with the JSON format is needed in order to configure the bot.

1. Clone the repository

git clone https://github.com/dpleshkov/memetron-bot.git

2. Install dependencies

cd memetron-bot/
npm install

3. Configure the bot

Configuration is done through the config.json file. An example config.example.json is included with the repo.

Copy over the example file:

cp config.example.json config.json

And edit it with a text editor: config.example.json

Replace your bot token with your bot's API token. Then, specify subreddits to watch, such as r/dankmemes. For each subreddit, specify one or more channels that the bot will output to. You can get channel IDs by enabling developer mode in the Discord app, then right clicking on a text channel's name.

How to get Channel IDs

4. Run

npm start

About

A Discord bot that can be configured to regularly post memes from Reddit in a text channel.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published