mirror of
				https://github.com/TitanEmbeds/Titan.git
				synced 2025-11-04 07:47:10 +01:00 
			
		
		
		
	Add video
This commit is contained in:
		
							
								
								
									
										38
									
								
								storage.txt
									
									
									
									
									
								
							
							
						
						
									
										38
									
								
								storage.txt
									
									
									
									
									
								
							@@ -1,38 +0,0 @@
 | 
			
		||||
session:
 | 
			
		||||
- unauthenticated T/F
 | 
			
		||||
- user_id - random generated 4 digit discrim upon nick creation, otherwise the discord client id if authed
 | 
			
		||||
- username
 | 
			
		||||
- avatar
 | 
			
		||||
- user_keys {guildid: key, ...} - replaced with discord token dict if authed
 | 
			
		||||
 | 
			
		||||
database:
 | 
			
		||||
 | 
			
		||||
unauthenticated Users:
 | 
			
		||||
- id
 | 
			
		||||
- guildid
 | 
			
		||||
- username
 | 
			
		||||
- discrim
 | 
			
		||||
- user key
 | 
			
		||||
- ip address
 | 
			
		||||
- last used timestamp
 | 
			
		||||
- revoked - cannot be used again if true
 | 
			
		||||
 | 
			
		||||
unauth bans:
 | 
			
		||||
- id
 | 
			
		||||
- guildid
 | 
			
		||||
- ip address
 | 
			
		||||
- last known username
 | 
			
		||||
- last known discrim
 | 
			
		||||
- timestamp
 | 
			
		||||
- reason
 | 
			
		||||
 | 
			
		||||
auth users:
 | 
			
		||||
- id
 | 
			
		||||
- guildid
 | 
			
		||||
- clientid
 | 
			
		||||
- timestamp
 | 
			
		||||
 | 
			
		||||
guilds:
 | 
			
		||||
- id
 | 
			
		||||
- guildid
 | 
			
		||||
- enable unauthenticated users
 | 
			
		||||
@@ -189,7 +189,7 @@ def post():
 | 
			
		||||
    content = request.form.get('content')
 | 
			
		||||
    content = format_post_content(content)
 | 
			
		||||
    if user_unauthenticated():
 | 
			
		||||
        key = session['user_keys'][channel_id]
 | 
			
		||||
        key = session['user_keys'][guild_id]
 | 
			
		||||
    else:
 | 
			
		||||
        key = None
 | 
			
		||||
    status = update_user_status(guild_id, session['username'], key)
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										
											BIN
										
									
								
								titanembeds/static/titanembeds.mp4
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								titanembeds/static/titanembeds.mp4
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							@@ -7,11 +7,9 @@
 | 
			
		||||
<a class="waves-effect waves-light btn btn-large center_content" href="{{ url_for('user.dashboard') }}">Start here!</a>
 | 
			
		||||
<br /><br />
 | 
			
		||||
<div style="display: flex;align-items: center;">
 | 
			
		||||
  <video preload="true"  loop="" style="width:100%; border-radius: 10px;">
 | 
			
		||||
    <source src="http://mee6.xyz/static/mee6.mp4" type="video/mp4">
 | 
			
		||||
    <source src="http://mee6.xyz/static/mee6.webm" type="video/webm; codecs=vp8, vorbis">
 | 
			
		||||
    <source type="video/ogg; codecs=theora, vorbis" src="http://mee6.xyz/static/mee6.ogg">
 | 
			
		||||
  <video preload="true" loop autoplay style="width:100%; border-radius: 10px;">
 | 
			
		||||
    <source src="{{ url_for('static', filename='titanembeds.mp4') }}" type="video/mp4">
 | 
			
		||||
    Your browser does not support the video tag.
 | 
			
		||||
  </video> <!-- TODO: Fix video and add autoplay -->
 | 
			
		||||
  </video>
 | 
			
		||||
</div>
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user