Inspiration
Both of us use discord quite regularly and became interested in learning how to create a bot for it. Then when we saw the demonstration for the twilio interface we decided to use a discord bot to link the two ideas.
What it does
Our Discord bot allows users to store their phone numbers with the bot and then send text messages to other users via simple commands in a discord server. If you receive a text from the bot you can send a text back in order to reply to the last received message.
How we built it
We used python and discords python api to construct the discord bot that sent messages using the twilio api. In order for users to reply to texts we used flask and ngrok to send messages to a separate script that stored messages to await pickup by the discord bot, which then puts the message into the correct channel.
Challenges we ran into
Dustin is a freshman Computer Engineering major and has little programming experience so much of this was new to him. Mason is a third year Computer Science major who knows some python, but has never built a discord bot, interfaced with web api, nor used the twilio api. All of this combined to make a large new experience for both of us.
The largest challenge was getting text messages from sms to Discord, because we needed to run two separate listeners, one on the twilio side to listen for replies and another to run the discord bot and then both of these scripts needed to communicate to receive info about the messages.
Accomplishments that we're proud of
We are proud to have learned how to use many new tools and to accomplish our main goals even with so little experience in many of the areas that we worked in.
What we learned
Both of us have become more familiar with python, learned how to build Discord bots that can interface with other technology, learned how to use the basics of the twilio app, and learned a way to communicate information between different sources and mediums.
What's next for Discord Twilio Bot
One of the next things the Discord Twilio Bot needs is to become more secure as it stores and uses private information (phone numbers).
Log in or sign up for Devpost to join the conversation.