Skip to content

Commit

Permalink
Use double quotes in README examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Dorukyum authored Sep 1, 2021
1 parent 47b73b7 commit 28b3f81
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -74,18 +74,18 @@ Quick Example
class MyClient(discord.Client):
async def on_ready(self):
print('Logged on as', self.user)
print("Logged on as", self.user)
async def on_message(self, message):
# don't respond to ourselves
if message.author == self.user:
return
if message.content == 'ping':
await message.channel.send('pong')
if message.content == "ping":
await message.channel.send("pong")
client = MyClient()
client.run('token')
client.run("token")
Bot Example
~~~~~~~~~~~~~
Expand All @@ -95,13 +95,13 @@ Bot Example
import discord
from discord.ext import commands
bot = commands.Bot(command_prefix='>')
bot = commands.Bot(command_prefix=">")
@bot.command()
async def ping(ctx):
await ctx.send('pong')
await ctx.send("pong")
bot.run('token')
bot.run("token")
You can find more examples in the examples directory.

Expand Down

0 comments on commit 28b3f81

Please sign in to comment.