Skip to content

Commit

Permalink
update: bot
Browse files Browse the repository at this point in the history
  • Loading branch information
ysmreg committed Feb 4, 2024
1 parent 576bde4 commit 439f210
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://127.0.0.1:8081"
websocket.WEBSOCKET_URI_BASE = "ws://free-rt.com: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 @@ -59,8 +59,8 @@ def print(self, *args, **kwargs) -> None:
temp = [*args]
if len(args) >= 1 and args[0].startswith("[") and args[0].endswith("]"):
temp[0] = f"\033[93m{args[0]}\033[0m"
if len(args) >= 2 and args[1].startswith("[") and args[1].endswith("]"):
temp[1] = f"\033[95m{args[1]}\033[0m"
if len(args) >= 2 and str(args[1]).startswith("[") and str(args[1]).endswith("]"):
temp[1] = f"\033[95m{str(args[1])}\033[0m"
return print("\033[32m[RT log]\033[0m", *temp, **kwargs)

def get_ip(self) -> str:
Expand Down

0 comments on commit 439f210

Please sign in to comment.