Discord Quotes Bot

2025-06

Languages

Tools

Github Repo: Here

# Background

In our friendgroup we have a discord server with a channel where we collect funny quotes from eachother. This has been a process starting since the beginning of highschool and is currently over 11 years old. Leading us to currently have over 1500 quotes collected. Now every once and a while i scroll through this channel to look at fun quotes, but this gets old after scrolling back 2 years, while there are some real gems in there.

# Motivation

To give myself a side project to do, I decided to make a discord bot for this purpose. I scraped the entire channel clean, and got a 7 year old document from the first 2 years when we did it in a whatsapp group. And transformed/sanitized all the data into one type of format. See the repo for the code I used here. After unicoding all data I generated an SQlite db, containing all the quotes, authors, dates, and other relevant information.

# Functionality

The bot itself is made with discord.js. Its main features are the addition of new quotes to the database, and a daily quote. The bot will select a quote at random from the database (as long as it hasnt already been sent). And posts it in the discord. Everyone can then vote on this quote with emoji reactions 1-5. Which gets stored in a votes database. As of writing this the bot has handled 500+ quotes, and has built up a pretty solid leaderboard and database.

# Commands

Its commands are:
- /quotes-add
- /quotes-leaderboard
- /quotes-by-name
- /quotes-myranking
These commands allow you to add quotes, see the leaderboard, see quotes by a specific person, and see your personal ranking respectively.

# Usage

If you want to use this bot in your own server, you can do with relative ease. You only need to host the bot yourself on a vps, or local server. And add the bot to your server, and it will work automatically. Because it sets up a local database, wherever you host it. Just make sure to invite the bot with the right permissions, so it can read messages and post messages.

If you want to customize the bot, you can fork the repo and change the code to your liking. If you have any questions about setting it up, feel free to reach out to me!