babennettdev / maturin-discord-bot

A flexible and scalable Discord bot using the NestJS framework.
MIT License
0 stars 0 forks source link

Feature/reddit command #2

Closed babennettdev closed 3 years ago

babennettdev commented 3 years ago

Overview

Using the Reddit API, through snoowrap, created a reddit command to link Reddit posts in a Discord channel.

Sample Command

!reddit --popular --new --random --search="basset hound" --limit="3" --time="all" aww

This command will return a total of 10 posts from r/aww. 3 posts from /popular, 3 from /new, 1 random post, and 3 posts returned from the query "basset hound". Both /popular and the search will use all posts as opposed to posts today, this week, this month, etc.

Contributions

Big thanks to @cchauser for pairing up to assist me with the listener.service RegEx. 💯