diff options
-rw-r--r-- | bot/exts/evergreen/fun.py | 3 | ||||
-rw-r--r-- | bot/resources/evergreen/caesar_info.json | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/bot/exts/evergreen/fun.py b/bot/exts/evergreen/fun.py index d1f87b6a..601ae45b 100644 --- a/bot/exts/evergreen/fun.py +++ b/bot/exts/evergreen/fun.py @@ -2,6 +2,7 @@ import functools import json import logging import random +from pathlib import Path from typing import Callable, Tuple, Union from discord import Embed, Message @@ -33,7 +34,7 @@ class Fun(Cog): def __init__(self, bot: Bot) -> None: self.bot = bot - with open("bot\\resources\\evergreen\\caesar_info.json", "r") as f: + with Path("bot/resources/evergreen/caesar_info.json").open("r") as f: self._caesar_cipher_embed = json.load(f) @commands.command() diff --git a/bot/resources/evergreen/caesar_info.json b/bot/resources/evergreen/caesar_info.json index ae3a4656..8229c4f3 100644 --- a/bot/resources/evergreen/caesar_info.json +++ b/bot/resources/evergreen/caesar_info.json @@ -1,4 +1,4 @@ { "title": "Caesar Cipher", - "description": "**Information**\nThe Caesar Cipher, named after hte Roman General Julius Caesar is one of the simplest and most widely known encryption techniques. It is a type of substitution cipher in which each letter in the plaintext is replaced by a letter given a specific position offset in the alphabet, with the letters wrapping around both sides.\n\n**Examples**\n1) `Hello World` <=> `Khoor Zruog` where letters are shifted forwards by `3.`\n2) `Julius Caesar` <=> `Yjaxjh Rpthpg` where letters are shifted backwards by `11.`" + "description": "**Information**\nThe Caesar Cipher, named after the Roman General Julius Caesar, is one of the simplest and most widely known encryption techniques. It is a type of substitution cipher in which each letter in the plaintext is replaced by a letter given a specific position offset in the alphabet, with the letters wrapping around both sides.\n\n**Examples**\n1) `Hello World` <=> `Khoor Zruog` where letters are shifted forwards by `3`.\n2) `Julius Caesar` <=> `Yjaxjh Rpthpg` where letters are shifted backwards by `11`." } |