Here's my code. It's still in early development. Also, I'm fairly new to developing bots.
import discord
from discord.ext import commands
client = discord.Client()
bot_prefix: str = ">"
client = commands.Bot(command_prefix=bot_prefix)
@client.event
async def on_ready():
print('Miska Rise')
Here's the one event I have right now:
@client.event
async def on_message(message):
if message.author == client.user:
return None
if message.content.startswith('woof') or message.content.startswith('Woof'):
await message.channel.send('Bork!')
Here's the command:
@client.command()
async def ping(ctx):
await ctx.send('Pong!')