mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-11 16:20:13 +00:00
Major command handling refactor
This commit is contained in:
parent
0869f94cdf
commit
f067485e88
15 changed files with 463 additions and 355 deletions
|
|
@ -75,7 +75,11 @@ class PluralKitBot:
|
|||
pass
|
||||
|
||||
async def handle_command_dispatch(self, message):
|
||||
command_items = commands.command_list.items()
|
||||
async with self.pool.acquire() as conn:
|
||||
result = await commands.command_dispatch(self.client, message, conn)
|
||||
return result
|
||||
|
||||
"""command_items = commands.command_list.items()
|
||||
command_items = sorted(command_items, key=lambda x: len(x[0]), reverse=True)
|
||||
|
||||
prefix = "pk;"
|
||||
|
|
@ -98,7 +102,7 @@ class PluralKitBot:
|
|||
response_time = (datetime.now() - message.timestamp).total_seconds()
|
||||
await self.stats.report_command(command_name, execution_time, response_time)
|
||||
|
||||
return True
|
||||
return True"""
|
||||
|
||||
async def handle_proxy_dispatch(self, message):
|
||||
# Try doing proxy parsing
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue