diff --git a/main.py b/main.py index 328ec79c..c080e787 100644 --- a/main.py +++ b/main.py @@ -44,7 +44,7 @@ argv.append("production") bot.test=False if not bot.test: - websocket.WEBSOCKET_URI_BASE = "ws://60.158.90.139" + websocket.WEBSOCKET_URI_BASE = "ws://127.0.0.1:8081" bot.data = data # 全データアクセス用、非推奨 bot.owner_ids = data["admins"] bot.secret = secret # auth.jsonの内容を入れている diff --git a/util/bot.py b/util/bot.py index 21492664..ccd29a57 100644 --- a/util/bot.py +++ b/util/bot.py @@ -22,7 +22,7 @@ def __init__(self, *args, **kwargs): return super().__init__(*args, **kwargs) async def get_prefix(self, m = None): - pr = data["prefixes"][argv[-1]] + pr = data["prefixes"][argv[-1]] if not m == None: if m.author.id in self.user_prefixes and self.user_prefixes[m.author.id]: pr.append(self.user_prefixes[m.author.id]) @@ -64,7 +64,7 @@ def print(self, *args, **kwargs) -> None: return print("\033[32m[RT log]\033[0m", *temp, **kwargs) def get_ip(self) -> str: - return "localhost" if self.test else "60.158.90.139" + return "localhost" if self.test else "127.0.0.1" def get_url(self) -> str: return f"http://{self.get_ip()}"