remove a lot more unneeded logging
This commit is contained in:
parent
4154a917e1
commit
164aa48ea4
6 changed files with 0 additions and 10 deletions
|
@ -10,7 +10,6 @@ class Embed {
|
||||||
this.type = this.getType(json);
|
this.type = this.getType(json);
|
||||||
this.owner = owner;
|
this.owner = owner;
|
||||||
this.json = json;
|
this.json = json;
|
||||||
console.log(this);
|
|
||||||
}
|
}
|
||||||
getType(json) {
|
getType(json) {
|
||||||
const instances = getInstances();
|
const instances = getInstances();
|
||||||
|
|
|
@ -59,7 +59,6 @@ class MarkDown {
|
||||||
let element = document.createElement("span");
|
let element = document.createElement("span");
|
||||||
let keepys = "";
|
let keepys = "";
|
||||||
if (txt[i + 1] === "#") {
|
if (txt[i + 1] === "#") {
|
||||||
console.log("test");
|
|
||||||
if (txt[i + 2] === "#") {
|
if (txt[i + 2] === "#") {
|
||||||
if (txt[i + 3] === "#" && txt[i + 4] === " ") {
|
if (txt[i + 3] === "#" && txt[i + 4] === " ") {
|
||||||
element = document.createElement("h3");
|
element = document.createElement("h3");
|
||||||
|
@ -110,7 +109,6 @@ class MarkDown {
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
i -= 1;
|
i -= 1;
|
||||||
console.log(txt[i]);
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -129,7 +129,6 @@ class Message extends SnowFlake {
|
||||||
else if (thing === "embeds") {
|
else if (thing === "embeds") {
|
||||||
this.embeds = [];
|
this.embeds = [];
|
||||||
for (const thing in messagejson.embeds) {
|
for (const thing in messagejson.embeds) {
|
||||||
console.log(thing, messagejson.embeds);
|
|
||||||
this.embeds[thing] = new Embed(messagejson.embeds[thing], this);
|
this.embeds[thing] = new Embed(messagejson.embeds[thing], this);
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
|
@ -444,7 +443,6 @@ class Message extends SnowFlake {
|
||||||
messagedwrap.appendChild(attach);
|
messagedwrap.appendChild(attach);
|
||||||
}
|
}
|
||||||
if (this.embeds.length) {
|
if (this.embeds.length) {
|
||||||
console.log(this.embeds);
|
|
||||||
const embeds = document.createElement("div");
|
const embeds = document.createElement("div");
|
||||||
embeds.classList.add("flexltr");
|
embeds.classList.add("flexltr");
|
||||||
for (const thing of this.embeds) {
|
for (const thing of this.embeds) {
|
||||||
|
|
|
@ -13,7 +13,6 @@ class Embed{
|
||||||
this.type=this.getType(json);
|
this.type=this.getType(json);
|
||||||
this.owner=owner;
|
this.owner=owner;
|
||||||
this.json=json;
|
this.json=json;
|
||||||
console.log(this);
|
|
||||||
}
|
}
|
||||||
getType(json:embedjson){
|
getType(json:embedjson){
|
||||||
const instances=getInstances();
|
const instances=getInstances();
|
||||||
|
|
|
@ -61,7 +61,6 @@ class MarkDown{
|
||||||
let keepys="";
|
let keepys="";
|
||||||
|
|
||||||
if(txt[i+1]==="#"){
|
if(txt[i+1]==="#"){
|
||||||
console.log("test");
|
|
||||||
if(txt[i+2]==="#"){
|
if(txt[i+2]==="#"){
|
||||||
if(txt[i+3]==="#"&&txt[i+4]===" "){
|
if(txt[i+3]==="#"&&txt[i+4]===" "){
|
||||||
element=document.createElement("h3");
|
element=document.createElement("h3");
|
||||||
|
@ -108,7 +107,6 @@ class MarkDown{
|
||||||
span.append(element);
|
span.append(element);
|
||||||
}finally{
|
}finally{
|
||||||
i-=1;
|
i-=1;
|
||||||
console.log(txt[i]);
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -129,7 +129,6 @@ class Message extends SnowFlake{
|
||||||
}else if(thing ==="embeds"){
|
}else if(thing ==="embeds"){
|
||||||
this.embeds=[];
|
this.embeds=[];
|
||||||
for(const thing in messagejson.embeds){
|
for(const thing in messagejson.embeds){
|
||||||
console.log(thing,messagejson.embeds);
|
|
||||||
this.embeds[thing]=new Embed(messagejson.embeds[thing],this);
|
this.embeds[thing]=new Embed(messagejson.embeds[thing],this);
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
|
@ -438,7 +437,6 @@ class Message extends SnowFlake{
|
||||||
messagedwrap.appendChild(attach);
|
messagedwrap.appendChild(attach);
|
||||||
}
|
}
|
||||||
if(this.embeds.length){
|
if(this.embeds.length){
|
||||||
console.log(this.embeds);
|
|
||||||
const embeds = document.createElement("div");
|
const embeds = document.createElement("div");
|
||||||
embeds.classList.add("flexltr");
|
embeds.classList.add("flexltr");
|
||||||
for(const thing of this.embeds){
|
for(const thing of this.embeds){
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue