<filename>main.py

import os
import discord
from discord.ext.commands import Bot


Morax = Bot(
    command_prefix="-",
    intents=discord.Intents.all(),
    allowed_mentions=discord.AllowedMentions(roles=False, users=True, everyone=False),
    command_attrs=dict(hidden=True),
    help_command=None,
)

for filename in os.listdir("cogs"):
    if filename.endswith(".py"):
        Morax.load_extension(f"cogs.{filename[:-3]}")

if __name__ == "__main__":
    try:
        Morax.run(os.environ["token"])
    except Exception as e:
        print(f"Error when logging in {e}")

<filename>main.py

import os
import discord
from discord.ext.commands import Bot


Morax = Bot(
    command_prefix="-",
    intents=discord.Intents.all(),
    allowed_mentions=discord.AllowedMentions(roles=False, users=True, everyone=False),
    command_attrs=dict(hidden=True),
    help_command=None,
)

for filename in os.listdir("cogs"):
    if filename.endswith(".py"):
        Morax.load_extension(f"cogs.{filename[:-3]}")

if __name__ == "__main__":
    try:
        Morax.run(os.environ["token"])
    except Exception as e:
        print(f"Error when logging in {e}")
