@@ -349,7 +349,7 @@ async def recent(ctx: Context) -> Optional[str]:
349
349
rank = s .rank if s .status == SubmissionStatus .BEST else "NA"
350
350
l .append (f"PASS {{{ s .pp :.2f} pp #{ rank } }}" )
351
351
else :
352
- # XXX: prior to v3.2.0, gulag didn't parse total_length from
352
+ # XXX: prior to v3.2.0, bancho.py didn't parse total_length from
353
353
# the osu!api, and thus this can do some zerodivision moments.
354
354
# this can probably be removed in the future, or better yet
355
355
# replaced with a better system to fix the maps.
@@ -1440,7 +1440,7 @@ async def reload(ctx: Context) -> Optional[str]:
1440
1440
async def server (ctx : Context ) -> Optional [str ]:
1441
1441
"""Retrieve performance data about the server."""
1442
1442
1443
- build_str = f"gulag v{ app .settings .VERSION } ({ app .settings .DOMAIN } )"
1443
+ build_str = f"bancho.py v{ app .settings .VERSION } ({ app .settings .DOMAIN } )"
1444
1444
1445
1445
# get info about this process
1446
1446
proc = psutil .Process (os .getpid ())
@@ -1463,9 +1463,9 @@ async def server(ctx: Context) -> Optional[str]:
1463
1463
# get system-wide ram usage
1464
1464
sys_ram = psutil .virtual_memory ()
1465
1465
1466
- # output ram usage as `{gulag_used }MB / {sys_used}MB / {sys_total}MB`
1467
- gulag_ram = proc .memory_info ()[0 ]
1468
- ram_values = (gulag_ram , sys_ram .used , sys_ram .total )
1466
+ # output ram usage as `{bancho_used }MB / {sys_used}MB / {sys_total}MB`
1467
+ bancho_ram = proc .memory_info ()[0 ]
1468
+ ram_values = (bancho_ram , sys_ram .used , sys_ram .total )
1469
1469
ram_info = " / " .join ([f"{ v // 1024 ** 2 } MB" for v in ram_values ])
1470
1470
1471
1471
# current state of settings
@@ -1532,7 +1532,7 @@ async def server(ctx: Context) -> Optional[str]:
1532
1532
@command (Privileges .DEVELOPER )
1533
1533
async def py (ctx : Context ) -> Optional [str ]:
1534
1534
"""Allow for (async) access to the python interpreter."""
1535
- # This can be very good for getting used to gulag 's API; just look
1535
+ # This can be very good for getting used to bancho.py 's API; just look
1536
1536
# around the codebase and find things to play with in your server.
1537
1537
# Ex: !py return (await app.state.sessions.players.get(name='cmyui')).status.action
1538
1538
if not ctx .args :
@@ -1973,7 +1973,7 @@ async def mp_condition(ctx: Context, match: Match) -> Optional[str]:
1973
1973
1974
1974
if cond == "pp" :
1975
1975
# special case - pp can't actually be used as an ingame
1976
- # win condition, but gulag allows it to be passed into
1976
+ # win condition, but bancho.py allows it to be passed into
1977
1977
# this command during a scrims to use pp as a win cond.
1978
1978
if not match .is_scrimming :
1979
1979
return "PP is only useful as a win condition during scrims."
@@ -2462,7 +2462,7 @@ async def pool_info(ctx: Context) -> Optional[str]:
2462
2462
2463
2463
2464
2464
""" Clan managment commands
2465
- # The commands below are for managing gulag
2465
+ # The commands below are for managing bancho.py
2466
2466
# clans, for users, clan staff, and server staff.
2467
2467
"""
2468
2468
@@ -2653,7 +2653,7 @@ async def clan_list(ctx: Context) -> Optional[str]:
2653
2653
if offset >= (total_clans := len (app .state .sessions .clans )):
2654
2654
return "No clans found."
2655
2655
2656
- msg = [f"gulag clans listing ({ total_clans } total)." ]
2656
+ msg = [f"bancho.py clans listing ({ total_clans } total)." ]
2657
2657
2658
2658
for idx , clan in enumerate (app .state .sessions .clans , offset ):
2659
2659
msg .append (f"{ idx + 1 } . { clan !r} " )
0 commit comments