Replaced .format with f-strings

For better readability and performance
This commit is contained in:
Ben 2019-10-03 18:44:24 +02:00 committed by GitHub
parent 87c67d4280
commit a3d762cbca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,10 +46,10 @@ class User(commands.Cog):
@commands.command(hidden=True)
async def botinvite(self, ctx):
await ctx.send("Invite this bot to your server: <https://discordapp.com/oauth2/authorize?client_id={}&scope=bot"
await ctx.send(f"Invite this bot to your server: <https://discordapp.com/oauth2/authorize?client_id={self.bot.user.id}&scope=bot"
"&permissions=8>\nPlease read <https://github.com/Akumatic/Akuma-Matata/blob/master/README.md> for informat"
"ions".format(self.bot.user.id))
"ions")
#Setup
def setup(bot):
bot.add_cog(User(bot))
bot.add_cog(User(bot))