mirror of
				https://github.com/TitanEmbeds/Titan.git
				synced 2025-11-04 07:47:10 +01:00 
			
		
		
		
	Push message first before hitting the database
This commit is contained in:
		@@ -101,8 +101,8 @@ class Titan(discord.Client):
 | 
			
		||||
        #     print("Skipping indexing server due to no-init flag")
 | 
			
		||||
 | 
			
		||||
    async def on_message(self, message):
 | 
			
		||||
        await self.database.push_message(message)
 | 
			
		||||
        await self.socketio.on_message(message)
 | 
			
		||||
        await self.database.push_message(message)
 | 
			
		||||
 | 
			
		||||
        msg_arr = message.content.split() # split the message
 | 
			
		||||
        if len(message.content.split()) > 1 and message.server: #making sure there is actually stuff in the message and have arguments and check if it is sent in server (not PM)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user