From aeb9553113576c5f3929697d6f748724cf1ce5e3 Mon Sep 17 00:00:00 2001 From: suti7yk5032 Date: Sun, 7 Jul 2024 17:34:51 +0900 Subject: [PATCH] =?UTF-8?q?int=E5=88=A4=E5=AE=9A=E3=82=92=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dislocker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dislocker.py b/dislocker.py index 9b9a3cc..33991b6 100644 --- a/dislocker.py +++ b/dislocker.py @@ -47,8 +47,8 @@ class DL(): if not os.path.isdir(self.export_dir_path): print("export ディレクトリが見つかりません... 作成します。") os.mkdir(self.export_dir_path) - - if not type(self.server_config["bot"]["log_channel_id"]) is int or type(self.server_config["bot"]["config_channel_id"]) is int: + + if type(self.server_config["bot"]["log_channel_id"]) is not int or type(self.server_config["bot"]["config_channel_id"]) is not int: print("config ファイル内でチャンネルIDがint型で記述されていません。int型で記述して、起動してください。") self.init_result = "not_int" else: