adding back the dm chat
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				OpenWebUI Discord Bot / Build-and-Push (push) Successful in 58s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	OpenWebUI Discord Bot / Build-and-Push (push) Successful in 58s
				
			This commit is contained in:
		| @@ -64,8 +64,13 @@ async def on_message(message): | |||||||
|     if message.author == bot.user: |     if message.author == bot.user: | ||||||
|         return |         return | ||||||
|  |  | ||||||
|     if bot.user in message.mentions: |     # Respond to DMs or when mentioned in a server | ||||||
|         prompt = message.content.replace(f'<@{bot.user.id}>', '').strip() |     if isinstance(message.channel, discord.DMChannel) or bot.user in message.mentions: | ||||||
|  |         # For mentions, remove the bot mention from the message | ||||||
|  |         if bot.user in message.mentions: | ||||||
|  |             prompt = message.content.replace(f'<@{bot.user.id}>', '').strip() | ||||||
|  |         else: | ||||||
|  |             prompt = message.content.strip() | ||||||
|          |          | ||||||
|         if not prompt: |         if not prompt: | ||||||
|             await message.channel.send("Hello! How can I help you?") |             await message.channel.send("Hello! How can I help you?") | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user