Bot (Python)

This is a bot that I programmed in Python. This bot is made for discord. It replies to messages by sending a random image from the server. The bot is written using the discord api.

import discord
from discord.ext import commands
import os
from random import randint

TOKEN = 'NTE2NzM3Mzk4NDI0NDY5NTI1.Dt4Uww.rmmzWL6q86MU_2_D-7oifF_cc98'

client = commands.Bot(command_prefix = '')

async def on_message(message):
#meme machine
if message.content.startswith('Got any memes?'):
area =
dir = os.getcwd() + "/pics"
files = os.listdir(dir)
i = randint(0, len(files) - 1)
pic = dir + "/" + files[i]
await client.send_file(area, pic)

#Here we go
async def on_ready():
status = + " is ready"