Discord bot not working - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Networking (https://python-forum.io/forum-12.html) +--- Thread: Discord bot not working (/thread-23995.html) |
Discord bot not working - julio2000 - Jan-26-2020 from selenium import webdriver import time from selenium.webdriver.common.keys import Keys import discord from discord.ext import commands client = commands.Bot(command_prefix= '.') Token = 'mytoken' @client.event async def on_ready(): print('Bot is ready.') @client.command() async def embedt(ctx): embed = discord.Embed( title='Restocked!', description='The Jordan 11 Bred just restocked on JD Sports', colour=discord.Colour.purple() ) embed.set_footer(text='Fenix') embed.set_image('a picture') embed.set_thumbnail('a picture') embed.set_author(name='Fenix Restocks', icon_url='a picture') embed.add_field(name='Link', value='url') await ctx.send(embed=embed) client.run(Token) So when I run this file everything works. But as soon as I send the command '.embedt' trough discord, the bot gives the error that it could'nt find the command. But my command is embedt right? -> async def embedt(ctx): |