Skip to content

Commit

Permalink
First attempt at applying fixed to breaking changes
Browse files Browse the repository at this point in the history
  • Loading branch information
drhat committed Jun 1, 2023
1 parent bcee874 commit f823675
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions reginaldCog/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from redbot.core.bot import Red
from .reginald import ReginaldCog

def setup(bot: Red):
async def setup(bot: Red):
cog = ReginaldCog(bot)
bot.add_cog(cog)
await bot.add_cog(cog)
14 changes: 8 additions & 6 deletions reginaldCog/reginald.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@ class ReginaldCog(commands.Cog):
def __init__(self, bot):
self.bot = bot
self.config = Config.get_conf(self, identifier=71717171171717)
self.config.register_global(
openai_model="gpt-3.5-turbo"
)
self.config.register_guild(
openai_api_key=None
)
default_global = {
"openai_model": "gpt-3.5-turbo"
}
default_guild = {
"openai_api_key": None
}
self.config.register_global(**default_global)
self.config.register_guild(**default_guild)

def has_kanium_role():
async def predicate(ctx):
Expand Down

0 comments on commit f823675

Please sign in to comment.