mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-14 17:59:48 +00:00
Make the bot template use f-strings over str.format
This commit is contained in:
parent
f8bea3bb05
commit
cc6edccc0c
@ -64,10 +64,10 @@ class Bot(commands.{base}):
|
|||||||
try:
|
try:
|
||||||
self.load_extension(cog)
|
self.load_extension(cog)
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
print('Could not load extension {{0}} due to {{1.__class__.__name__}}: {{1}}'.format(cog, exc))
|
print(f'Could not load extension {{cog}} due to {{exc.__class__.__name__}}: {{exc}}')
|
||||||
|
|
||||||
async def on_ready(self):
|
async def on_ready(self):
|
||||||
print('Logged on as {{0}} (ID: {{0.id}})'.format(self.user))
|
print(f'Logged on as {{self.user}} (ID: {{self.user.id}})')
|
||||||
|
|
||||||
|
|
||||||
bot = Bot()
|
bot = Bot()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user