mirror of
https://github.com/stijndcl/didier.git
synced 2026-04-07 15:48:29 +02:00
Disable IPC
This commit is contained in:
parent
eaed08168c
commit
829729c8db
4 changed files with 4 additions and 21 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue