mirror of
				https://github.com/majmongoose/PageBot.git
				synced 2025-11-03 21:40:38 -05:00 
			
		
		
		
	Use a custom message
This commit is contained in:
		
							parent
							
								
									d1d99beb25
								
							
						
					
					
						commit
						f9dbbca672
					
				@ -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:
 | 
			
		||||
 | 
			
		||||
@ -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.
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user