Skip to content

Commit 90af8af

Browse files
committed
Fixed info command member count
1 parent d5d4dc3 commit 90af8af

File tree

2 files changed

+22
-17
lines changed

2 files changed

+22
-17
lines changed

Teapot.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,10 @@
8383
(teapot.time(), "BOT_START", __name__, "Initialized bot"))
8484
database.commit()
8585

86-
bot = dcmd.Bot(command_prefix=teapot.config.bot_prefix())
87-
86+
intents = discord.Intents.default()
87+
intents.members = True
88+
intents.typing = False
89+
bot = dcmd.Bot(intents=intents, command_prefix=teapot.config.bot_prefix())
8890

8991
@bot.event
9092
async def on_ready():

teapot/cogs/cmds.py

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ def helpcmd(bot):
2626
async def help(ctx, *cog):
2727
if not cog:
2828
embed = discord.Embed(description="📖 Help", color=0x7400FF,
29-
icon_url="https://cdn.discordapp.com/avatars/612634758744113182/7fe078b5ea6b43000dfb7964e3e4d21d.png?size=512")
29+
icon_url="https://cdn.discordapp.com/avatars/612634758744113182"
30+
"/7fe078b5ea6b43000dfb7964e3e4d21d.png?size=512")
3031
embed.set_thumbnail(url="https://avatars2.githubusercontent.com/u/60006969?s=200&v=4")
3132
cogs_desc = ""
3233
for x in bot.cogs:
@@ -61,7 +62,8 @@ async def help(ctx, *cog):
6162
description=f"**Description:** {c.help}\n**Syntax:** {c.qualified_name} {c.signature}",
6263
color=0x7400FF)
6364
embed.set_author(name=f"Teapot.py {teapot.version()}",
64-
icon_url="https://cdn.discordapp.com/avatars/612634758744113182/7fe078b5ea6b43000dfb7964e3e4d21d.png?size=512")
65+
icon_url="https://cdn.discordapp.com/avatars/612634758744113182"
66+
"/7fe078b5ea6b43000dfb7964e3e4d21d.png?size=512")
6567
await ctx.message.add_reaction(emoji='✅')
6668
found = True
6769
if not found:
@@ -78,21 +80,22 @@ async def info(ctx):
7880
embed = discord.Embed(title="Developers: RedTeaDev, ColaIan", description="Multi-purpose Discord Bot",
7981
color=0x7400FF)
8082
embed.set_author(name=f"Teapot.py {teapot.version()}",
81-
icon_url="https://cdn.discordapp.com/avatars/612634758744113182/7fe078b5ea6b43000dfb7964e3e4d21d.png?size=512")
83+
icon_url="https://cdn.discordapp.com/avatars/612634758744113182"
84+
"/7fe078b5ea6b43000dfb7964e3e4d21d.png?size=512")
8285
embed.set_thumbnail(url="https://avatars2.githubusercontent.com/u/60006969?s=200&v=4")
83-
embed.add_field(name="Bot User:", value=bot.user, inline=True)
84-
embed.add_field(name="Guilds:", value=len(bot.guilds), inline=True)
85-
embed.add_field(name="Members:", value=len(set(bot.get_all_members())), inline=True)
86-
embed.add_field(name="O.S.:", value=str(teapot.platform()), inline=True)
87-
embed.add_field(name="Storage Type:", value=teapot.config.storage_type(), inline=True)
88-
embed.add_field(name="Prefix:", value=", ".join(teapot.config.bot_prefix()), inline=True)
89-
embed.add_field(name="Github Repo:", value="[Teapot.py](https://github.com/RedCokeDevelopment/Teapot.py)",
90-
inline=True)
91-
embed.add_field(name="Bug Report:", value="[Issues](https://github.com/RedCokeDevelopment/Teapot.py/issues)",
92-
inline=True)
93-
embed.add_field(name="Discussion:", value="[Forums](https://forum.redtea.red)", inline=True)
86+
embed.add_field(name="Bot User:", value=bot.user)
87+
embed.add_field(name="Guilds:", value=len(bot.guilds))
88+
embed.add_field(name="Members:", value=len(set(bot.get_all_members())))
89+
embed.add_field(name="O.S.:", value=str(teapot.platform()))
90+
embed.add_field(name="Storage Type:", value=teapot.config.storage_type())
91+
embed.add_field(name="Prefix:", value=", ".join(teapot.config.bot_prefix()))
92+
embed.add_field(name="Github Repo:", value="[Teapot.py](https://github.com/RedCokeDevelopment/Teapot.py)")
93+
embed.add_field(name="Bug Report:", value="[Issues](https://github.com/RedCokeDevelopment/Teapot.py/issues)")
94+
embed.add_field(name="Discussion:", value="[Forums](https://forum.redtea.red)")
9495
embed.add_field(name="Links",
95-
value="[Support Discord](https://discord.gg/7BRGs6F) | [Add bot to server](https://discordapp.com/oauth2/authorize?client_id=669880564270104586&permissions=8&scope=bot) | [Repository](https://github.com/RedCokeDevelopment/Teapot.py)",
96+
value="[Support Discord](https://discord.gg/7BRGs6F) | [Add bot to server]("
97+
"https://discordapp.com/oauth2/authorize?client_id=669880564270104586&permissions=8"
98+
"&scope=bot) | [Repository](https://github.com/RedCokeDevelopment/Teapot.py)",
9699
inline=False)
97100
embed.set_footer(text=f"{teapot.copyright()} | Code licensed under the MIT License")
98101
embed.set_image(

0 commit comments

Comments
 (0)