Don't be Afraid of Async - Automate Mundane Tasks using Discord.py

Cheuk Ting Ho (~Cheukting)


0

Votes

Description:

Everybody hates mundane tasks, they are boring, repetitive and time-consuming. That’s why I love building bots, they can finish my tasks for me by working 24/7. But to build a bot to interact with the users, you have to write in async. If you are afraid of async, don't worry! Today I am telling you how I learn using async and how I avoid checking in 500+ people in a conference by building a bot with Discord.py.


In the first part of the talk, there will be a short introduction to Discord. As more and more conference goes online, it’s become a more and more popular tool among the Python community. I will also introduce Discord.py, a python library that offered an async API to let you build a Discord bot. This will give the audiences a background about the following quick demo and explanation of a simple bot that I built.

In the second part of the talk, I will walk through how to build a bot for registering attendees for EuroPython. Following a quick demo, I will also give a walkthrough about some of the async coroutines available in Discord.py: event listener like on_ready and commands. I will also explain how the async code is different from the sync code and the danger of mixing them together.


Hopefully, audiences will be inspired to build their own bot and learn a little bit about writing async code in Python and using Discord.py. This talk is suitable for attendees who got basic knowledge in Python but not necessarily know about Discord or async.

Prerequisites:

This talk assumes audiences have some basic Python experience, knowing how to write sync code in Python. Knowing how to write async code or experience in Discord is not required.

Video URL:

https://youtu.be/WkjkNkKtwz8

Content URLs:

Presentation slides [WIP]: https://slides.com/cheukting_ho/dont-be-afraid-of-async

Speaker Info:

After spending 5 years researching theoretical physics at Hong Kong University of Science and Technology, Cheuk has transferred her analytical and logical skills in natural science and built a career in data science. Cheuk has been a Data Scientist in one of the biggest worldwide wholesalers in the travel business; an AWS partnered consultancy which delivers machine learning model; a startup aiming to revolutionise revenue management with data science and; a global bank using machine learning to investigating financial crime. Now Cheuk is working in a team of developers building a revolutionary graph database - TerminusDB.

Cheuk constantly contributes to the community by giving AI and deep learning workshops and organize sprints for open source projects, at the same time contribute to open source projects including Pandas, Keras, Scikit-learn, Dateutil and maintaining her open-source library - PicknMix. Cheuk has also been a guest speaker at Universities and various conferences. Believing in gender equality, Cheuk is currently a co-organizer of AI Club for Gender Minorities to support Tech Diversity and Inclusion. On top of speaking at conferences, Cheuk has joined the organizing team of EuroPython and PyData Global.

Speaker Links:

Everything can be found at https://cheuk.dev/

Section: Developer tools and automation
Type: Talks
Target Audience: Intermediate
Last Updated: