mirror of
				https://github.com/TitanEmbeds/Titan.git
				synced 2025-11-04 07:47:10 +01:00 
			
		
		
		
	Add redis to requirements and test for uwsgi to monkeypatch
This commit is contained in:
		@@ -9,3 +9,4 @@ https://github.com/TitanEmbeds/discord.py/archive/async.zip#egg=discord.py[voice
 | 
			
		||||
asyncio_extras
 | 
			
		||||
kombu
 | 
			
		||||
redis
 | 
			
		||||
aioredis
 | 
			
		||||
@@ -7,6 +7,11 @@ from .blueprints import api, user, admin, embed, gateway
 | 
			
		||||
import os
 | 
			
		||||
from titanembeds.database import get_administrators_list
 | 
			
		||||
 | 
			
		||||
try:
 | 
			
		||||
    import uwsgi
 | 
			
		||||
    from gevent import monkey
 | 
			
		||||
    monkey.patch_all()
 | 
			
		||||
except:
 | 
			
		||||
    if config.get("websockets-mode", None) == "eventlet":
 | 
			
		||||
        import eventlet
 | 
			
		||||
        eventlet.monkey_patch()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user