Trying to fix number of users command

testing
sgoudham 5 years ago
parent b41dc22915
commit 147512a8ee

@ -5,17 +5,16 @@ from discord.ext import commands
# Bot Prefix # Bot Prefix
client = commands.Bot(command_prefix='~') client = commands.Bot(command_prefix='~')
#server_id = 663651584399507476
# server_id = 663651584399507476
@client.event @client.event
@commands.has_any_role('Hamothy') @commands.has_any_role('Hamothy')
async def on_message(message): async def users(ctx):
id = client.get_guild(663651584399507476) id = client.get_guild(663651584399507476)
if message.content.find("hello") != -1: await ctx.send(f"""Number of Members: {id.member_count}""")
await message.channel.send("Hi")
elif message.content == "users":
await message.channel.send(f"""Number of Members: {id.member_count}""")
# Instantiates a list for all the cogs # Instantiates a list for all the cogs
extensions = ['cogs.WaifuImages', 'cogs.FunCommands'] extensions = ['cogs.WaifuImages', 'cogs.FunCommands']

Loading…
Cancel
Save