Skip to content

Commit

Permalink
fix: bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ysmreg committed Jan 30, 2024
1 parent 7cd3252 commit 94c5311
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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の内容を入れている
Expand Down
4 changes: 2 additions & 2 deletions util/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down Expand Up @@ -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()}"
Expand Down

0 comments on commit 94c5311

Please sign in to comment.