Making an Automated Discord Bot in Python


April 1, 2023 • Discord Bots Discord.py Python



I have been making bots for years using discord.py. I have become more in tune with how to efficiently make bots and adapted to the constant improvements Discord makes. The one project that has seen the most change is Jarvis, an automated support ticket bot I made for the sneaker group I help run, Notify.

 

The bot started by using discord emojis that act as a navigation tool for members to get what they wanted without the need of staff assistance. Discord eventually added a new feature, buttons, they improved the speed of navigation by close to 10x. This improved the quality of life of the bot drastically. Eventually support was added to allow created tickets to come with a member question, this prompted a huge overhaul in Jarvis. The addition of question searching came to fruition. Being able to collect mass amounts of user questions helped train the bots code to be able to more accurately give users the guides to help their needs without the need to click through categories like the previous two iterations. This is the current Jarvis iteration and it has been very successful.

 

Another addition to Jarvis was the inclusion of a ticket survey. As we wanted privacy to be up to the member the survey needed to be a direct message, so after the ticket was closed it would direct message the member and ask if they would like to complete a survey. The system was aimed to improve the number of completed surveys. Before, a separate link to an online survey was sent to members, this often caused issues since many members don't want to have to click more than they have to to complete a survey. This resulted in only 2-3% of members actually completing the survey. With the addition of the survey directly in the Discord direct messages, this number went to 15% a massive improvement.




Leave a comment:




Comments: