Inspiration
YAGPDB was a huge inspiration to the website design. HASPR itself was inspired by MEE6, with friendly discord features and a curse prevention.
What it does
HASPPR (HAte SPeech PRevention Bot) monitors discord servers and effectively deals with curse words, slurs, and hate speech, directed at racial or ethnic minorities. It keeps discord servers safer, friendlier, and more encouraging to use. It has safe, customizable profanity and blacklist settings, basic bot commands, and much more.
How we built it
We coded our discord bot using python's built-in commands and the python discord library. We used Visual Studio Code to launch the Discord Bot since Replit kept crashing. We considered many options but decided upon the browser-based IDE Replit, which was slow but saved installing time. We used Replit to make an HTML/CSS/Javascript website to advertise our bot.
Challenges we ran into
One challenge faced by our group was programming the bot's commands, such as kicking and banning users. Originally it worked, but as we progressed the new code added broke the features, causing us to have to debug the code. Another challenge we faced was building the website, especially using Javascript to do so, because only one of our teammates remembered how to code in the language. Often times, the bot and replit stopped working and could not be accessed in the process of creating HASPR. We had to wait and reboot the system multiple times to get it to work again. Lastly, one of our teammates had audio problems and could not communicate with the rest of the team.
Accomplishments that we're proud of
We felt very accomplished in launching HASPR since none of us had discord.py experience within the last few years and it took almost 2 hours for Replit to stop breaking. We are proud of making the website's features and aesthetics. We included hyperlinks to jump to different parts of the webpage and made drop-down buttons on the website to incorporate different features. Finally, we were very proud of finishing in time despite all of the bugs and errors we faced as for many of us this was our first hackathon.
What we learned
Our knowledge of programming was refreshed from this competition since it had been a while since we had coded. We learned how to animate backgrounds in CSS, and learned more about the discord.py and the better-profanity modules. Some of us quickly learned JS to incorporate drop-down buttons and hyperlinks.
What's next for HASPPR
We plan to implement an AI that interprets whether the intention of the message was good or bad. Certain words in the English language can be used in both a positive and a negative connotation, which a future AI we implement will help clarify. Another thing we plan to improve is HASPR's website by adding a bug-report section to benefit the development of HASPR.
Built With
- better-profanity
- css3
- discord.py
- flask
- html5
- javascript
- python
- replit
- threads
- visual-studio
Log in or sign up for Devpost to join the conversation.