diff options
author | Josh <eeei3.joshua0307lol@gmail.com> | 2024-11-02 18:03:25 -0400 |
---|---|---|
committer | Josh <eeei3.joshua0307lol@gmail.com> | 2024-11-02 18:03:25 -0400 |
commit | 0ec8169d3ec6dc8a7e8dcdfe9353dcfb3dddcd4c (patch) | |
tree | 5b51049a8362b8c85b937d3bb1340abeb00ddd32 /main.py | |
parent | 005af272481f43a9c075cc0278b949213fd1ee8e (diff) |
feat: figured out how to get commands to work
Diffstat (limited to 'main.py')
-rw-r--r-- | main.py | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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 |