Skip to content

LinkFrost/GroupQuotes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GroupQuotes

Logo


GroupQuotes is a Discord bot that let's you save and display quotes in your Discord server.
Invite GroupQuotes to your server!

About

This bot was written in TypeScript using the discordjs library, alongside MongoDB and Redis as the databases. Quotes are stored in seperate collections per server in the MongoDB database, and Redis is used to store which text channel in the Discord server is set as the gallery channel.


How to run

While this bot is already being hosted and has a global invite link that can be used on any server, you can run an instance yourself.

Run:

npm install and then

npm run start

or ts-node src/index.ts

Environment Variables

The following environment variables are used in the bot:

BOT_TOKEN

The token of the bot from the Discord Developer Portal.

APPLICATION_ID

The id of the Discord Application for the bot from the Discord Developer Portal.

MONGO_USER and MONGO_PASSWORD

Username and password for the MongoDB instance.

REDIS_USER and REDIS_PASSWORD

Username and password for the Redis instance.


Future Plans and Known Bugs

  • Being able to save multiple quotes at once, ie. a small conversation comprised of two to five quotes, is down the roadmap.

  • Currently, for listing quotes, the bot uses a package for creating paginated embed messages that contains functionality for flipping through pages. This package has an issue where if there is only one page of messages, hitting any of the buttons results in an "Interaction failed" message (it does not seem to crash the bot at least). In the future, this package might be replaced with a fixed, forked version, or an in house solution for paginated embeds.

About

GroupQuotes is a Discord bot that let's you save and display quotes in your Discord server.

Resources

License

Stars

Watchers

Forks

Packages

No packages published