[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:
Harsha Raghu
2022-01-14 18:52:51 +05:30
parent a2fcdf075f
commit 437adf87e4
3 changed files with 98 additions and 9 deletions

View File

@@ -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