Disable IPC

This commit is contained in:
Stijn De Clercq 2022-02-05 14:43:19 +01:00
parent eaed08168c
commit 829729c8db
4 changed files with 4 additions and 21 deletions

View file

@ -1,8 +1,7 @@
from data.snipe import Snipe
from discord.ext import commands, ipc
from discord.ext import commands
from dislash import InteractionClient
import os
from settings import HOST_IPC
from startup.init_files import check_all
from typing import Dict
@ -20,12 +19,6 @@ class Didier(commands.Bot):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self._host_ipc = HOST_IPC
# IPC Server
# TODO secret key
self.ipc = ipc.Server(self, secret_key="SOME_SECRET_KEY") if self._host_ipc else None
# Cogs that should be loaded before the others
self._preload = ("ipc", "utils", "failedchecks", "events",)
@ -62,9 +55,3 @@ class Didier(commands.Bot):
# Subdirectory
# Also walrus operator hype
self._init_directory(new_path)
async def on_ipc_ready(self):
print("IPC server is ready.")
async def on_ipc_error(self, endpoint, error):
print(endpoint, "raised", error)