Remove redis ping
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 27s
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 27s
This commit is contained in:
parent
ef45712aa8
commit
87456f32d2
1 changed files with 0 additions and 4 deletions
|
@ -124,10 +124,6 @@ class Starboard(commands.Cog):
|
||||||
if payload.guild_id not in self.config["whitelist"]:
|
if payload.guild_id not in self.config["whitelist"]:
|
||||||
return
|
return
|
||||||
|
|
||||||
if not await self.redis.ping():
|
|
||||||
# Could not contact redis, not much point trying anything else without the database
|
|
||||||
return self.log.critical("Failed to contact redis (ping failed)!")
|
|
||||||
|
|
||||||
guild: discord.Guild = self.bot.get_guild(payload.guild_id)
|
guild: discord.Guild = self.bot.get_guild(payload.guild_id)
|
||||||
starboard_channel: discord.TextChannel | None = discord.utils.get(
|
starboard_channel: discord.TextChannel | None = discord.utils.get(
|
||||||
guild.text_channels,
|
guild.text_channels,
|
||||||
|
|
Loading…
Reference in a new issue