Reddit-On-Discord
Simple discord bot built in ruby, outputs any new posts on a subreddit to a specific channel (Made for image subreddits like /r/Aww). Checks the 5 latest posts every 10 seconds (Change this depending on your needs)
Installation
From the Repo
- Clone the Repo
git clone https://github.com/cyan101/reddit-on-discord.git
cd reddit-on-discord
- Delete the .git folder
rm -rf .git
and start your own repogit init
- Install all the required shards
bundle
(if you don't have it yet usegem install bundler
)
Usage
From the Repo
- Create a dev app (and then a bot user) at Discord Dev -> My Apps
- Make
config.yaml
- Add the bot to your server
https://discordapp.com/oauth2/authorize?&client_id=xxx&scope=bot
replacexxx
with your client ID - Run
ruby bot.rb
, alternatively use a proccess manager like PM2 to run it in the background
Example Config
---
bot_key: a7S2-------------ZD4
bot_id: 33------53
bot_vers: 0.1
channel: 2432-------216
owner: 141--------704
subreddit: aww
bot_name: /r/Aww Posts
Contributing
- Fork it ( https://github.com/cyan101/reddit-on-discord/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- Cyan101 Jos Spencer - creator, maintainer