Inspiration
We have a funny friend on a Discord server. We thought it would be entertaining if there was a bot that repeated his messages. We decided to extend the functionality to work with anyone in the server, not just that specific person
What it does
The bot can impersonate a person by calling the "$impersonate @person" command. It looks for that person's messages and repeats them when the bot is tagged, replied to, just randomly but with a higher chance to reply if someone asks a question, or when the $talk command is called. The impersonate command can be called again to refresh the person's messages, or to impersonate another person
How we built it
We used Python and the Discord.py api.
Challenges we ran into
The documentation for Discord.py could have been better and it has also been a while since we last used Python.
Accomplishments that we're proud of
We tested it out on a live server with many of our friends and we were excited to see that they were interacting with the bot and laughing at the funny interactions. Martin Nguyen also optimized the data structure to save lots of time.
What we learned
We already knew Python before, so this was nothing new, but it was nice to have it reviewed since it has been a while. We also learned how to make Discord bots which is interesting since we use Discord a lot.
What's next for ImpostorBot
Since we have the text data, it would be interesting to use it for natural language processing so that the bot is more likely to respond with something that makes sense. The bot will also likely be used in our friend's server, where one of us will run it on a Raspberry Pi or an old computer.
Built With
- discord
- python
Log in or sign up for Devpost to join the conversation.