Skip to content

Commit 28b3f81

Browse files
authored
Use double quotes in README examples
1 parent 47b73b7 commit 28b3f81

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,18 +74,18 @@ Quick Example
7474
7575
class MyClient(discord.Client):
7676
async def on_ready(self):
77-
print('Logged on as', self.user)
77+
print("Logged on as", self.user)
7878
7979
async def on_message(self, message):
8080
# don't respond to ourselves
8181
if message.author == self.user:
8282
return
8383
84-
if message.content == 'ping':
85-
await message.channel.send('pong')
84+
if message.content == "ping":
85+
await message.channel.send("pong")
8686
8787
client = MyClient()
88-
client.run('token')
88+
client.run("token")
8989
9090
Bot Example
9191
~~~~~~~~~~~~~
@@ -95,13 +95,13 @@ Bot Example
9595
import discord
9696
from discord.ext import commands
9797
98-
bot = commands.Bot(command_prefix='>')
98+
bot = commands.Bot(command_prefix=">")
9999
100100
@bot.command()
101101
async def ping(ctx):
102-
await ctx.send('pong')
102+
await ctx.send("pong")
103103
104-
bot.run('token')
104+
bot.run("token")
105105
106106
You can find more examples in the examples directory.
107107

0 commit comments

Comments
 (0)