Table of Contents
A simple Discord Bot that takes an input and stores it with data in a MongoDB for future searches and to forever hold your favorite memories with your friends.
This bot requires selfhosting and NO external hosting is provided. A simple home server or RaspberryPi is more than enough for this program.
You must have a Discord app key and token ready for your bot before you begin. You may setup a developer account and create an application with discord by reading their docs.
You also must have a presistant instance of MongoDB installed and running somewhere that can be connected to. The script assumes it is on the local machine with the default port configuations.
- python3.11>=
- discordpy
- pymongo
- json
- Start by cloning this repository
- Fill out the
settings_ex.json
file with the required information and change it tosettings.json
- Start up the MongoDB instance
- We recomend creating a python venv to contain the dependencies of this project.
- Enter the
Quotebot
folder and runpython3 main.py
- The application will be up as long as the terminal session is active and it has a connection to discord
The quote bot will automatically be looking for messages in the channel that you specify. The format should be "[quote text] [mention]" with only a single mention. The quote bot will automatically handle the quoting and database insertion.
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt
for more information.