Skip to content

Commit

Permalink
deprecate external key
Browse files Browse the repository at this point in the history
  • Loading branch information
greeeen-dev committed Oct 1, 2024
1 parent 88144ee commit 59bd9ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bridge_revolt.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class Revolt(commands.Cog,name='<:revoltsupport:1211013978558304266> Revolt Supp
Developed by Green"""
def __init__(self,bot):
self.bot = bot
if not 'revolt' in self.bot.config['external']:
if not 'revolt' in self.bot.config.get('external', ['revolt']):
raise RuntimeError('revolt is not listed as an external service in config.json. More info: https://unichat-wiki.pixels.onl/setup-selfhosted/getting-started#installing-revolt-support')
if not hasattr(self.bot, 'revolt_client'):
self.bot.revolt_client = None
Expand Down

0 comments on commit 59bd9ab

Please sign in to comment.