[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)
This commit is contained in:
@@ -3,7 +3,7 @@ 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')]
|
||||
@@ -14,6 +14,7 @@ client = cmdClient(
|
||||
owners=owners,
|
||||
intents=intents,
|
||||
shard_id=shard_number,
|
||||
shard_count=shard_count
|
||||
shard_count=shard_count,
|
||||
baseContext=LionContext
|
||||
)
|
||||
client.conf = conf
|
||||
|
||||
Reference in New Issue
Block a user