Merge pull request #2 from itsBeen/patch-2

Replaced .format with f-strings
This commit is contained in:
Akumatic 2019-10-05 00:19:18 +02:00 committed by GitHub
commit 7bdeadc4ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,9 +46,9 @@ class User(commands.Cog):
@commands.command(hidden=True) @commands.command(hidden=True)
async def botinvite(self, ctx): 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" "&permissions=8>\nPlease read <https://github.com/Akumatic/Akuma-Matata/blob/master/README.md> for informat"
"ions".format(self.bot.user.id)) "ions")
#Setup #Setup
def setup(bot): def setup(bot):