Discord bot for filtering messages and display only relevant messages. The bot will read the Discord conversation, and according to its criterias (machine learning), choose interesting messages to display in a special channel.
This project was created following the observation that it's difficult to follow a Discord conversation with many members without spending hours there. We decided to do something about it. The Discord bot, based on maching learning, will treat data that we give it, and learn.
- Windows
- Linux
- Mac
- Bot discord
- Data Generator
- Language : Java 11
- GUI : JavaFX 11.0.1
- Database : MySQL 8.0.16
- Compilation : Gradle 5.4.1
- Discord Bot.
- Data Generation, used for trainning Discord Bot.
Data Generator
Data Generator
- Install MySQL
- Install Java 11 or +
- Create Jar
- Windows
- Open search bar and search for Command Prompt.
- Write and execute :
cd /[YourLocalPath]/SpamFilterBot/DataGenerator/
- Write and execute :
gradlew jar
- Jar will be generated in "[YourLocalPath]/SpamFilterBot/DataGenerator/build/libs/" with name dataGenerator-[current version].jar.
- Mac / Linux
- Open a terminal.
- Write and execute :
cd /[YourLocalPath]/SpamFilterBot/DataGenerator/
- Write and execute :
./gradlew jar
- Jar will be generated in "[YourLocalPath]/SpamFilterBot/DataGenerator/build/libs/" with name dataGenerator-[current version].jar.
- Windows
- You can run it, enjoy !
Discord bot
Data Generator
- Launch the Jar.
- Enter the name of MySQL database you want to use.
- If database doesn't exist, software will create it later.
- If database exists, software will connect to it and use it later.
- If don't write a name, it will be "data" by default.
- Click on Choose a file button.
- Select a KakaoTalk file with txt extension. If you haven't a KakaoTalk File, you can export it from KakaoTalk
- Wait processing of parsing file, and generation/connection on MySQL database.
- The interface will change, now you can judge the interesting message by selecting yes or no for each message.
- You can change of page at the end of the interface by clicking on number page, or directional arrows.
- You can close the software, and run it later, all modifications will be save on database in live.
Discord bot
- Install the dependencies using
pip install -r requirements.txt
- Launch the bot using
python main.py
We decided to use KakaoTalk file for generating data because it's the current platform we use for communication (so bigger data). Parsing class, here, can be re-implemented with another support platform.
Discord bot because Discord is popular, have a great documentation, in English (KakaoTalk documentation is in Korean for major parts).
@Sugihiru - 50181588 @VianneyDoleans - 50181551 @Hardkaise - 50181586 Philippe - 50181563 Walter - 50181549 Alexis - 50181595