<!doctype html>
<html prefix="og: http://ogp.me/ns#">
    <head>
    <% include ./partials/header.ejs %>
    <% include ./partials/nav.ejs %>
            <link rel="icon" type="image/jpg" href="https://media.discordapp.net/attachments/506425178822279168/507496898823847936/dbr.png">
            <title>Edit Yourself - Discord Bot Review</title>
    </head>
    <body>
        <noscript>
          <div class="alert alert-danger" role="alert">
            This website requires Javascript to work. Please enable Javascript or use a browser that supports Javascript.
          </div>
          </noscript>
        <div class="container">
        <h1>Edit your profile</h1><br>
<!--         <center> -->
          <div class="card shadow-lg" style="width:50rem;background-color: #1f1f1f;">
          <form class="bg-dark-submit" action="/api/form/userconfig" method="POST" id="form" enctype="application/x-www-form-urlencoded"><br><br>
            Set a biography <div style="color:red;display:inline-block;margin-bottom:0.5rem;"></div><br>
            <textarea class="txtarea" style="width:500px" rows="3" id="biog" name="biog" maxlength="150"><%if(bot.userinfo.has(req.user.id) && bot.userinfo.get(req.user.id, "info")) {  if(bot.userinfo.get(req.user.id, "info").length >1) {%><%= bot.userinfo.get(req.user.id, "info")%><% } else { %><%}}%></textarea><br><br>
            Personal Website<br>
                        <textarea class="txtarea" style="width:700px" rows="1" id="webs" name="website" maxlength="150"><%if(bot.userinfo.has(req.user.id) && bot.userinfo.get(req.user.id, "website")) {  if(bot.userinfo.get(req.user.id, "website").length >1) {%><%= bot.userinfo.get(req.user.id, "website")%><% } else { %><%}}%></textarea><br>
            <%const asshole = bot.guilds.get("500658335217876997").members.get(req.user.id) 
            if(asshole) { if(bot.guilds.get("500658335217876997").members.get(req.user.id).roles.has("507628349707911178") || bot.guilds.get("500658335217876997").members.get(req.user.id).roles.has("500662148561764352") || bot.guilds.get("500658335217876997").members.get(req.user.id).roles.has("500658928602841099")) {%>  <br> Custom background (URL) <br> <textarea class="txtarea" style="width:700px" rows="2" id="pulse" name="pulse"><%if(bot.userinfo.has(req.user.id) && bot.userinfo.get(req.user.id, "custompulse")) {  if(bot.userinfo.get(req.user.id, "custompulse").length >1) {%><%= bot.userinfo.get(req.user.id, "custompulse")%><% } else { %><%}}}}%></textarea><br>
                     <%   const asshole22 = bot.guilds.get("500658335217876997").members.get(req.user.id) 
            if(asshole22) { if(bot.guilds.get("500658335217876997").members.get(req.user.id).roles.has("507628349707911178") || bot.guilds.get("500658335217876997").members.get(req.user.id).roles.has("500662148561764352")|| bot.guilds.get("500658335217876997").members.get(req.user.id).roles.has("500658928602841099")) {%>  <br> Background Animation Time (seconds) (Leave empty for no animation)<br> <textarea class="txtarea" style="width:700px" maxlength="3" rows="2" id="pulse2" name="pulse2"><%if(bot.userinfo.has(req.user.id) && bot.userinfo.get(req.user.id, "pulsetime")) {  if(bot.userinfo.get(req.user.id, "pulsetime").length >0) {%><%= bot.userinfo.get(req.user.id, "pulsetime")%><% } else { %><%}}}}%></textarea><br>
                                 <%   const asshole23 = bot.guilds.get("500658335217876997").members.get(req.user.id) 
            if(asshole23) { if(bot.guilds.get("500658335217876997").members.get(req.user.id).roles.has("507628349707911178") || bot.guilds.get("500658335217876997").members.get(req.user.id).roles.has("500662148561764352")|| bot.guilds.get("500658335217876997").members.get(req.user.id).roles.has("500658928602841099")) {%>  <br> Custom Avatar Pulse Color (RGB)<br> <textarea class="txtarea" style="width:700px" maxlength="11" rows="2" id="pulsecolor" name="pulsecolor"><%if(bot.userinfo.has(req.user.id) && bot.userinfo.get(req.user.id, "pulsecolor")) {  if(bot.userinfo.get(req.user.id, "pulsecolor").length >0) {%><%= bot.userinfo.get(req.user.id, "pulsecolor")%><% } else { %><%}}}}%></textarea><br>
            <%if(asshole23) { if(bot.guilds.get("500658335217876997").members.get(req.user.id).roles.has("507628349707911178") || bot.guilds.get("500658335217876997").members.get(req.user.id).roles.has("500662148561764352")|| bot.guilds.get("500658335217876997").members.get(req.user.id).roles.has("500658928602841099")) {%>  <br> Custom color (RGB) (Will also be visible on comments & bot pages)<br> <textarea class="txtarea" style="width:700px" maxlength="11" rows="2" id="nametag" name="nametag"><%if(bot.userinfo.has(req.user.id) && bot.userinfo.get(req.user.id, "nametag")) {  if(bot.userinfo.get(req.user.id, "nametag").length >0) {%><%= bot.userinfo.get(req.user.id, "nametag")%><% } else { %><%}}}}%></textarea><br>
            <%if(asshole23) { if(bot.guilds.get("500658335217876997").members.get(req.user.id).roles.has("507628349707911178") || bot.guilds.get("500658335217876997").members.get(req.user.id).roles.has("500662148561764352")|| bot.guilds.get("500658335217876997").members.get(req.user.id).roles.has("500658928602841099")) {%>  <br> Custom comment bubble image/color (RGB if color, http/https:// for URL)<br> <textarea class="txtarea" style="width:700px"  rows="2" id="commentb" name="commentb"><%if(bot.userinfo.has(req.user.id) && bot.userinfo.get(req.user.id, "commentbubble")) {  if(bot.userinfo.get(req.user.id, "commentbubble").length >0) {%><%= bot.userinfo.get(req.user.id, "commentbubble")%><% } else { %><%}}}}%></textarea><br><br>
            
            <input type="hidden" name="submitter_id" value="<%= req.user.id%>"><br><br>
            <input type="submit" value="Submit!" class="btn btn-primary hover-active-button" id="submit" onclick="userinfocheck()"> 
          </form>
        </div>
        <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
        <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
        
      </body>
</html>
