---
title: "Discussion on \"Day 2 - Let's create some Python code!\" | Hashnode"
description: "Discussion on \"Day 2 - Let's create some Python code!\". So, we've done a little prep work in Discord for our bot, let's look at a basic set of Python code that'll essentially get our bot basically working:\nimport discord\nfrom discord.ext import commands\n\nWhat these 2 lines do:\n\nImport the discord library ..."
url: "https://hashnode.com/posts/day-2-lets-create-some-python-code/63d98975871ba5592f8f6db9"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Day 2 - Let's create some Python code!](https://lilkittykat.hashnode.dev/day-2-lets-create-some-python-code?utm_source=hashnode&utm_medium=feed)

So, we've done a little prep work in Discord for our bot, let's look at a basic set of Python code that'll essentially get our bot basically working: import discord from discord.ext import commands What these 2 lines do: Import the discord library ...

Jan 31, 2023 · 4 min read · lilkittykat.hashnode.dev  
Read the article

-   [#discord](https://hashnode.com/tag/discord)
-   [#python](https://hashnode.com/tag/python)

## Written by

[Lucy](https://hashnode.com/@LilKittyKat)

@LilKittyKat

  
[View profile](https://hashnode.com/@LilKittyKat)

A new coder sharing my learning!

I am a learning coder from the UK, and am learning Javascript but I am quite proficient in Python!

## Responses 1

Markdown supported · ⌘↵ to post

[Lucy](https://hashnode.com/@LilKittyKat)

[Jan 31, 2023](https://hashnode.com/posts/day-2-lets-create-some-python-code/63d98975871ba5592f8f6db9/comment/63d9916ff391025880c809e9)

I realised that I missed out an important line that was introduced in Discord.py v1.5 which I will be including at the start of Day 3!
