aboutsummaryrefslogtreecommitdiff
path: root/discord
diff options
context:
space:
mode:
authorKallum <[email protected]>2021-04-08 02:38:01 +0100
committerGitHub <[email protected]>2021-04-07 21:38:01 -0400
commitcc6edccc0c081c11411c8138647804f007786c04 (patch)
treeac445907afbcd45bdb2cdf33a215defa8ac55902 /discord
parentFix inaccuracies with `AsyncIterator` typings (diff)
downloaddiscord.py-cc6edccc0c081c11411c8138647804f007786c04.tar.xz
discord.py-cc6edccc0c081c11411c8138647804f007786c04.zip
Make the bot template use f-strings over str.format
Diffstat (limited to 'discord')
-rw-r--r--discord/__main__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/__main__.py b/discord/__main__.py
index c9572367..606cc115 100644
--- a/discord/__main__.py
+++ b/discord/__main__.py
@@ -64,10 +64,10 @@ class Bot(commands.{base}):
try:
self.load_extension(cog)
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):
- print('Logged on as {{0}} (ID: {{0.id}})'.format(self.user))
+ print(f'Logged on as {{self.user}} (ID: {{self.user.id}})')
bot = Bot()