Skip to content

Instantly share code, notes, and snippets.

View WhoIsAbishag's full-sized avatar
🎯
Focusing

WhoIsAbishag WhoIsAbishag

🎯
Focusing
View GitHub Profile
@wilfreddv
wilfreddv / BotWriteup.md
Last active November 19, 2018 20:51
Writeup of a Discord bot that runs Python code

Writing a Discord bot that executes Python code

How did it start

Python has become wildly popular in a number of fields, one of which is (chat)bots. Finally, I couldn't resist the urge to write one myself. I wouldn't be myself if it did not involve some dangerous challenge. That's why I challenged myself to write a Discord bot, that lets users run snippets of python code, on my machine.

Chapter 1: Building the skeleton

This was the easy part. After kickstarting my Discord bot knowledge by watching Sentdex' series on YouTube, I managed to throw together a quick bot. Of course, this was still very bare-bones, with only 2 functions: reporting