Skip to content

Commit e916adc

Browse files
committed
🪥Announcement for affiliate
1 parent 7417547 commit e916adc

File tree

5 files changed

+27
-3
lines changed

5 files changed

+27
-3
lines changed

bot/bot.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,7 @@ async def aluerie_stream(self) -> twitchio.Stream | None:
412412

413413
@lueloop(count=1)
414414
async def check_if_online(self) -> None:
415+
await asyncio.sleep(1.0) # just in case;
415416
if await self.aluerie_stream():
416417
self.aluerie_online = True
417418
self.dispatch("aluerie_online")

ext/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
DISABLED_EXTENSIONS: tuple[str, ...] = (
2121
# extensions that should not be loaded
2222
"ext.beta",
23-
# "ext.dota",
23+
# currently disabled
24+
"ext.dota",
2425
)
2526

2627
CORE_EXTENSIONS: tuple[str, ...] = (

ext/misc_commands.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ async def run(self, ctx: commands.Context) -> None:
3232
"All Memories & Unique MiniBosses (so no repetitions). "
3333
"The idea: I have to learn and practice all boss move-sets. "
3434
"Even load Inner Father, Fire Isshin and Emma save-file. "
35-
"Almost Charmless (take it back pre-demon). Mostly Sword+Shuriken. Somewhat loop-less. "
36-
"For more look !notes."
35+
"Almost Charmless (take it back pre-demon). Mostly Sword+Shuriken (~29/37 boss fights). "
36+
"Somewhat loop-less. For more look !notes."
3737
)
3838
await ctx.send(msg)
3939

ext/timers.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ def __init__(self, bot: LueBot) -> None:
3737
"hi chat many features of this bot are WIP so, please, if you notice bugs or incorrect responses "
3838
f"- inform me {const.STV.DANKHACKERMANS}"
3939
),
40+
(
41+
"hey chat I'm making a small web-page to describe the bot's features (WIP)."
42+
"You can see it here: (not implemented xdd)" # TODO: add the web page
43+
),
4044
# "Discord discord.gg/K8FuDeP",
4145
# "if you have nothing to do Sadge you can try !randompasta. Maybe you'll like it Okayge",
4246
]
@@ -84,6 +88,23 @@ async def timer_task(self) -> None:
8488
async def timer_task_before_loop(self) -> None:
8589
await self.bot.wait_until_ready()
8690

91+
@commands.Component.listener(name="aluerie_online")
92+
async def periodic_announcements(self) -> None:
93+
"""Send periodic announcements into irene's channel on timer."""
94+
95+
# lazy implementation
96+
for _ in range(0, 3):
97+
await asyncio.sleep(60 * 3)
98+
await self.aluerie.send_announcement(
99+
moderator=const.UserID.Bot,
100+
token_for=const.UserID.Bot,
101+
message=(
102+
"hey chat soon I will need to grind an affiliate for @AlueBot account. "
103+
f"{const.STV.please} Any follows and lurks for that account are appreciated. "
104+
f"We need 50 followers total and 3 average viewers {const.STV.Erm}."
105+
),
106+
)
107+
87108

88109
async def setup(bot: LueBot) -> None:
89110
"""Load LueBot extension. Framework of twitchio."""

utils/const.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ class STV(StrEnum):
106106
How2Read = "How2Read"
107107
peepoAds = "peepoAds"
108108
peepoDapper = "peepoDapper"
109+
please = "please"
109110
plink = "plink"
110111
PogChampPepe = "PogChampPepe"
111112
POGCRAZY = "POGCRAZY"

0 commit comments

Comments
 (0)