Skip to content

Instantly share code, notes, and snippets.

@Kakarot-2000
Created February 26, 2021 10:28
Show Gist options
  • Save Kakarot-2000/c75cc73d7a9e419443f14fb9c83fa8f8 to your computer and use it in GitHub Desktop.
Save Kakarot-2000/c75cc73d7a9e419443f14fb9c83fa8f8 to your computer and use it in GitHub Desktop.
@bot.command(help = "Prints details of Server")
async def where_am_i(ctx):
owner=str(ctx.guild.owner)
region = str(ctx.guild.region)
guild_id = str(ctx.guild.id)
memberCount = str(ctx.guild.member_count)
icon = str(ctx.guild.icon_url)
desc=ctx.guild.description
embed = discord.Embed(
title=ctx.guild.name + " Server Information",
description=desc,
color=discord.Color.blue()
)
embed.set_thumbnail(url=icon)
embed.add_field(name="Owner", value=owner, inline=True)
embed.add_field(name="Server ID", value=guild_id, inline=True)
embed.add_field(name="Region", value=region, inline=True)
embed.add_field(name="Member Count", value=memberCount, inline=True)
await ctx.send(embed=embed)
members=[]
async for member in ctx.guild.fetch_members(limit=150) :
await ctx.send('Name : {}\t Status : {}\n Joined at {}'.format(member.display_name,str(member.status),str(member.joined_at)))
@bot.command()
async def tell_me_about_yourself(ctx):
text = "My name is WallE!\n I was built by Kakarot2000. At present I have limited features(find out more by typing !help)\n :)"
await ctx.send(text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment