We're sorry but this page doesn't work properly without JavaScript enabled. Please enable it to continue.
Feedback

Don't be Afraid of Async

Formale Metadaten

Titel
Don't be Afraid of Async
Untertitel
Automate Mundane Tasks with a bot by using Discord.py
Serientitel
Anzahl der Teile
637
Autor
Lizenz
CC-Namensnennung 2.0 Belgien:
Sie dürfen das Werk bzw. den Inhalt zu jedem legalen Zweck nutzen, verändern und in unveränderter oder veränderter Form vervielfältigen, verbreiten und öffentlich zugänglich machen, sofern Sie den Namen des Autors/Rechteinhabers in der von ihm festgelegten Weise nennen.
Identifikatoren
Herausgeber
Erscheinungsjahr
Sprache

Inhaltliche Metadaten

Fachgebiet
Genre
Abstract
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.