Files
croccybot/bot/meta/client.py
Harsha Raghu 437adf87e4 [Context] Implement LionContext
Need to append a Text to all bot replies to ask people to !vote
- Implement LionContext
- Implement Callback handler to enable Modules intercept cmdClient.Context.Utils() (attr calls)
2022-01-14 18:52:51 +05:30

21 lines
509 B
Python

from discord import Intents
from cmdClient.cmdClient import cmdClient
from .config import conf
from .sharding import shard_number, shard_count
from LionContext import LionContext
# Initialise client
owners = [int(owner) for owner in conf.bot.getlist('owners')]
intents = Intents.all()
intents.presences = False
client = cmdClient(
prefix=conf.bot['prefix'],
owners=owners,
intents=intents,
shard_id=shard_number,
shard_count=shard_count,
baseContext=LionContext
)
client.conf = conf