matchy/matchy.py

18 lines
427 B
Python
Raw Normal View History

2024-08-07 22:15:39 +01:00
# This example requires the 'message_content' intent.
import discord
import os
import logging
from discord.ext import commands
2024-08-07 22:15:39 +01:00
intents = discord.Intents.default()
intents.message_content = True
bot = commands.Bot(command_prefix='$', description="test", intents=intents)
2024-08-07 22:15:39 +01:00
@bot.command()
async def hello(ctx, *args):
"""Just say hello back"""
await ctx.send(f"Hi {ctx.author.mention}")
2024-08-07 22:15:39 +01:00
bot.run(os.getenv("BOT_TOKEN"))