2024-08-07 22:15:39 +01:00
|
|
|
# This example requires the 'message_content' intent.
|
|
|
|
|
|
|
|
import discord
|
2024-08-07 22:45:23 +01:00
|
|
|
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
|
|
|
|
|
2024-08-07 22:45:23 +01:00
|
|
|
bot = commands.Bot(command_prefix='$', description="test", intents=intents)
|
2024-08-07 22:15:39 +01:00
|
|
|
|
2024-08-07 22:45:23 +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
|
|
|
|
2024-08-07 22:45:23 +01:00
|
|
|
bot.run(os.getenv("BOT_TOKEN"))
|