From 8e8de36ca18f2c830adb30aef970467c740b0b49 Mon Sep 17 00:00:00 2001 From: prashant Date: Mon, 31 May 2021 19:22:27 +0530 Subject: adeed rps command --- bot/exts/evergreen/rps.py | 98 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 bot/exts/evergreen/rps.py (limited to 'bot/exts/evergreen/rps.py') diff --git a/bot/exts/evergreen/rps.py b/bot/exts/evergreen/rps.py new file mode 100644 index 00000000..3bb69871 --- /dev/null +++ b/bot/exts/evergreen/rps.py @@ -0,0 +1,98 @@ +import random +from bot.bot import Bot +import discord +from discord.ext import commands +from discord.ext.commands import guild_only + +choices = ['rock', 'paper', 'scissor'] +short_choices = ['r', 'p', 's'] +""" +Instead of putting bunch of conditions to check winner, +We can just manage this dictionary +""" +winner = { + 'r': { + 'r': 0, + 'p': -1, + 's': 1, + }, + 'p': { + 'r': 1, + 'p': 0, + 's': -1, + }, + 's': { + 'r': -1, + 'p': 1, + 's': 0, + } +} + + +class Game: + """A Rock Paper Scissors Game.""" + def __init__( + self, + channel: discord.TextChannel, + ) -> None: + self.channel = channel + + @staticmethod + def get_winner(action_one, action_two): + return winner[action_one][action_two] + + @staticmethod + def make_move() -> str: + """Return move""" + return random.choice(choices) + + async def game_start(self, player, action) -> None: + if not action: + return await self.channel.send("Please make a move.") + action = action.lower() + if action not in choices and action not in short_choices: + return await self.channel.send(f"Invalid move. Please make from options: {' '.join(choices)}") + bot_move = self.make_move() + player_result = self.get_winner(action[0], bot_move[0]) + if player_result == 0: + message_string = f"{player.mention} You and Sir Lancebot played {bot_move.upper()}, It's a tie." + return await self.channel.send(message_string) + elif player_result == 1: + return await self.channel.send(f"Sir Lancebot played {bot_move.upper()}! {player.mention} Won!") + else: + return await self.channel.send(f"Sir Lancebot played {bot_move.upper()}! {player.mention} Lost!") + + +class RPS(commands.Cog): + """Rock Paper Scissor. The Classic Game!""" + """ + def __init__(self, bot: Bot) -> None: + self.bot = bot + """ + async def _play_game( + self, + ctx: commands.Context, + move: str + ) -> None: + """Helper for playing RPS.""" + game = Game(ctx.channel) + await game.game_start(ctx.author, move) + + @guild_only() + @commands.group( + invoke_without_command=True, + case_insensitive=True + ) + async def rps( + self, + ctx: commands.Context, + arg + ) -> None: + """ + Play the classic game of Rock Paper Scisorr with your own sir lancebot! + """ + await self._play_game(ctx, arg) + + +def setup(bot: Bot) -> None: + bot.add_cog(RPS(bot)) -- cgit v1.2.3 From ae0bb30e9d335621e87f4ce232e74af48f66e7b2 Mon Sep 17 00:00:00 2001 From: prashant Date: Mon, 31 May 2021 19:23:09 +0530 Subject: minor changes --- bot/exts/evergreen/rps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bot/exts/evergreen/rps.py') diff --git a/bot/exts/evergreen/rps.py b/bot/exts/evergreen/rps.py index 3bb69871..df77f032 100644 --- a/bot/exts/evergreen/rps.py +++ b/bot/exts/evergreen/rps.py @@ -51,7 +51,7 @@ class Game: return await self.channel.send("Please make a move.") action = action.lower() if action not in choices and action not in short_choices: - return await self.channel.send(f"Invalid move. Please make from options: {' '.join(choices)}") + return await self.channel.send(f"Invalid move. Please make move from options: {' '.join(choices)}") bot_move = self.make_move() player_result = self.get_winner(action[0], bot_move[0]) if player_result == 0: -- cgit v1.2.3 From fdd60f0679b2935e7590cfbfd22c05dbc894ae68 Mon Sep 17 00:00:00 2001 From: prashant Date: Tue, 1 Jun 2021 11:04:26 +0530 Subject: made changes requested in #758 and resolved flake8 errors. --- bot/exts/evergreen/rps.py | 93 ++++++++++++++++++++--------------------------- 1 file changed, 39 insertions(+), 54 deletions(-) (limited to 'bot/exts/evergreen/rps.py') diff --git a/bot/exts/evergreen/rps.py b/bot/exts/evergreen/rps.py index df77f032..e7c1a182 100644 --- a/bot/exts/evergreen/rps.py +++ b/bot/exts/evergreen/rps.py @@ -1,16 +1,18 @@ -import random -from bot.bot import Bot -import discord +from random import choice + +from discord import Member, TextChannel from discord.ext import commands from discord.ext.commands import guild_only -choices = ['rock', 'paper', 'scissor'] -short_choices = ['r', 'p', 's'] -""" -Instead of putting bunch of conditions to check winner, -We can just manage this dictionary -""" -winner = { +from bot.bot import Bot + + +CHOICES = ['rock', 'paper', 'scissor'] +SHORT_CHOICES = ['r', 'p', 's'] + +# Instead of putting bunch of conditions to check winner, +# we can just manage this dictionary +WINNER_DICT = { 'r': { 'r': 0, 'p': -1, @@ -29,70 +31,53 @@ winner = { } -class Game: - """A Rock Paper Scissors Game.""" - def __init__( - self, - channel: discord.TextChannel, - ) -> None: - self.channel = channel +class RPS(commands.Cog): + """Rock Paper Scissor. The Classic Game!""" @staticmethod - def get_winner(action_one, action_two): - return winner[action_one][action_two] + def get_winner(action_one: str, action_two: str) -> int: + """Returns result of match from (-1, 0, 1) as (lost, tied, won).""" + return WINNER_DICT[action_one][action_two] @staticmethod def make_move() -> str: - """Return move""" - return random.choice(choices) + """Returns random move for bot from CHOICES.""" + return choice(CHOICES) - async def game_start(self, player, action) -> None: + async def game_start(self, player: Member, channel: TextChannel, action: str) -> None: + """ + Check action of player, draw a move and return result. + + After checking if action of player is valid, make a random move. + And based on the move, compare moves of both player and bot and send approprite result. + """ if not action: - return await self.channel.send("Please make a move.") + await channel.send("Please make a move.") + return action = action.lower() - if action not in choices and action not in short_choices: - return await self.channel.send(f"Invalid move. Please make move from options: {' '.join(choices)}") + if action not in CHOICES and action not in SHORT_CHOICES: + await channel.send(f"Invalid move. Please make move from options: {' '.join(CHOICES)}") + return bot_move = self.make_move() player_result = self.get_winner(action[0], bot_move[0]) if player_result == 0: message_string = f"{player.mention} You and Sir Lancebot played {bot_move.upper()}, It's a tie." - return await self.channel.send(message_string) + await channel.send(message_string) elif player_result == 1: - return await self.channel.send(f"Sir Lancebot played {bot_move.upper()}! {player.mention} Won!") + await channel.send(f"Sir Lancebot played {bot_move.upper()}! {player.mention} Won!") else: - return await self.channel.send(f"Sir Lancebot played {bot_move.upper()}! {player.mention} Lost!") - - -class RPS(commands.Cog): - """Rock Paper Scissor. The Classic Game!""" - """ - def __init__(self, bot: Bot) -> None: - self.bot = bot - """ - async def _play_game( - self, - ctx: commands.Context, - move: str - ) -> None: - """Helper for playing RPS.""" - game = Game(ctx.channel) - await game.game_start(ctx.author, move) + await channel.send(f"Sir Lancebot played {bot_move.upper()}! {player.mention} Lost!") @guild_only() - @commands.group( + @commands.command( invoke_without_command=True, case_insensitive=True ) - async def rps( - self, - ctx: commands.Context, - arg - ) -> None: - """ - Play the classic game of Rock Paper Scisorr with your own sir lancebot! - """ - await self._play_game(ctx, arg) + async def rps(self, ctx: commands.Context, move: str) -> None: + """Play the classic game of Rock Paper Scissor with your own sir-lancebot!""" + await self.game_start(ctx.author, ctx.channel, move) def setup(bot: Bot) -> None: + """Load RPS Cog.""" bot.add_cog(RPS(bot)) -- cgit v1.2.3 From 0442ea631198fd42014436e5c64c3a696b9b78c9 Mon Sep 17 00:00:00 2001 From: prashant Date: Wed, 2 Jun 2021 16:56:26 +0530 Subject: added logical spacing and removed redundant code --- bot/exts/evergreen/rps.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'bot/exts/evergreen/rps.py') diff --git a/bot/exts/evergreen/rps.py b/bot/exts/evergreen/rps.py index e7c1a182..d07f9c60 100644 --- a/bot/exts/evergreen/rps.py +++ b/bot/exts/evergreen/rps.py @@ -54,12 +54,16 @@ class RPS(commands.Cog): if not action: await channel.send("Please make a move.") return + action = action.lower() + if action not in CHOICES and action not in SHORT_CHOICES: await channel.send(f"Invalid move. Please make move from options: {' '.join(CHOICES)}") return + bot_move = self.make_move() player_result = self.get_winner(action[0], bot_move[0]) + if player_result == 0: message_string = f"{player.mention} You and Sir Lancebot played {bot_move.upper()}, It's a tie." await channel.send(message_string) @@ -69,10 +73,7 @@ class RPS(commands.Cog): await channel.send(f"Sir Lancebot played {bot_move.upper()}! {player.mention} Lost!") @guild_only() - @commands.command( - invoke_without_command=True, - case_insensitive=True - ) + @commands.command(case_insensitive=True) async def rps(self, ctx: commands.Context, move: str) -> None: """Play the classic game of Rock Paper Scissor with your own sir-lancebot!""" await self.game_start(ctx.author, ctx.channel, move) -- cgit v1.2.3 From 9be669267b3261478049c3f478861f9a09f9a820 Mon Sep 17 00:00:00 2001 From: prashant Date: Fri, 4 Jun 2021 16:56:38 +0530 Subject: removed guild_only, now user can DM this command too! --- bot/exts/evergreen/rps.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'bot/exts/evergreen/rps.py') diff --git a/bot/exts/evergreen/rps.py b/bot/exts/evergreen/rps.py index d07f9c60..8d844234 100644 --- a/bot/exts/evergreen/rps.py +++ b/bot/exts/evergreen/rps.py @@ -2,7 +2,6 @@ from random import choice from discord import Member, TextChannel from discord.ext import commands -from discord.ext.commands import guild_only from bot.bot import Bot @@ -72,7 +71,6 @@ class RPS(commands.Cog): else: await channel.send(f"Sir Lancebot played {bot_move.upper()}! {player.mention} Lost!") - @guild_only() @commands.command(case_insensitive=True) async def rps(self, ctx: commands.Context, move: str) -> None: """Play the classic game of Rock Paper Scissor with your own sir-lancebot!""" -- cgit v1.2.3 From 36c574797f9ae4a385cedfc0071d6aeaf31b717f Mon Sep 17 00:00:00 2001 From: Prashant <37273899+OculusMode@users.noreply.github.com> Date: Fri, 4 Jun 2021 18:20:52 +0530 Subject: Update bot/exts/evergreen/rps.py Co-authored-by: Xithrius <15021300+Xithrius@users.noreply.github.com> --- bot/exts/evergreen/rps.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'bot/exts/evergreen/rps.py') diff --git a/bot/exts/evergreen/rps.py b/bot/exts/evergreen/rps.py index 8d844234..e089ba85 100644 --- a/bot/exts/evergreen/rps.py +++ b/bot/exts/evergreen/rps.py @@ -9,8 +9,7 @@ from bot.bot import Bot CHOICES = ['rock', 'paper', 'scissor'] SHORT_CHOICES = ['r', 'p', 's'] -# Instead of putting bunch of conditions to check winner, -# we can just manage this dictionary +# Using a dictionary instead of conditions to check for the winner. WINNER_DICT = { 'r': { 'r': 0, -- cgit v1.2.3 From 2c04b89fb14317c86f497ba4ccbda8f86d3cd19d Mon Sep 17 00:00:00 2001 From: prashant Date: Fri, 4 Jun 2021 19:05:28 +0530 Subject: made changes given by Xith --- bot/exts/evergreen/rps.py | 40 ++++++++++++++++++++++++++-------------- 1 file changed, 26 insertions(+), 14 deletions(-) (limited to 'bot/exts/evergreen/rps.py') diff --git a/bot/exts/evergreen/rps.py b/bot/exts/evergreen/rps.py index e089ba85..c34118f2 100644 --- a/bot/exts/evergreen/rps.py +++ b/bot/exts/evergreen/rps.py @@ -5,7 +5,6 @@ from discord.ext import commands from bot.bot import Bot - CHOICES = ['rock', 'paper', 'scissor'] SHORT_CHOICES = ['r', 'p', 's'] @@ -32,16 +31,6 @@ WINNER_DICT = { class RPS(commands.Cog): """Rock Paper Scissor. The Classic Game!""" - @staticmethod - def get_winner(action_one: str, action_two: str) -> int: - """Returns result of match from (-1, 0, 1) as (lost, tied, won).""" - return WINNER_DICT[action_one][action_two] - - @staticmethod - def make_move() -> str: - """Returns random move for bot from CHOICES.""" - return choice(CHOICES) - async def game_start(self, player: Member, channel: TextChannel, action: str) -> None: """ Check action of player, draw a move and return result. @@ -59,8 +48,9 @@ class RPS(commands.Cog): await channel.send(f"Invalid move. Please make move from options: {' '.join(CHOICES)}") return - bot_move = self.make_move() - player_result = self.get_winner(action[0], bot_move[0]) + bot_move = choice(CHOICES) + # value of player_result will be from (-1, 0, 1) as (lost, tied, won). + player_result = WINNER_DICT[action[0]][bot_move[0]] if player_result == 0: message_string = f"{player.mention} You and Sir Lancebot played {bot_move.upper()}, It's a tie." @@ -73,7 +63,29 @@ class RPS(commands.Cog): @commands.command(case_insensitive=True) async def rps(self, ctx: commands.Context, move: str) -> None: """Play the classic game of Rock Paper Scissor with your own sir-lancebot!""" - await self.game_start(ctx.author, ctx.channel, move) + channel = ctx.channel + if not move: + await channel.send("Please make a move.") + return + + move = move.lower() + player_mention = ctx.author.mention + + if move not in CHOICES and move not in SHORT_CHOICES: + await channel.send(f"Invalid move. Please make move from options: {', '.join(CHOICES).upper()}.") + return + + bot_move = choice(CHOICES) + # value of player_result will be from (-1, 0, 1) as (lost, tied, won). + player_result = WINNER_DICT[move[0]][bot_move[0]] + + if player_result == 0: + message_string = f"{player_mention} You and Sir Lancebot played {bot_move.upper()}, It's a tie." + await channel.send(message_string) + elif player_result == 1: + await channel.send(f"Sir Lancebot played {bot_move.upper()}! {player_mention} Won!") + else: + await channel.send(f"Sir Lancebot played {bot_move.upper()}! {player_mention} Lost!") def setup(bot: Bot) -> None: -- cgit v1.2.3 From 2e62c7c508c21e66bcf16012a7da3b8c964cc0ef Mon Sep 17 00:00:00 2001 From: prashant Date: Fri, 4 Jun 2021 19:06:39 +0530 Subject: cleaned up dead code --- bot/exts/evergreen/rps.py | 30 ------------------------------ 1 file changed, 30 deletions(-) (limited to 'bot/exts/evergreen/rps.py') diff --git a/bot/exts/evergreen/rps.py b/bot/exts/evergreen/rps.py index c34118f2..13185470 100644 --- a/bot/exts/evergreen/rps.py +++ b/bot/exts/evergreen/rps.py @@ -1,6 +1,5 @@ from random import choice -from discord import Member, TextChannel from discord.ext import commands from bot.bot import Bot @@ -31,35 +30,6 @@ WINNER_DICT = { class RPS(commands.Cog): """Rock Paper Scissor. The Classic Game!""" - async def game_start(self, player: Member, channel: TextChannel, action: str) -> None: - """ - Check action of player, draw a move and return result. - - After checking if action of player is valid, make a random move. - And based on the move, compare moves of both player and bot and send approprite result. - """ - if not action: - await channel.send("Please make a move.") - return - - action = action.lower() - - if action not in CHOICES and action not in SHORT_CHOICES: - await channel.send(f"Invalid move. Please make move from options: {' '.join(CHOICES)}") - return - - bot_move = choice(CHOICES) - # value of player_result will be from (-1, 0, 1) as (lost, tied, won). - player_result = WINNER_DICT[action[0]][bot_move[0]] - - if player_result == 0: - message_string = f"{player.mention} You and Sir Lancebot played {bot_move.upper()}, It's a tie." - await channel.send(message_string) - elif player_result == 1: - await channel.send(f"Sir Lancebot played {bot_move.upper()}! {player.mention} Won!") - else: - await channel.send(f"Sir Lancebot played {bot_move.upper()}! {player.mention} Lost!") - @commands.command(case_insensitive=True) async def rps(self, ctx: commands.Context, move: str) -> None: """Play the classic game of Rock Paper Scissor with your own sir-lancebot!""" -- cgit v1.2.3 From 46ae4cc61471d4426492eb8f890d0e888b211f9f Mon Sep 17 00:00:00 2001 From: Prashant <37273899+OculusMode@users.noreply.github.com> Date: Fri, 4 Jun 2021 22:51:59 +0530 Subject: removed upper case on printing result and made minor grammar changes. Co-authored-by: Xithrius <15021300+Xithrius@users.noreply.github.com> --- bot/exts/evergreen/rps.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bot/exts/evergreen/rps.py') diff --git a/bot/exts/evergreen/rps.py b/bot/exts/evergreen/rps.py index 13185470..49561e4b 100644 --- a/bot/exts/evergreen/rps.py +++ b/bot/exts/evergreen/rps.py @@ -50,12 +50,12 @@ class RPS(commands.Cog): player_result = WINNER_DICT[move[0]][bot_move[0]] if player_result == 0: - message_string = f"{player_mention} You and Sir Lancebot played {bot_move.upper()}, It's a tie." + message_string = f"{player_mention} You and Sir Lancebot played {bot_move}, it's a tie." await channel.send(message_string) elif player_result == 1: - await channel.send(f"Sir Lancebot played {bot_move.upper()}! {player_mention} Won!") + await channel.send(f"Sir Lancebot played {bot_move}! {player_mention} won!") else: - await channel.send(f"Sir Lancebot played {bot_move.upper()}! {player_mention} Lost!") + await channel.send(f"Sir Lancebot played {bot_move}! {player_mention} lost!") def setup(bot: Bot) -> None: -- cgit v1.2.3 From 46c947a6434a8f94722ce85141b39a084fde693e Mon Sep 17 00:00:00 2001 From: prashant Date: Fri, 4 Jun 2021 23:23:15 +0530 Subject: -removed dead code -used ctx.send instead of channel.send --- bot/exts/evergreen/rps.py | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'bot/exts/evergreen/rps.py') diff --git a/bot/exts/evergreen/rps.py b/bot/exts/evergreen/rps.py index 49561e4b..2634be21 100644 --- a/bot/exts/evergreen/rps.py +++ b/bot/exts/evergreen/rps.py @@ -33,16 +33,11 @@ class RPS(commands.Cog): @commands.command(case_insensitive=True) async def rps(self, ctx: commands.Context, move: str) -> None: """Play the classic game of Rock Paper Scissor with your own sir-lancebot!""" - channel = ctx.channel - if not move: - await channel.send("Please make a move.") - return - move = move.lower() player_mention = ctx.author.mention if move not in CHOICES and move not in SHORT_CHOICES: - await channel.send(f"Invalid move. Please make move from options: {', '.join(CHOICES).upper()}.") + await ctx.send(f"Invalid move. Please make move from options: {', '.join(CHOICES).upper()}.") return bot_move = choice(CHOICES) @@ -51,11 +46,11 @@ class RPS(commands.Cog): if player_result == 0: message_string = f"{player_mention} You and Sir Lancebot played {bot_move}, it's a tie." - await channel.send(message_string) + await ctx.send(message_string) elif player_result == 1: - await channel.send(f"Sir Lancebot played {bot_move}! {player_mention} won!") + await ctx.send(f"Sir Lancebot played {bot_move}! {player_mention} won!") else: - await channel.send(f"Sir Lancebot played {bot_move}! {player_mention} lost!") + await ctx.send(f"Sir Lancebot played {bot_move}! {player_mention} lost!") def setup(bot: Bot) -> None: -- cgit v1.2.3 From 0eb22e68e8d66b58eeb5bc53fc963cbe3050b03b Mon Sep 17 00:00:00 2001 From: Prashant <37273899+OculusMode@users.noreply.github.com> Date: Fri, 4 Jun 2021 23:36:58 +0530 Subject: resolved minor grammar issue. Co-authored-by: Anand Krishna <40204976+anand2312@users.noreply.github.com> --- bot/exts/evergreen/rps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bot/exts/evergreen/rps.py') diff --git a/bot/exts/evergreen/rps.py b/bot/exts/evergreen/rps.py index 2634be21..852ae33e 100644 --- a/bot/exts/evergreen/rps.py +++ b/bot/exts/evergreen/rps.py @@ -54,5 +54,5 @@ class RPS(commands.Cog): def setup(bot: Bot) -> None: - """Load RPS Cog.""" + """Load the RPS Cog.""" bot.add_cog(RPS(bot)) -- cgit v1.2.3 From 712867d2193afe52ac63964c0c4e08962040be95 Mon Sep 17 00:00:00 2001 From: prashant Date: Sat, 5 Jun 2021 00:55:39 +0530 Subject: made changes suggested by ToxicKidz --- bot/exts/evergreen/rps.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'bot/exts/evergreen/rps.py') diff --git a/bot/exts/evergreen/rps.py b/bot/exts/evergreen/rps.py index 2634be21..dcb7dce1 100644 --- a/bot/exts/evergreen/rps.py +++ b/bot/exts/evergreen/rps.py @@ -37,8 +37,7 @@ class RPS(commands.Cog): player_mention = ctx.author.mention if move not in CHOICES and move not in SHORT_CHOICES: - await ctx.send(f"Invalid move. Please make move from options: {', '.join(CHOICES).upper()}.") - return + raise commands.BadArgument(f"Invalid move. Please make move from options: {', '.join(CHOICES).upper()}.") bot_move = choice(CHOICES) # value of player_result will be from (-1, 0, 1) as (lost, tied, won). -- cgit v1.2.3 From 880f02e77e9a34e46aaa12591bc6e7201833d5c2 Mon Sep 17 00:00:00 2001 From: prashant Date: Sat, 5 Jun 2021 01:07:22 +0530 Subject: changed single quotes to double to follow style guide --- bot/exts/evergreen/rps.py | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'bot/exts/evergreen/rps.py') diff --git a/bot/exts/evergreen/rps.py b/bot/exts/evergreen/rps.py index b96ae80b..a5cacd90 100644 --- a/bot/exts/evergreen/rps.py +++ b/bot/exts/evergreen/rps.py @@ -4,25 +4,25 @@ from discord.ext import commands from bot.bot import Bot -CHOICES = ['rock', 'paper', 'scissor'] -SHORT_CHOICES = ['r', 'p', 's'] +CHOICES = ["rock", "paper", "scissors"] +SHORT_CHOICES = ["r", "p", "s"] # Using a dictionary instead of conditions to check for the winner. WINNER_DICT = { - 'r': { - 'r': 0, - 'p': -1, - 's': 1, + "r": { + "r": 0, + "p": -1, + "s": 1, }, - 'p': { - 'r': 1, - 'p': 0, - 's': -1, + "p": { + "r": 1, + "p": 0, + "s": -1, }, - 's': { - 'r': -1, - 'p': 1, - 's': 0, + "s": { + "r": -1, + "p": 1, + "s": 0, } } -- cgit v1.2.3 From 4e525d921dcc2bfcc19ca96fdb6de9c90ffdf0c7 Mon Sep 17 00:00:00 2001 From: prashant Date: Sat, 5 Jun 2021 10:43:06 +0530 Subject: made minor typo changes --- bot/exts/evergreen/rps.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bot/exts/evergreen/rps.py') diff --git a/bot/exts/evergreen/rps.py b/bot/exts/evergreen/rps.py index a5cacd90..c6bbff46 100644 --- a/bot/exts/evergreen/rps.py +++ b/bot/exts/evergreen/rps.py @@ -28,11 +28,11 @@ WINNER_DICT = { class RPS(commands.Cog): - """Rock Paper Scissor. The Classic Game!""" + """Rock Paper Scissors. The Classic Game!""" @commands.command(case_insensitive=True) async def rps(self, ctx: commands.Context, move: str) -> None: - """Play the classic game of Rock Paper Scissor with your own sir-lancebot!""" + """Play the classic game of Rock Paper Scissors with your own sir-lancebot!""" move = move.lower() player_mention = ctx.author.mention -- cgit v1.2.3