server: Fix stats by using ctx.author.server
Signed-off-by: mctaylors <cantsendmails@mctaylors.ru>
This commit is contained in:
parent
8fbd3356c0
commit
d33c871633
3 changed files with 8 additions and 3 deletions
6
.gitignore
vendored
6
.gitignore
vendored
|
@ -1,2 +1,6 @@
|
||||||
.idea/
|
.idea/
|
||||||
.venv/
|
.venv/
|
||||||
|
build/
|
||||||
|
dist/
|
||||||
|
__pycache__/
|
||||||
|
*.spec
|
|
@ -108,7 +108,7 @@ class Client(commands.CommandsClient):
|
||||||
f"| Server banner | {banner} |\n"
|
f"| Server banner | {banner} |\n"
|
||||||
f"| Server owner | {server.owner.original_name}#{server.owner.discriminator} |\n"
|
f"| Server owner | {server.owner.original_name}#{server.owner.discriminator} |\n"
|
||||||
f"---\n| Statistics | Value |\n| --- | --- |\n"
|
f"---\n| Statistics | Value |\n| --- | --- |\n"
|
||||||
f"| Members | {len(state.users)} |\n"
|
f"| Members | {len(server.members)} |\n"
|
||||||
f"| Channels | {len(state.channels)} |\n"
|
f"| Channels | {len(server.channels)} |\n"
|
||||||
f"| Roles | {len(server.roles)} |\n"
|
f"| Roles | {len(server.roles)} |\n"
|
||||||
f"| Emojis | {len(server.emojis)} |")
|
f"| Emojis | {len(server.emojis)} |")
|
||||||
|
|
1
main.py
1
main.py
|
@ -4,6 +4,7 @@ import client
|
||||||
import asyncio
|
import asyncio
|
||||||
|
|
||||||
from next.ext.commands import DefaultHelpCommand
|
from next.ext.commands import DefaultHelpCommand
|
||||||
|
from sys import exit
|
||||||
|
|
||||||
|
|
||||||
async def main():
|
async def main():
|
||||||
|
|
Loading…
Reference in a new issue