diff options
author | 2021-09-05 00:12:47 -0400 | |
---|---|---|
committer | 2021-09-05 00:12:47 -0400 | |
commit | 66c888ad68ad88ba1d39c2ac4824469560b8c29a (patch) | |
tree | 706917000c39c3af1fc92c47fd59fe31a63f601a | |
parent | Move internal eval and rename utils to core (diff) |
Move practical functions into utilities folder
Separates out the useful/practical seasonal bot features from the
evergreen folder into a "utilities" folder.
Adjusts the paths to resources to reflect the folder move.
-rw-r--r-- | bot/exts/utilities/__init__.py | 0 | ||||
-rw-r--r-- | bot/exts/utilities/bookmark.py (renamed from bot/exts/evergreen/bookmark.py) | 0 | ||||
-rw-r--r-- | bot/exts/utilities/cheatsheet.py (renamed from bot/exts/evergreen/cheatsheet.py) | 0 | ||||
-rw-r--r-- | bot/exts/utilities/conversationstarters.py (renamed from bot/exts/evergreen/conversationstarters.py) | 6 | ||||
-rw-r--r-- | bot/exts/utilities/emoji.py (renamed from bot/exts/evergreen/emoji.py) | 0 | ||||
-rw-r--r-- | bot/exts/utilities/githubinfo.py (renamed from bot/exts/evergreen/githubinfo.py) | 2 | ||||
-rw-r--r-- | bot/exts/utilities/issues.py (renamed from bot/exts/evergreen/issues.py) | 0 | ||||
-rw-r--r-- | bot/exts/utilities/latex.py (renamed from bot/exts/evergreen/latex.py) | 0 | ||||
-rw-r--r-- | bot/exts/utilities/pythonfacts.py (renamed from bot/exts/evergreen/pythonfacts.py) | 2 | ||||
-rw-r--r-- | bot/exts/utilities/realpython.py (renamed from bot/exts/evergreen/realpython.py) | 0 | ||||
-rw-r--r-- | bot/exts/utilities/reddit.py (renamed from bot/exts/evergreen/reddit.py) | 0 | ||||
-rw-r--r-- | bot/exts/utilities/stackoverflow.py (renamed from bot/exts/evergreen/stackoverflow.py) | 0 | ||||
-rw-r--r-- | bot/exts/utilities/timed.py (renamed from bot/exts/evergreen/timed.py) | 0 | ||||
-rw-r--r-- | bot/exts/utilities/wikipedia.py (renamed from bot/exts/evergreen/wikipedia.py) | 0 | ||||
-rw-r--r-- | bot/exts/utilities/wolfram.py (renamed from bot/exts/evergreen/wolfram.py) | 0 | ||||
-rw-r--r-- | bot/resources/utilities/py_topics.yaml (renamed from bot/resources/evergreen/py_topics.yaml) | 0 | ||||
-rw-r--r-- | bot/resources/utilities/python_facts.txt (renamed from bot/resources/evergreen/python_facts.txt) | 0 | ||||
-rw-r--r-- | bot/resources/utilities/starter.yaml (renamed from bot/resources/evergreen/starter.yaml) | 0 |
18 files changed, 5 insertions, 5 deletions
diff --git a/bot/exts/utilities/__init__.py b/bot/exts/utilities/__init__.py new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/bot/exts/utilities/__init__.py diff --git a/bot/exts/evergreen/bookmark.py b/bot/exts/utilities/bookmark.py index a91ef1c0..a91ef1c0 100644 --- a/bot/exts/evergreen/bookmark.py +++ b/bot/exts/utilities/bookmark.py diff --git a/bot/exts/evergreen/cheatsheet.py b/bot/exts/utilities/cheatsheet.py index 33d29f67..33d29f67 100644 --- a/bot/exts/evergreen/cheatsheet.py +++ b/bot/exts/utilities/cheatsheet.py diff --git a/bot/exts/evergreen/conversationstarters.py b/bot/exts/utilities/conversationstarters.py index fdc4467a..dd537022 100644 --- a/bot/exts/evergreen/conversationstarters.py +++ b/bot/exts/utilities/conversationstarters.py @@ -11,10 +11,10 @@ from bot.utils.randomization import RandomCycle SUGGESTION_FORM = "https://forms.gle/zw6kkJqv8U43Nfjg9" -with Path("bot/resources/evergreen/starter.yaml").open("r", encoding="utf8") as f: +with Path("bot/resources/utilities/starter.yaml").open("r", encoding="utf8") as f: STARTERS = yaml.load(f, Loader=yaml.FullLoader) -with Path("bot/resources/evergreen/py_topics.yaml").open("r", encoding="utf8") as f: +with Path("bot/resources/utilities/py_topics.yaml").open("r", encoding="utf8") as f: # First ID is #python-general and the rest are top to bottom categories of Topical Chat/Help. PY_TOPICS = yaml.load(f, Loader=yaml.FullLoader) @@ -33,7 +33,7 @@ TOPICS = { class ConvoStarters(commands.Cog): - """Evergreen conversation topics.""" + """General conversation topics.""" @commands.command() @whitelist_override(channels=ALL_ALLOWED_CHANNELS) diff --git a/bot/exts/evergreen/emoji.py b/bot/exts/utilities/emoji.py index 55d6b8e9..55d6b8e9 100644 --- a/bot/exts/evergreen/emoji.py +++ b/bot/exts/utilities/emoji.py diff --git a/bot/exts/evergreen/githubinfo.py b/bot/exts/utilities/githubinfo.py index bbc9061a..d00b408d 100644 --- a/bot/exts/evergreen/githubinfo.py +++ b/bot/exts/utilities/githubinfo.py @@ -8,7 +8,7 @@ from discord.ext import commands from bot.bot import Bot from bot.constants import Colours, NEGATIVE_REPLIES -from bot.exts.utils.extensions import invoke_help_command +from bot.exts.core.extensions import invoke_help_command log = logging.getLogger(__name__) diff --git a/bot/exts/evergreen/issues.py b/bot/exts/utilities/issues.py index 8a7ebed0..8a7ebed0 100644 --- a/bot/exts/evergreen/issues.py +++ b/bot/exts/utilities/issues.py diff --git a/bot/exts/evergreen/latex.py b/bot/exts/utilities/latex.py index 36c7e0ab..36c7e0ab 100644 --- a/bot/exts/evergreen/latex.py +++ b/bot/exts/utilities/latex.py diff --git a/bot/exts/evergreen/pythonfacts.py b/bot/exts/utilities/pythonfacts.py index 80a8da5d..ef190185 100644 --- a/bot/exts/evergreen/pythonfacts.py +++ b/bot/exts/utilities/pythonfacts.py @@ -6,7 +6,7 @@ from discord.ext import commands from bot.bot import Bot from bot.constants import Colours -with open("bot/resources/evergreen/python_facts.txt") as file: +with open("bot/resources/utilities/python_facts.txt") as file: FACTS = itertools.cycle(list(file)) COLORS = itertools.cycle([Colours.python_blue, Colours.python_yellow]) diff --git a/bot/exts/evergreen/realpython.py b/bot/exts/utilities/realpython.py index ef8b2638..ef8b2638 100644 --- a/bot/exts/evergreen/realpython.py +++ b/bot/exts/utilities/realpython.py diff --git a/bot/exts/evergreen/reddit.py b/bot/exts/utilities/reddit.py index e6cb5337..e6cb5337 100644 --- a/bot/exts/evergreen/reddit.py +++ b/bot/exts/utilities/reddit.py diff --git a/bot/exts/evergreen/stackoverflow.py b/bot/exts/utilities/stackoverflow.py index 64455e33..64455e33 100644 --- a/bot/exts/evergreen/stackoverflow.py +++ b/bot/exts/utilities/stackoverflow.py diff --git a/bot/exts/evergreen/timed.py b/bot/exts/utilities/timed.py index 2ea6b419..2ea6b419 100644 --- a/bot/exts/evergreen/timed.py +++ b/bot/exts/utilities/timed.py diff --git a/bot/exts/evergreen/wikipedia.py b/bot/exts/utilities/wikipedia.py index eccc1f8c..eccc1f8c 100644 --- a/bot/exts/evergreen/wikipedia.py +++ b/bot/exts/utilities/wikipedia.py diff --git a/bot/exts/evergreen/wolfram.py b/bot/exts/utilities/wolfram.py index 9a26e545..9a26e545 100644 --- a/bot/exts/evergreen/wolfram.py +++ b/bot/exts/utilities/wolfram.py diff --git a/bot/resources/evergreen/py_topics.yaml b/bot/resources/utilities/py_topics.yaml index a3fb2ccc..a3fb2ccc 100644 --- a/bot/resources/evergreen/py_topics.yaml +++ b/bot/resources/utilities/py_topics.yaml diff --git a/bot/resources/evergreen/python_facts.txt b/bot/resources/utilities/python_facts.txt index 0abd971b..0abd971b 100644 --- a/bot/resources/evergreen/python_facts.txt +++ b/bot/resources/utilities/python_facts.txt diff --git a/bot/resources/evergreen/starter.yaml b/bot/resources/utilities/starter.yaml index 6b0de0ef..6b0de0ef 100644 --- a/bot/resources/evergreen/starter.yaml +++ b/bot/resources/utilities/starter.yaml |