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

Cheuk Ting Ho (~Cheukting)




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

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, 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 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 This talk is suitable for attendees who got basic knowledge in Python but not necessarily know about Discord or async.


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:

Content URLs:

Presentation slides [WIP]:

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

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