From 42d3f78c2c8a70720add654f670fd57213cf644c Mon Sep 17 00:00:00 2001 From: Juni Date: Sun, 10 Apr 2022 14:59:07 -0400 Subject: [PATCH] trying to fix stuff --- reactquote/__init__.py | 22 +--------------------- reactquote/reactquote.py | 10 ---------- 2 files changed, 1 insertion(+), 31 deletions(-) diff --git a/reactquote/__init__.py b/reactquote/__init__.py index 077c484..d490621 100644 --- a/reactquote/__init__.py +++ b/reactquote/__init__.py @@ -1,24 +1,4 @@ from .reactquote import ReactQuote -from redbot.core.utils import fileIO -import os - -def check_folder(): - if not os.path.exists("data/reactquote"): - print("Creating data/reactquote folder...") - os.makedirs("data/reactquote") - - -def check_file(self): - quotes = {} - - f = "data/reactquote/reactquote.json" - if not fileIO(f, "check"): - print("Creating default reactquote's reactquote.json...") - fileIO(f, "save", quotes) - def setup(bot): - check_folder() - check_file() - n = ReactQuote(bot) - bot.add_cog(n) \ No newline at end of file + bot.add_cog(ReactQuote(bot)) \ No newline at end of file diff --git a/reactquote/reactquote.py b/reactquote/reactquote.py index cb10e58..68d0c3f 100644 --- a/reactquote/reactquote.py +++ b/reactquote/reactquote.py @@ -1,15 +1,10 @@ from redbot.core import commands -from redbot.core.utils import fileIO -from __main__ import send_cmd_help -import os -from random import choice as randchoice class ReactQuote(commands.Cog): """Cog to store quotes by reacting with speech bubble""" def __init__(self, bot): self.bot = bot - self.quotes = fileIO("data/quotes/quotes.json", "load") def _wrapQuote(self, msg): return msg @@ -19,8 +14,3 @@ class ReactQuote(commands.Cog): """TestCommand""" # Your code will go here await ctx.send("I can do stuff, really!") - - @commands.command() - async def addquote(self, *message): - """Manually Add Quote""" - self.bot.say(message) \ No newline at end of file