Inspiration
Everyday on Discord, people are spelling things wrong left and right. As a perfectionist in almost everything that we do, we want to combat this issue. This is how GrammarLee was born!
What it does
GrammarLee is a Discord bot that analyzes people’s messages for any spelling errors. The bot then responds to the user and tells them the correct spelling of said word.
How we built it
We built it using Python and a couple of APIs and Libraries. We used an API called Discord.py which allows a bot to have commands for Discord. We also used pyspellchecker which was a library that recognized misspelled words and what the user was trying to write.
Challenges we ran into
At first we couldn’t decide what language we wanted to program in. We kept going back and forth on JavaScript and Python. In the end however, we went with Python. We also had a hard time splitting a string of words apart for each word of the message to be analyzed. In the end, after many hours we were able to do it.
Accomplishments that we're proud of
We are proud that we figured out how to use and implement an API. We are also proud that we came together as a duo after just meeting and being able to work together efficiently.
What we learned
We learned how to implement APIs and libraries into Python! We also learned how to split up strings word by word and analyzed it. We also learned that Discord bots are not as scary to create as we thought they were!
What's next for GrammarLee
The next thing for GrammarLee is to have the bot give users roles based on their errors. Everyone will start at the same role that gives them the basic permissions of the server or channel. Once a user makes a mistake, they get a point. Once a user has 50 points, they will be demoted to another rank that has some restrictions. For example that could be they are in slow mode in the channel. This process of demotion repeats until the user cannot speak at all.
Built With
- discord
- discordpy
- python
Log in or sign up for Devpost to join the conversation.