# bot.py
import os
import json
# import random

# 1
import discord
from discord.ext import tasks, commands

# intents = discord.Intents.default()
# intents.members = True

setupfile = open("load/setup.json", "r")
setupdict = json.loads(setupfile.read())
setupfile.close()

TOKEN = setupdict['token']

#general bot meta
bot = commands.Bot(command_prefix='<:hoot:827398869557837844>')
bot.remove_command('help')

@bot.event
async def on_ready():
    print(f'{bot.user.name} has connected to Discord!')

@bot.event
async def on_command_error(ctx, error):
	await ctx.send(error)

for filename in os.listdir("./cogs"):
	if filename.endswith(".py") and filename != "__init__.py" and filename != "duo.py":
		bot.load_extension(f"cogs.{filename[:-3]}")

bot.run(TOKEN)
a8ca68b44819325969699c545de1df1c9db8b254
<mask token>

<mask token>
setupfile.close()
<mask token>
bot.remove_command('help')


@bot.event
async def on_ready():
    print(f'{bot.user.name} has connected to Discord!')


@bot.event
async def on_command_error(ctx, error):
    await ctx.send(error)


for filename in os.listdir('./cogs'):
    if filename.endswith('.py'
        ) and filename != '__init__.py' and filename != 'duo.py':
        bot.load_extension(f'cogs.{filename[:-3]}')
bot.run(TOKEN)

<mask token>
setupfile = open('load/setup.json', 'r')
setupdict = json.loads(setupfile.read())
setupfile.close()
TOKEN = setupdict['token']
bot = commands.Bot(command_prefix='<:hoot:827398869557837844>')
bot.remove_command('help')


@bot.event
async def on_ready():
    print(f'{bot.user.name} has connected to Discord!')


@bot.event
async def on_command_error(ctx, error):
    await ctx.send(error)


for filename in os.listdir('./cogs'):
    if filename.endswith('.py'
        ) and filename != '__init__.py' and filename != 'duo.py':
        bot.load_extension(f'cogs.{filename[:-3]}')
bot.run(TOKEN)

import os
import json
import discord
from discord.ext import tasks, commands
setupfile = open('load/setup.json', 'r')
setupdict = json.loads(setupfile.read())
setupfile.close()
TOKEN = setupdict['token']
bot = commands.Bot(command_prefix='<:hoot:827398869557837844>')
bot.remove_command('help')


@bot.event
async def on_ready():
    print(f'{bot.user.name} has connected to Discord!')


@bot.event
async def on_command_error(ctx, error):
    await ctx.send(error)


for filename in os.listdir('./cogs'):
    if filename.endswith('.py'
        ) and filename != '__init__.py' and filename != 'duo.py':
        bot.load_extension(f'cogs.{filename[:-3]}')
bot.run(TOKEN)

# bot.py
import os
import json
# import random

# 1
import discord
from discord.ext import tasks, commands

# intents = discord.Intents.default()
# intents.members = True

setupfile = open("load/setup.json", "r")
setupdict = json.loads(setupfile.read())
setupfile.close()

TOKEN = setupdict['token']

#general bot meta
bot = commands.Bot(command_prefix='<:hoot:827398869557837844>')
bot.remove_command('help')

@bot.event
async def on_ready():
    print(f'{bot.user.name} has connected to Discord!')

@bot.event
async def on_command_error(ctx, error):
	await ctx.send(error)

for filename in os.listdir("./cogs"):
	if filename.endswith(".py") and filename != "__init__.py" and filename != "duo.py":
		bot.load_extension(f"cogs.{filename[:-3]}")

bot.run(TOKEN)