Skip to content

Commit bce3f6f

Browse files
committed
👗More renaming
1 parent 43c916c commit bce3f6f

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

bot/bot.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def __init__(
9494

9595
self.exc_manager = ExceptionManager(self)
9696

97-
self.aluerie_online: bool = False
97+
self.irene_online: bool = False
9898

9999
# def show_oauth(self) -> None:
100100
# oauth = twitchio.authentication.OAuth(
@@ -182,9 +182,9 @@ async def setup_hook(self) -> None:
182182
5. Comment the lines back. In normal state, they should be commented.
183183
184184
"""
185-
self.print_bot_oauth() # noqa: ERA001, RUF100
186-
self.print_broadcaster_oauth() # noqa: ERA001, RUF100
187-
return # noqa: ERA001, RUF100
185+
# self.print_bot_oauth() # noqa: ERA001, RUF100
186+
# self.print_broadcaster_oauth() # noqa: ERA001, RUF100
187+
# return # noqa: ERA001, RUF100
188188

189189
for ext in self.extensions:
190190
(await self.load_module(ext))
@@ -418,18 +418,18 @@ async def check_if_online(self) -> None:
418418
"""Check if aluerie is online - used to make my own (proper) online event instead of twitchio's."""
419419
await asyncio.sleep(1.0) # just in case;
420420
if await self.aluerie_stream():
421-
self.aluerie_online = True
421+
self.irene_online = True
422422
self.dispatch("aluerie_online")
423423

424424
async def event_stream_online(self, _: twitchio.StreamOnline) -> None:
425425
"""Instead of the twitchio event - dispatch my own online event.
426426
427427
The difference is that my event accounts for the state of my stream when the bot restarts.
428428
"""
429-
self.aluerie_online = True
429+
self.irene_online = True
430430
self.dispatch("aluerie_online")
431431

432432
async def event_stream_offline(self, _: twitchio.StreamOffline) -> None:
433433
"""Instead of the twitchio event - dispatch my own offline event."""
434-
self.aluerie_online = False
434+
self.irene_online = False
435435
self.dispatch("aluerie_offline")

ext/dev.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,14 @@ async def online(self, ctx: commands.Context) -> None:
8888
* If somehow eventsub missed stream_online notification - this can "manually"
8989
fix the problem of soft-locking the commands.
9090
"""
91-
self.bot.aluerie_online = True
91+
self.bot.irene_online = True
9292
await ctx.send(f"I'll treat {ctx.broadcaster.display_name} as online now {const.STV.dankHey}")
9393

9494
@commands.is_owner()
9595
@commands.command()
9696
async def offline(self, ctx: commands.Context) -> None:
9797
"""Make the bot treat streamer as offline."""
98-
self.bot.aluerie_online = False
98+
self.bot.irene_online = False
9999
await ctx.send(f"I'll treat {ctx.broadcaster.display_name} as offline now {const.STV.donkSad}")
100100

101101

0 commit comments

Comments
 (0)