Exemple #1
0
async def on_ready():
    gamename = "with OG|t!help"
    await bot.change_presence(activity=discord.Game(name=gamename))
    print("Logged in as")
    print("Name: " + str(bot.user))
    print("ID: " + str(bot.user.id))
    print("Playing", gamename)
    print(BotIDs.URL)
    print("Prefixes: " + Prefixes.Prefix('"'))
Exemple #2
0
async def on_ready():
    gamename = "with Orangutans \U0001f435"
    await bot.change_presence(game=discord.Game(name=gamename))
    print("Logged in as:")
    print("Name: " + str(bot.user))
    print("ID: " + str(bot.user.id))
    print("Playing", gamename)
    print("Prefixes: " + Prefix.Prefix())
    bot.ready = True
Exemple #3
0
    async def info(self, ctx):
        """Shows the bot's info."""
        server = ctx.message.guild
        membObj = server.me
        embed = discord.Embed(title="Information on {}".format(
            self.bot.user.name),
                              colour=0xfe8600)
        embed.set_image(url=self.bot.user.avatar_url)
        embed.set_footer(
            text=("Bot created at " +
                  self.bot.user.created_at.strftime("%A %d %B %Y, %H:%M:%S")))

        embed.add_field(name="ID", value=self.bot.user.id)
        embed.add_field(
            name="Member Since ",
            value=membObj.joined_at.strftime("%A %d %B %Y, %H:%M:%S"))
        roleString = ""
        for role in membObj.roles:
            if role.name == "@everyone":
                continue
            roleString += role.name + ", "
        roleString = roleString[:-2]

        embed.add_field(name="Roles", value=roleString)

        if self.bot.user.avatar_url:
            embed.set_image(url=self.bot.user.avatar_url)
            embed.add_field(name="Avatar URL", value=self.bot.user.avatar_url)

        embed.add_field(name="Owner", value=BotIDs.dev_name)
        embed.add_field(name="Prefixes",
                        value=Prefix.Prefix("`") + " `@OG_Bot`")
        embed.add_field(name="GitHub",
                        value="https://github.com/OrangutanGaming/OG_Bot")
        embed.add_field(name="OAuth2", value=BotIDs.URL)
        embed.add_field(name="Server Count", value=str(len(self.bot.guilds)))

        await ctx.send(embed=embed)
Exemple #4
0
 async def prefix(self, ctx):
     """Shows the bot's prefixes."""
     await ctx.send(self.bot.blank +
                    f"Prefixes: `@{self.bot.user.name}`, " +
                    Prefix.Prefix('`'))