0

I’ve just started trying to create a discord bot in Pythonista using an online tutorial, I installed StaSh and discord.py and I have the following code but I keep getting an error:

import discord

client = discord.Client()

@client.event
async def on_ready():
    print('We have logged in as {0.user}'.format(client))

@client.event
async def on_message(message):
    if message.author == client.user:
        return

    if message.content.startswith('$hello'):
        await message.channel.send('Hello!')

client.run("my_token")

the error is “no module named ‘ctypes.macholib’” and i don’t understand it at all. could someone please help? thanks!

0 Answers0