2023-12-04 13:51:43 -07:00
|
|
|
import configparser
|
2023-01-19 21:37:39 -07:00
|
|
|
import discord
|
2023-12-04 13:51:43 -07:00
|
|
|
from discord.ext import bridge
|
|
|
|
|
import discord
|
|
|
|
|
import logging
|
|
|
|
|
|
|
|
|
|
logging.basicConfig(level=logging.WARNING)
|
|
|
|
|
|
|
|
|
|
config = configparser.ConfigParser()
|
|
|
|
|
config.read("config/bot.conf")
|
2023-01-19 21:37:39 -07:00
|
|
|
|
2023-12-04 13:51:43 -07:00
|
|
|
bot = bridge.Bot(
|
|
|
|
|
help_command=None,
|
2023-10-26 23:25:09 -06:00
|
|
|
command_prefix="!",
|
|
|
|
|
intents=discord.Intents.all(),
|
|
|
|
|
activity=discord.Activity(
|
2023-12-04 13:51:43 -07:00
|
|
|
type=discord.ActivityType.watching,
|
|
|
|
|
name="you")
|
2023-10-26 23:25:09 -06:00
|
|
|
)
|
2023-12-04 13:51:43 -07:00
|
|
|
|
|
|
|
|
@bot.event
|
|
|
|
|
async def on_ready():
|
|
|
|
|
print(f"Logged in as {bot.user} (ID: {bot.user.id})")
|
|
|
|
|
bot.load_extension("cogs.reply")
|
|
|
|
|
bot.load_extension("cogs.repost")
|
|
|
|
|
# bot.load_extension("cogs.counting")
|
|
|
|
|
# bot.load_extension("cogs.test")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bot.run(config["MAIN"]["token"])
|