First attempt at applying fixed to breaking changes

This commit is contained in:
unknown 2023-06-01 20:37:00 +02:00
parent bcee87470c
commit f823675710
2 changed files with 10 additions and 8 deletions

View File

@ -1,6 +1,6 @@
from redbot.core.bot import Red from redbot.core.bot import Red
from .reginald import ReginaldCog from .reginald import ReginaldCog
def setup(bot: Red): async def setup(bot: Red):
cog = ReginaldCog(bot) cog = ReginaldCog(bot)
bot.add_cog(cog) await bot.add_cog(cog)

View File

@ -17,12 +17,14 @@ class ReginaldCog(commands.Cog):
def __init__(self, bot): def __init__(self, bot):
self.bot = bot self.bot = bot
self.config = Config.get_conf(self, identifier=71717171171717) self.config = Config.get_conf(self, identifier=71717171171717)
self.config.register_global( default_global = {
openai_model="gpt-3.5-turbo" "openai_model": "gpt-3.5-turbo"
) }
self.config.register_guild( default_guild = {
openai_api_key=None "openai_api_key": None
) }
self.config.register_global(**default_global)
self.config.register_guild(**default_guild)
def has_kanium_role(): def has_kanium_role():
async def predicate(ctx): async def predicate(ctx):