mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 22:23:03 -04:00
remove console logs
This commit is contained in:
parent
2ea818f30f
commit
c051946d89
3 changed files with 0 additions and 4 deletions
|
@ -19,7 +19,6 @@ module.exports = {
|
||||||
if(!args.text) args.text = ""
|
if(!args.text) args.text = ""
|
||||||
try {
|
try {
|
||||||
let mkswt = await flag(image)
|
let mkswt = await flag(image)
|
||||||
console.log(mkswt.body)
|
|
||||||
return editOrReply(context, { content:"ww", files: [{
|
return editOrReply(context, { content:"ww", files: [{
|
||||||
filename: "makesweet.gif",
|
filename: "makesweet.gif",
|
||||||
value: mkswt.body
|
value: mkswt.body
|
||||||
|
|
|
@ -18,8 +18,6 @@ module.exports = {
|
||||||
let image = await getRecentImage(context, 50)
|
let image = await getRecentImage(context, 50)
|
||||||
if (!image) return editOrReply(context, { embeds: [createEmbed("warning", context, "No images found.")] })
|
if (!image) return editOrReply(context, { embeds: [createEmbed("warning", context, "No images found.")] })
|
||||||
|
|
||||||
console.log(image)
|
|
||||||
|
|
||||||
let ocr = await googleVisionOcr(context, image)
|
let ocr = await googleVisionOcr(context, image)
|
||||||
|
|
||||||
if(ocr.response.body.text.length == 0) return editOrReply(context, { embeds: [createEmbed("warning", context, "No text detected.")] })
|
if(ocr.response.body.text.length == 0) return editOrReply(context, { embeds: [createEmbed("warning", context, "No text detected.")] })
|
||||||
|
|
|
@ -86,7 +86,6 @@ module.exports.getRecentVideo = async function(context, limit) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function validateAttachment(attachment, type){
|
function validateAttachment(attachment, type){
|
||||||
console.log(attachment)
|
|
||||||
let allowedTypes = attachmentTypes[type]
|
let allowedTypes = attachmentTypes[type]
|
||||||
if (attachment.contentType && allowedTypes.includes(attachment.contentType)) { // discord attachment
|
if (attachment.contentType && allowedTypes.includes(attachment.contentType)) { // discord attachment
|
||||||
return true
|
return true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue