22 lines
521 B
Python
22 lines
521 B
Python
import discord
|
|
from discord.ext import commands
|
|
import logging
|
|
from configmanager import ConfigManager
|
|
|
|
intents = discord.Intents.default()
|
|
intents.members = True
|
|
|
|
bot = discord.Bot(intents=intents)
|
|
setting = ConfigManager.read_config()
|
|
token = setting['Bot']['Token']
|
|
logger = logging.getLogger()
|
|
|
|
class Kiafumi(discord.Bot):
|
|
@bot.event
|
|
async def on_ready():
|
|
logger.info(f'Logged on as {bot.user}!')
|
|
|
|
for ext in ['commands.fun', 'commands.moderation']:
|
|
bot.load_extension(ext)
|
|
|
|
bot.run(token) # token |