Use a custom message

This commit is contained in:
majmongoose 2024-02-24 07:51:20 -05:00
parent d1d99beb25
commit f9dbbca672
2 changed files with 3 additions and 1 deletions

View File

@ -86,7 +86,7 @@ async def upload_to_discord(mp4_file,text):
role_name = filename.split('-', 1)[0].strip()
role = discord.utils.get(channel.guild.roles, name=role_name)
if role:
await channel.send(f"{role.mention} Go get em brothers!")
await channel.send(f"{role.mention} {secrets_file.notify_text}")
else:
print(f"Role '{role_name}' not found.")
else:

View File

@ -4,6 +4,8 @@ ttd_path = "C:\\PATH\\TO\\TTD.exe"
key = 'Bot Token'
## Folder to Watch for output audio
watch_folder = '/path/to/folder'
## Text for after a ping.
notify_text = "You've been paged!"
## Discord Channel ID to send notifications
channel_id = channel_id_number
## Generally a good idea.