async def serverinfo(self, ctx): """Shows info about server""" HUMANS = ctx.guild.members BOTS = [] for h in HUMANS: if h.bot is True: BOTS.append(h) HUMANS.remove(h) embed = discord.Embed(color=discord.Color.green()) embed.set_author(name=ctx.guild.name, icon_url=ctx.guild.icon_url) embed.add_field(name="Name", value=ctx.guild.name) embed.add_field(name="ID", value=ctx.guild.id) embed.add_field( name="Owner", value=f"{ctx.guild.owner.name}#{ctx.guild.owner.discriminator}") embed.add_field(name="Region", value=REGION[ctx.guild.region]) embed.add_field( name="Total | Humans | Bots", value=f"{len(ctx.guild.members)} | {len(HUMANS)} | {len(BOTS)}") embed.add_field(name="Verification Level", value=VERIFLEVELS[ctx.guild.verification_level]) text, voice = GG.countChannels(ctx.guild.channels) embed.add_field(name="Text Channels", value=str(text)) embed.add_field(name="Voice Channels", value=str(voice)) embed.add_field( name="Creation Date", value=f"{ctx.guild.created_at}\n{checkDays(ctx.guild.created_at)}") embed.set_thumbnail(url=ctx.guild.icon_url) await ctx.send(embed=embed)
async def botinfo(self, ctx): """Shows info about bot""" em = discord.Embed(color=discord.Color.green(), description="PokemonCrawler, a lookup bot for Pokemon, their moves, abilities, etc.") em.title = 'Bot Info' em.set_author(name=ctx.author.name, icon_url=ctx.author.avatar_url) em.add_field(name="Servers", value=str(len(ctx.bot.guilds))) total_members = sum(len(s.members) for s in self.bot.guilds) unique_members = set(self.bot.get_all_members()) members = '%s total\n%s unique' % (total_members, len(unique_members)) em.add_field(name='Members', value=members) em.add_field(name='Uptime', value=str(datetime.timedelta(seconds=round(time.monotonic() - self.start_time)))) totalText = 0 totalVoice = 0 for g in ctx.bot.guilds: text, voice = GG.countChannels(g.channels) totalText += text totalVoice += voice em.add_field(name='Text Channels', value=f"{totalText}") em.add_field(name='Voice Channels', value=f"{totalVoice}") em.add_field(name="Invite", value="[Click Here](https://discordapp.com/oauth2/authorize?client_id=574554734187380756&scope=bot&permissions=0)") em.add_field(name='Source', value="[Click Here](https://github.com/CrawlerEmporium/PokemonCrawler)") em.add_field(name='Issue Tracker', value="[Click Here](https://github.com/CrawlerEmporium/PokemonCrawler)") em.add_field(name="About", value='A Pokemon lookup bot made by LordDusk#0001 .\n[Support Server](https://discord.gg/HEY6BWj)') em.set_footer(text=f"PokemonCrawler {ctx.bot.version} | Powered by discord.py and PokéAPI.co") await ctx.send(embed=em)
async def botinfo(self, ctx): """Shows info about bot""" em = discord.Embed(color=discord.Color.green(), description=f"{GG.NAME}, a bot for stuff and things.") em.title = 'Bot Info' em.set_author(name=ctx.author.name, icon_url=ctx.author.avatar_url) em.add_field(name="Servers", value=str(len(ctx.bot.guilds))) total_members = sum(len(s.members) for s in self.bot.guilds) unique_members = set(self.bot.get_all_members()) members = '%s total\n%s unique' % (total_members, len(unique_members)) em.add_field(name='Members', value=members) em.add_field(name='Uptime', value=str(datetime.timedelta(seconds=round(time.monotonic() - self.start_time)))) totalText = 0 totalVoice = 0 for g in ctx.bot.guilds: text, voice = GG.countChannels(g.channels) totalText += text totalVoice += voice em.add_field(name='Text Channels', value=f"{totalText}") em.add_field(name='Voice Channels', value=f"{totalVoice}") em.add_field(name="Invite", value="[Click Here](https://discordapp.com/oauth2/authorize?client_id=624228069866995712&scope=bot&permissions=536977472)") em.add_field(name='Source', value="[Click Here](https://github.com/CrawlerEmporium/PoECrawler)") em.add_field(name='Issue Tracker', value="[Click Here](https://github.com/CrawlerEmporium/PoECrawler/issues)") em.add_field(name="About", value='A multipurpose bot made by LordDusk#0001 .\n[Support Server](https://discord.gg/HEY6BWj)') em.set_footer(text=f"{GG.NAME} {ctx.bot.version} | Powered by discord.py") await ctx.send(embed=em) await GG.upCommand("botinfo")
async def botinfo(self, ctx): """Shows info about bot""" em = discord.Embed(color=discord.Color.green(), description="OSRSCrawler, a bot for stuff and things.") em.title = 'Bot Info' em.set_author(name=ctx.author.name, icon_url=ctx.author.avatar_url) em.add_field(name="Servers", value=str(len(ctx.bot.guilds))) total_members = sum(len(s.members) for s in self.bot.guilds) unique_members = set(self.bot.get_all_members()) members = '%s total\n%s unique' % (total_members, len(unique_members)) em.add_field(name='Members', value=members) em.add_field(name='Uptime', value=str(datetime.timedelta(seconds=round(time.monotonic() - self.start_time)))) totalText = 0 totalVoice = 0 for g in ctx.bot.guilds: text, voice = GG.countChannels(g.channels) totalText += text totalVoice += voice em.add_field(name='Text Channels', value=f"{totalText}") em.add_field(name='Voice Channels', value=f"{totalVoice}") em.add_field(name="Invite", value="[Click Here]()") em.add_field(name='Source', value="[Click Here]()") em.add_field(name='Issue Tracker', value="[Click Here]()") em.add_field(name="About", value='An Oldschool Runescape bot made by LordDusk#0001 .\n[Support Server](https://discord.gg/HEY6BWj)') em.set_footer(text=f"OSRSCrawler {ctx.bot.version} | Powered by discord.py") await ctx.send(embed=em) await GG.upCommand("botinfo")