From 0ec8169d3ec6dc8a7e8dcdfe9353dcfb3dddcd4c Mon Sep 17 00:00:00 2001 From: Josh Date: Sat, 2 Nov 2024 18:03:25 -0400 Subject: feat: figured out how to get commands to work --- main.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'main.py') diff --git a/main.py b/main.py index 771aa17..5c22de2 100644 --- a/main.py +++ b/main.py @@ -3,11 +3,18 @@ import os import discord from dotenv import load_dotenv from bigresult import BotClient +from discord.ext import commands load_dotenv() TOKEN = os.getenv('DISCORD_TOKEN') intents = discord.Intents.all() -client = BotClient(intents=intents, command_prefix='!') # This represents our connection with Discord -client.run(TOKEN) # This actually starts our bot \ No newline at end of file +client = BotClient(intents=intents, command_prefix="!") # This represents our connection with Discord + + +@client.command(name="bigresult") +async def teach(ctx): + await ctx.send("https://cdn.discordapp.com/attachments/427176475406630914/1302392181448900649/image.png?ex=6727f2bd&is=6726a13d&hm=6092f4fba06412feac26a16a6900bf6e6122d66506f60bfcc0bc7101ecede4db&") + +client.run(TOKEN) # This actually starts our bot -- cgit v1.2.3