remove "dj" from announcements
This commit is contained in:
parent
e7e435ad6e
commit
727e563a3e
|
@ -116,7 +116,7 @@ class Module(ModuleManager.BaseModule):
|
|||
|
||||
# a different dj is online
|
||||
if self.dj != "" and self.dj != previous_dj:
|
||||
newdj_message = f"dj {self.dj} is now online playing {self.song}! tune in here now: {LISTEN_URL}"
|
||||
newdj_message = f"{self.dj} is now online playing {self.song}! tune in here now: {LISTEN_URL}"
|
||||
|
||||
# post toot to @tilderadio
|
||||
self.mastodon.toot(newdj_message)
|
||||
|
@ -138,7 +138,7 @@ class Module(ModuleManager.BaseModule):
|
|||
"tilderadio-email-subscriptions", {}
|
||||
).items():
|
||||
msg = EmailMessage()
|
||||
msg["Subject"] = f"tilderadio: dj {self.dj} is now on the air"
|
||||
msg["Subject"] = f"tilderadio: {self.dj} is now on the air"
|
||||
msg["From"] = "tildebot@tilde.chat"
|
||||
msg["To"] = f"{nick} <{email}>"
|
||||
msg.set_content(
|
||||
|
@ -200,7 +200,7 @@ class Module(ModuleManager.BaseModule):
|
|||
now = utils.datetime.utcnow()
|
||||
total_secs = (start - now).total_seconds()
|
||||
event["stdout"].write(
|
||||
"dj {} is up next at {} UTC in {}!".format(
|
||||
"{} is up next at {} UTC in {}!".format(
|
||||
data["name"],
|
||||
utils.datetime.format.datetime_human(start),
|
||||
utils.datetime.format.to_pretty_time(total_secs),
|
||||
|
@ -274,7 +274,7 @@ class Module(ModuleManager.BaseModule):
|
|||
if self.dj == "":
|
||||
message = "no one is currently on the air"
|
||||
else:
|
||||
message = f"dj {self.dj} is now streaming!"
|
||||
message = f"{self.dj} is now streaming!"
|
||||
event["stdout"].write(message)
|
||||
|
||||
@utils.hook("received.command.slogan")
|
||||
|
|
Loading…
Reference in New Issue