I have a discord.py bot that when the command is sent through DM, it works. When the command is ran through a server, nothing happens. There is no errors or tracebacks. Here is my code so far.
import discord
from discord.ext import commands
bot = discord.Bot()
TOKEN = "MyToken"
bot = commands.Bot(command_prefix="$")
@bot.command()
async def test(ctx, arg):
await ctx.send(arg)
bot.run(TOKEN)
I don't know whats happening. I gave it the right permissions but it still wont do anything.