diff options
Diffstat (limited to 'bot/exts/evergreen')
| -rw-r--r-- | bot/exts/evergreen/battleship.py | 6 | ||||
| -rw-r--r-- | bot/exts/evergreen/bookmark.py | 4 | ||||
| -rw-r--r-- | bot/exts/evergreen/connect_four.py | 2 | ||||
| -rw-r--r-- | bot/exts/evergreen/emoji.py | 2 | ||||
| -rw-r--r-- | bot/exts/evergreen/githubinfo.py | 2 | ||||
| -rw-r--r-- | bot/exts/evergreen/minesweeper.py | 10 | ||||
| -rw-r--r-- | bot/exts/evergreen/wolfram.py | 12 | 
7 files changed, 19 insertions, 19 deletions
diff --git a/bot/exts/evergreen/battleship.py b/bot/exts/evergreen/battleship.py index ca0e3881..813f998e 100644 --- a/bot/exts/evergreen/battleship.py +++ b/bot/exts/evergreen/battleship.py @@ -238,7 +238,7 @@ class Game:          square = None          turn_message = await self.turn.user.send(              "It's your turn! Type the square you want to fire at. Format it like this: A1\n" -            "Type `surrender` to give up" +            "Type `surrender` to give up."          )          await self.next.user.send("Their turn", delete_after=3.0)          while True: @@ -382,7 +382,7 @@ class Battleship(commands.Cog):              return await ctx.send("You're already playing a game!")          if ctx.author in self.waiting: -            return await ctx.send("You've already sent out a request for a player 2") +            return await ctx.send("You've already sent out a request for a player 2.")          announcement = await ctx.send(              "**Battleship**: A new game is about to start!\n" @@ -426,7 +426,7 @@ class Battleship(commands.Cog):              self.games.remove(game)          except Exception:              # End the game in the event of an unforseen error so the players aren't stuck in a game -            await ctx.send(f"{ctx.author.mention} {user.mention} An error occurred. Game failed") +            await ctx.send(f"{ctx.author.mention} {user.mention} An error occurred. Game failed.")              self.games.remove(game)              raise diff --git a/bot/exts/evergreen/bookmark.py b/bot/exts/evergreen/bookmark.py index 329838b9..ec25e7a7 100644 --- a/bot/exts/evergreen/bookmark.py +++ b/bot/exts/evergreen/bookmark.py @@ -29,7 +29,7 @@ class Bookmark(commands.Cog):          # Prevent users from bookmarking a message in a channel they don't have access to          permissions = ctx.author.permissions_in(target_message.channel)          if not permissions.read_messages: -            log.info(f"{ctx.author} tried to bookmark a message in #{target_message.channel} but has no permissions") +            log.info(f"{ctx.author} tried to bookmark a message in #{target_message.channel} but has no permissions.")              embed = discord.Embed(                  title=random.choice(ERROR_REPLIES),                  color=Colours.soft_red, @@ -52,7 +52,7 @@ class Bookmark(commands.Cog):          except discord.Forbidden:              error_embed = discord.Embed(                  title=random.choice(ERROR_REPLIES), -                description=f"{ctx.author.mention}, please enable your DMs to receive the bookmark", +                description=f"{ctx.author.mention}, please enable your DMs to receive the bookmark.",                  colour=Colours.soft_red              )              await ctx.send(embed=error_embed) diff --git a/bot/exts/evergreen/connect_four.py b/bot/exts/evergreen/connect_four.py index fbb13780..df2a913a 100644 --- a/bot/exts/evergreen/connect_four.py +++ b/bot/exts/evergreen/connect_four.py @@ -355,7 +355,7 @@ class ConnectFour(commands.Cog):              self.games.remove(game)          except Exception:              # End the game in the event of an unforeseen error so the players aren't stuck in a game -            await ctx.send(f"{ctx.author.mention} {user.mention if user else ''} An error occurred. Game failed") +            await ctx.send(f"{ctx.author.mention} {user.mention if user else ''} An error occurred. Game failed.")              if game in self.games:                  self.games.remove(game)              raise diff --git a/bot/exts/evergreen/emoji.py b/bot/exts/evergreen/emoji.py index 45b77e16..7ceb6c8d 100644 --- a/bot/exts/evergreen/emoji.py +++ b/bot/exts/evergreen/emoji.py @@ -87,7 +87,7 @@ class Emojis(commands.Cog):          if not ctx.guild.emojis:              await ctx.send("No emojis found.")              return -        log.trace(f"Emoji Category {'' if category_query else 'not '}provided by the user") +        log.trace(f"Emoji Category {'' if category_query else 'not '}provided by the user.")          for emoji in ctx.guild.emojis:              emoji_category = emoji.name.split("_")[0] diff --git a/bot/exts/evergreen/githubinfo.py b/bot/exts/evergreen/githubinfo.py index 65fcc7cf..fd100a7c 100644 --- a/bot/exts/evergreen/githubinfo.py +++ b/bot/exts/evergreen/githubinfo.py @@ -96,7 +96,7 @@ class GithubInfo(commands.Cog):                  embed.add_field(                      name=f"Organization{'s' if len(orgs)!=1 else ''}", -                    value=orgs_to_add if orgs else "No organizations" +                    value=orgs_to_add if orgs else "No organizations."                  )              embed.add_field(name="Website", value=blog) diff --git a/bot/exts/evergreen/minesweeper.py b/bot/exts/evergreen/minesweeper.py index 7c1bac3b..bba349fa 100644 --- a/bot/exts/evergreen/minesweeper.py +++ b/bot/exts/evergreen/minesweeper.py @@ -38,7 +38,7 @@ class CoordinateConverter(commands.Converter):      async def convert(self, ctx: commands.Context, coordinate: str) -> typing.Tuple[int, int]:          """Take in a coordinate string and turn it into an (x, y) tuple."""          if not 2 <= len(coordinate) <= 3: -            raise commands.BadArgument('Invalid co-ordinate provided') +            raise commands.BadArgument('Invalid co-ordinate provided.')          coordinate = coordinate.lower()          if coordinate[0].isalpha(): @@ -149,7 +149,7 @@ class Minesweeper(commands.Cog):                  f"Close the game with `{Client.prefix}ms end`\n"              )          except discord.errors.Forbidden: -            log.debug(f"{ctx.author.name} ({ctx.author.id}) has disabled DMs from server members") +            log.debug(f"{ctx.author.name} ({ctx.author.id}) has disabled DMs from server members.")              await ctx.send(f":x: {ctx.author.mention}, please enable DMs to play minesweeper.")              return @@ -159,7 +159,7 @@ class Minesweeper(commands.Cog):          dm_msg = await ctx.author.send(f"Here's your board!\n{self.format_for_discord(revealed_board)}")          if ctx.guild: -            await ctx.send(f"{ctx.author.mention} is playing Minesweeper") +            await ctx.send(f"{ctx.author.mention} is playing Minesweeper.")              chat_msg = await ctx.send(f"Here's their board!\n{self.format_for_discord(revealed_board)}")          else:              chat_msg = None @@ -248,7 +248,7 @@ class Minesweeper(commands.Cog):          """          Reveal one square. -        return is True if the game ended, breaking the loop in `reveal_command` and deleting the game +        return is True if the game ended, breaking the loop in `reveal_command` and deleting the game.          """          revealed[y][x] = board[y][x]          if board[y][x] == "bomb": @@ -286,7 +286,7 @@ class Minesweeper(commands.Cog):          game = self.games[ctx.author.id]          game.revealed = game.board          await self.update_boards(ctx) -        new_msg = f":no_entry: Game canceled :no_entry:\n{game.dm_msg.content}" +        new_msg = f":no_entry: Game canceled. :no_entry:\n{game.dm_msg.content}"          await game.dm_msg.edit(content=new_msg)          if game.activated_on_server:              await game.chat_msg.edit(content=new_msg) diff --git a/bot/exts/evergreen/wolfram.py b/bot/exts/evergreen/wolfram.py index c4c69070..c57a8d7a 100644 --- a/bot/exts/evergreen/wolfram.py +++ b/bot/exts/evergreen/wolfram.py @@ -56,7 +56,7 @@ def custom_cooldown(*ignore: List[int]) -> Callable:      """      Implement per-user and per-guild cooldowns for requests to the Wolfram API. -    A list of roles may be provided to ignore the per-user cooldown +    A list of roles may be provided to ignore the per-user cooldown.      """      async def predicate(ctx: Context) -> bool:          if ctx.invoked_with == 'help': @@ -189,11 +189,11 @@ class Wolfram(Cog):              image_url = "attachment://image.png"              if status == 501: -                message = "Failed to get response" +                message = "Failed to get response."                  footer = ""                  color = Colours.soft_red              elif status == 400: -                message = "No input found" +                message = "No input found."                  footer = ""                  color = Colours.soft_red              elif status == 403: @@ -269,12 +269,12 @@ class Wolfram(Cog):                  response_text = await response.text()              if status == 501: -                message = "Failed to get response" +                message = "Failed to get response."                  color = Colours.soft_red              elif status == 400: -                message = "No input found" +                message = "No input found."                  color = Colours.soft_red -            elif response_text == "Error 1: Invalid appid": +            elif response_text == "Error 1: Invalid appid.":                  message = "Wolfram API key is invalid or missing."                  color = Colours.soft_red              else:  |