#development

1 messages Β· Page 975 of 1

autumn summit
#

etc.

#

are you working with cogs

north hollow
#

I need help how to make a mute and unmute command

indigo flax
#

u want to know line 17?

autumn summit
#

yes

indigo flax
#

ok

#

do u have glitch

#

@autumn summit

north hollow
#

I need help how to make a mute and unmute command

indigo flax
#

?

#

@autumn summit r u there

#

line 17 is

#

'cogs.poll',

#

@autumn summit ^

autumn summit
#

yes

#

i have glitch

indigo flax
#

ok

#

dms

autumn summit
#

ok

spare iron
north hollow
#

Yes

#

V12.2.0

spare iron
#

U should have stored muted role ID in db, to give that to users

#

Let me tell how to make the role..

north hollow
#

Ah ok

spare iron
#
role = await ctx.guild.create_role(name = 'Muted')
for channel in ctx.guild.channels:
  if channel.type == 'voice':
    await channel.set_permissions(role, speak = False)
  else:
    await channel.set_permissions(role, send_message = False)
#then store the role id to db, and give that to users thats all
north hollow
#

A where do I put that

spare iron
#

In mute command, to setup muted role, if it is not existing.

north hollow
#

I made this code and it did not work

#
client.on('message', message => {
  if(message.channel.startWith('${prefix}clear'))
      if(message.member.roles.some(r=>['ADMIN'].includes(r.name))) {
        message.channel.bulkDelete(100).then(() => {
          message.channel.send("Delete 100 messages.")
          .then (message => {
            message.delete(5000);
          })
        })
      }
      else {
        message.channel.send ("Did you really think you could do that?")
      }
      return;
})
#

@spare iron

#

But if someone can help me pls tell me

spare iron
#

This Is Js, Dude..

earnest phoenix
#

@north hollow
First => no opening or closing brackets for the if check
Second => you used .some() function incorrectly
Third => delete(5000) doesn't work anymore... It's .delete({ timeout: 5000 })

indigo flax
#

hi

#

who good

#

at

#

python

spare iron
#

I am not good But Ask..

vale garden
#

hi

#

i already sent this

#

but

#
const Discord = require('discord.js');
const bot = new Discord.Client();

module.exports = {
  name: 'servers',
  description: "displays all the servers of the bot, for owner's use only",
  execute: (message, args) => {
    message.channel.send(`Serving ${bot.guilds.cache.size} servers: `);
    //message.channel.send(bot.guilds.map(g => g.name).join("\n"));
    console.log("Debuging: " + bot.guilds.cache.map(g => g.name).join("\n"));
  }
}
#

^my cide

#

code

#

the bot.guilds.cache.map didnt work so i logged it and got nothing

#

also for some reason the bot.guilds.cache.size shows 0

digital ibex
#

ur initiating a new client

vale garden
#

even tho it works perfectly in the status

digital ibex
#

thats why its 0

vale garden
#

what does that mena

#

mean

digital ibex
#

read ur code

#

ur creating a new client

vale garden
#

where

#

i dont see anything

digital ibex
#

okay

#

do u see new anywhere?

vale garden
#
TypeError: Class constructor Client cannot be invoked without 'new'
    at Object.<anonymous> (/home/runner/Trade-Bot/commands/servers.js:2:21)
    at Module._compile (internal/modules/cjs/loader.js:1133:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1153:10)
    at Module.load (internal/modules/cjs/loader.js:977:32)
    at Function.Module._load (internal/modules/cjs/loader.js:877:14)
    at Module.require (internal/modules/cjs/loader.js:1019:19)
    at /home/runner/Trade-Bot/index.js:15:21
    at Script.runInContext (vm.js:131:20)
    at Object.<anonymous> (/run_dir/interp.js:156:20)
    at Module._compile (internal/modules/cjs/loader.js:1133:30)
#

this is what happens

#

if you exclude new

digital ibex
#

new = creates an object from a function

#

you'd need message.client

vale garden
#

what

#

how

digital ibex
#

not discord.Clinet

vale garden
#

lol

#

ok

#

now whats message

#

i gotta define it

digital ibex
#

you're going to be creating a new cleint every time, just change new Discord.Client() to message.client

vale garden
#

ok

digital ibex
#

you have defined it, wym?

vale garden
#
const bot = message.client;
#

this?

digital ibex
#

yes

vale garden
#

i need to define message

digital ibex
#

where else do u have message?

#

put it there

vale garden
#

how do i define message

#

i havent defined it anywhere else

digital ibex
#

you've got message.channel.send

vale garden
#
const Discord = require('discord.js');

bot.on('message', async message => {

if (!message.content.startsWith(PREFIX)) return;
const bot = message.client


module.exports = {
  name: 'servers',
  description: "displays all the servers of the bot, for owner's use only",
  execute: (message, args) => {
    message.channel.send(`Serving ${bot.guilds.cache.size} servers: `);
    //message.channel.send(bot.guilds.map(g => g.name).join("\n"));
    console.log("Debuging: " + bot.guilds.cache.map(g => g.name).join("\n"));
  }
}
})
#

this is my code

#

idk what is wrong

digital ibex
#

my dude

vale garden
#

but if the const bot is abiove bot.on

#

ok what is it

#

i feel very dumb rn

#

what is it

digital ibex
#

you need to take some core javascript lessons

vale garden
#

lmao

#

ok

digital ibex
#

and i can't just tell you, also, you're going to get a memory leak or something if thats how ur doing it

earnest phoenix
#

from DiscordAPI.raincord import Discord

#

@slender thistle sorry for the ping sir

#

Have u know about this

#

from DiscordAPI.raincord import Discord

sweet ruin
#

I am having troubles with my vote api code. can anyone help me?
(Please ping me if you can)

steel drum
#

@sweet ruin this belongs in #topgg-api but to quickly help you vote.user is a string containing hte ID of the suer who voted

sweet ruin
#

thanks @steel drum but euhm it doesnt log it when someone votes either

steel drum
#

you should do something like Bot.users.fetch(vote.user)

#

are you sure you're providing top.gg the correct webhook address?

sweet ruin
#

I have "const dbl = new DBL("token here", client);"

#

and it updates the servers

#

@steel drum ^

steel drum
#

im busy

spare iron
#

Should not use free hostings, But there are some,

glitch, heroku, repl.it

torn ravine
#

is there a neat way to store created embeds?

#

also I use heroku and it works fine

#

having all my embeds in the same command file is genuinely starting to look unneat as hell

spare iron
#

Just make some funtions, and call them when needed

torn ravine
#

I just really though I could store them all in a separate file

copper cradle
#

add your embeds into a collection/map

#

and then get the embed when needed

torn ravine
#

ytsr is still being annoying I just don’t get it

copper cradle
#

lol

#

it returns an empty array right?

#

how do you store your commands

hoary lily
#

const Moderation = new Discord.Collection()

#

Anyways can someone help me with polling system that executes command after a certain time?

sweet ruin
#

I am having troubles with my vote api code. can anyone help me?
(Please ping me if you can)
can anyone help me

golden condor
halcyon ember
#

I have this

#
        message.channel.send(embed)
    } catch (error) {
        message.author.send(embed)
        message.channel.send("I wasn't able to send the help embed in this channel, please notify a server admin. I've sent the embed to your DMs instead")
    }```
#

but instead of doing the error when I prevent it from sending the embed it just says error discordapi error missing perms

wheat valve
#

How do you make a channel move to a category that were both created at the same time using discord.js? Basically organize it. Also how do you make it check if the category is already made before making a new one? If that makes sense, ping me so I see your message please!

earnest phoenix
#

my bot keeps showing this error when i run the command


TypeError: args.slice(...).enter is not a function
    at Client.<anonymous> (/home/runner/exciting-pine-clove/index.js:854:30)
    at Client.emit (events.js:322:22)
    at MessageCreateHandler.handle (/home/runner/exciting-pine-clove/node_modules/discord.js/src/client/websocket/packets/handlers/MessageCreate.js:9:34)
    at WebSocketPacketManager.handle (/home/runner/exciting-pine-clove/node_modules/discord.js/src/client/websocket/packets/WebSocketPacketManager.js:105:65)
    at WebSocketConnection.onPacket (/home/runner/exciting-pine-clove/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:333:35)
    at WebSocketConnection.onMessage (/home/runner/exciting-pine-clove/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:296:17)
    at WebSocket.onMessage (/home/runner/exciting-pine-clove/node_modules/ws/lib/event-target.js:120:16)
    at WebSocket.emit (events.js:310:20)
    at Receiver.receiverOnMessage (/home/runner/exciting-pine-clove/node_modules/ws/lib/websocket.js:789:20)
    at Receiver.emit (events.js:310:20)
exit status 1
ξΊ§ ```
sudden geyser
#

To go index.js line 854 of column 30 and you'll see the line. The error means you're trying to slice the arguments then call the enter method, which does not exist.

earnest phoenix
#

it's not an issue with their code i'm blind

#

oh what should i replace it with?

sudden geyser
#

what is calling .enter() supposed to do?

earnest phoenix
#

its a hack command

#

supposed to hack the user

sudden geyser
#

okay but what is calling .enter() supposed to do // what did you expect it to do

#

hack the user isn't really specific.

earnest phoenix
#

its supposed to reply with a hacking message like ('Hacking ${'tohack'}

  let tohack = args.slice(0).enter('');
  message.delete();
  let msg = message.channel.send(`Hacking ${tohack}`)
#

i dont know if that defines it

#

if u need the whole code ill send it

sudden geyser
earnest phoenix
#

okay. I've been writing javascript for 8 years, and I've never heard of array.prototype.enter?

sudden geyser
#

yeah it doesn't exist

earnest phoenix
#

Ah, I see

#

what am i supposed to remove?

#

erm

#

we love a copy pasting sister

#

String.slice(0) should do absolutely nothing

#

then .enter isn't defined either

#

Since string.prototype.enter isn't defined either

#

You should have a huge error in your console, right?

#

yes

#

a really big one

#

Plus, generally args is an array?

#

So slice shouldn't work either

#

ok i removed them

#

and now it says

#

args.enter is not a function

#

ill send the whole code to u

#

in dms

#

please don't direct message me

#

Your issue is that you're trying to call functions that do not exist

#

You should read the mdn docs on what types of array and string functions do what

restive furnace
#

also probably would be better to learn basics first

earnest phoenix
quartz kindle
#

code?

earnest phoenix
#

My bot token is in an env file

#

So its safe

haughty night
#

Because youre using a string

#

And youre picking random from that

#

And then do hilo1+hilo2+etc etc

hexed storm
#

I'm trying to make my bot send a message to a server's 'default' channel if it leaves due to it having more bots than humans. The actual leaving part works fine, not the message command though. Maybe send it to the server owner's dm's? Library is Eris.

sudden estuary
#

Never assume the token is safe....

autumn summit
#

pllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll;'l

#

"mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmddddddddddddddddddddssssssssssssssssss

hexed storm
#
        if (guild.members.filter(m => m.bot).length / guild.members.size >= 0.50) {
            bot.createMessage("There are too many bots on this server! I'm flattered at your collection but have to leave due to my owner (SF) Seagull#2224's requests.")
            logger.info(`Detected bot collection guild '${guild.name}' (${guild.id}). Autoleaving...`);```
quartz kindle
#

the problem is that you're using hilo before defining it, and your embed is static, will always return the same value

#

@earnest phoenix

hexed storm
#

probably missing something obvious

sudden estuary
#

Is it in py(the code in general)?

hexed storm
#

Javascript

sudden estuary
#

I see

quartz kindle
#

which library? eris?

hexed storm
#

Yup! Eris.

quartz kindle
#

bot.createMessage requires a channel ID as first argument

hexed storm
#

I'm sure I forgot to define a channel to send the message to, I'm not sure how to get the default channel for a guild (The join message channel).

quartz kindle
#

there is no default channel

earnest phoenix
#

the problem is that you're using hilo before defining it, and your embed is static, will always return the same value
@quartz kindle umm i defined the numbers then assigned them to other variables

quartz kindle
#

you have to loop over channels and find one that you have permissions to send in

pale vessel
#

you can filter channels that your bot can send messages to but it would be annoying if i were to see it

earnest phoenix
#

Or i can use message.channel.send it fixes everythung for me lol

acoustic kiln
#

How To add Attachments in Embeds And Auto spawning that

discord.js

please help

quartz kindle
#

@earnest phoenix the problem is that you predefined the embed and saved it in a variable

#

if you send that embed just like that, it will always be the way it was when you created it

#

changing the variables used to build it doesnt change the embed after it was built

acoustic kiln
#
    // Create the attachment using MessageAttachment
    const attachment = new MessageAttachment('https://i.imgur.com/w3duR07.png');
    // Send the attachment in the message channel
    message.channel.send(attachment);
  }```

if i use thge command its not working and i want to make this a embed and auto spawnit for req messages
#

plz ping and reply

#

i m beginner so hard stuffs

haughty night
#

@acoustic kiln

weary ridge
earnest phoenix
#

huh js and python look similar

#

thats cool

#

@weary ridge can you post your code

#

like copy it then paste it

weary ridge
#

? why

earnest phoenix
#

so we can see it?

#

like super bruh

quartz kindle
#

@weary ridge what if you do ffmpeg -version in your editor's terminal?

weary ridge
#

@quartz kindle , ffmpeg : The term 'ffmpeg' is not recognized as the name of a cmdlet,
function, script file, or operable program. Check the spelling of the name,
or if a path was included, verify that the path is correct and try again.
At line:1 char:1

  • ffmpeg -version
  •   + CategoryInfo          : ObjectNotFound: (ffmpeg:String) [], CommandNotF 
     oundException
      + FullyQualifiedErrorId : CommandNotFoundException
#

hmmm

tight plinth
#

@weary ridgeffmpeg !== ffmpeg/avconv | ffmpeg/avprobe

weary ridge
#

?

#

thats practically my error

quartz kindle
#

so if your ffmpeg is found in cmd but not in your code editor, you need to restart your code editor and/or your pc

weary ridge
#

wait fr

#

i'm gonna restart brb

#

same error

#

@quartz kindle

#

anyways how come it can download

acoustic kiln
#

@haughty night in that which category sir

#

there are more

chrome cloak
#

I get the error when entering my bot at top.gg. What should I do?

#

?

tight plinth
#

what error

devout wagon
#

are you logged in

earnest phoenix
chrome cloak
#

yea

devout wagon
earnest phoenix
#

Ive switched out the embed for message.channel.send

haughty night
#

@acoustic kiln create embed const exampleEmbed = new Discord.MessageEmbed()
Set your image .setImage('https://i.imgur.com/wSTFkRM.png')
Send the embed message.channel.send(exampleEmbed);

quartz kindle
acoustic kiln
#

@haughty night thanks

haughty night
#

Np, dont forget to define Discord

weary ridge
#

Ok thanks @quartz kindle

balmy knoll
#

In node.js, how can I create a command that shows me the last error in console?

cinder dove
#

What would happen if you try to get a non-existent value with quick.db?

#

It returns undefined?

#

I can't test right now πŸ˜„

earnest phoenix
#

@balmy knoll I don't think you should have bot developer role if you ask a question like that

#

process has serveral error events which you can catch to prevent your bot from going down if it hits an error if that's what you mean

#

But your question is vague

balmy knoll
#

@earnest phoenix I know how to do it, just use a catch right after the action you want to check, but I don't want to catch the error as soon as it occurs. I want to catch it only when I ask for it by command

earnest phoenix
#

"I don't think you should have bot developer role if you ask a question like that" just save it in an array and call the last element of it with your command

#

or if you don't care about any errors except the latest one, just save it as a single variable and change it everytime there is an error

balmy knoll
#

I was just asking to avoid saving it in an array, since I should go back to editing all the commands done so far

earnest phoenix
#

bruh

#

Dude you really should just go back to the basics. Process is a global variable, meaning you can call on it from any file or function and it does the same thing

#

if you have an error handler that catches and saves the uncaughtexceptions and whatnot then you will be golden

balmy knoll
#

Maybe you misunderstood my question. Well, I'll take it easy on my own.

tulip ledge
#

Wait pokecord shut down?

balmy knoll
#

And try to be nicer and less aggressive next time

earnest phoenix
#
process.on('uncaughtException', console.error);
process.on('unhandledRejection', console.error);

These two lines of code will log every error that your process receives, in any file

#

they only need to be there once

sudden geyser
#

Yes, it did.

earnest phoenix
#

I'm sure you can get it to push to an array or keep as a variable somewhere

frail ocean
#

@earnest phoenix Please don't say "I don't think you should have bot developer role if you ask a question like that" in the future, respect some people as they may be earlier on in their coding "career" and maybe haven't messed around with that section yet.

Just be nice. πŸ™‚

earnest phoenix
#

okie

white anvil
#

@balmy knoll if you want a command that shows errors, you should create an array of fired errors and append items to it on error, and then just fetch the most recent one from that array when you use the command

#

or just have a singular stored error if the most recent one is all you care about

earnest phoenix
#

i literally said that

white anvil
#

your code logs them to console...

#

it doesnt store them for fetching in a command

earnest phoenix
#

i specifically said that the example catches every error that node.js receives and that with a smidge of ingenuity, one can do either of those two things

#

I wasn't spoonfeeding them code, I was providing an example of an error handler at work

white anvil
#

πŸ‘

earnest phoenix
#

how to detect if a user voted my bot

#

Dm me

#

:D? No

#

@earnest phoenix Please consume the information in the official API documentation not just with your eyes, but also with your mind, so that you may truly understand the information and not have simply "read it" and remember to study the basics of whatever language which you are writing a bot for so that you can better understand the terminology. Secondly, it is generally frowned upon in programming communities to direct message other users for help or to be asked to be directly messaged

#

i think they gave up reading that

#

question is whether they could even comprehend

versed igloo
#

Is there a way to have a bot respond to a message without @ing the person

spare iron
#

Ofcourse

earnest phoenix
#

yes

weary ridge
#

hey @quartz kindle i just got back home and looked into the website you gave me but i cannot do sudo

versed igloo
#

Than how do I do it because it always @ me

modest maple
#

no linux for you lol

earnest phoenix
#

@versed igloo I unfortunately am not familiar with libraries for bots other than discord.js, however I do believe that the @ing thing you're referring to is message.reply. so id recoumend you use message.channel.send instead

haughty night
#

@versed igloo What do you use? .reply()?

versed igloo
#

Im using discord.js

earnest phoenix
#

@cosmic gorge wrong channel?

haughty night
#

To send the message?

cosmic gorge
#

sorry

haughty night
#

Are you using .reply()

versed igloo
#

So instead of msg.reply I should put msg.channel.send?

haughty night
#

yes

#

That would work

earnest phoenix
#

yes

versed igloo
#

Ok thanks

earnest phoenix
#

Another day is saved, thanks to Logos Rex!

nocturne grove
#

Is there a different between roles and channels in the way that I can't add properties to roles but I can to channels? For cache purposes

lyric mountain
#

Errr....yes

#

Channels have parent category, type, slowmode (or bitrate for vc), etc.

quartz kindle
#

@weary ridge look at answers for windows only, ignore everything that is linux

#

there are many there that are specific for windows

nocturne grove
#

no I mean like with the guild, you can cache the prefix is guild.prefix = '.', but for roles it doesn't work for me

#

of course I don't cache the prefix on the role object

quartz kindle
#

how are you adding it?

nocturne grove
#

counterRole.counter = true;

#

maybe because this is a boolean and otherwise I'm using a string

#

haven't tested that tho

chrome olive
#

discord.js

#

when someone reacts to a specific message, how can I remove the reaction?

quartz kindle
#

@nocturne grove it works for me

weary ridge
#

Yo Tim

quartz kindle
#

however im not sure if role objects are replaced when updated (edit, no they are not replaced)

weary ridge
#

yeh still doesn't work

#

@quartz kindle Is There Alternative's To FFmpeg

#

i've already tried Lavalink thats broken

quartz kindle
#

@nocturne grove you need to add it to the role object you get from guild, not the one you get from member, ie : guild.roles.cache.get(roleid)

#

the roles you get from members may not be linking correctly to their cache

restive furnace
#

i've already tried Lavalink thats broken
@weary ridge its not

quartz kindle
earnest phoenix
#

lavalink isn't the same as ffmpeg

#

lavalink is "all in one" while ffmpeg is only one part of audio streaming, specifically converting audio to discord standard

#

Any free alternatives to storing data in json files

#

if ffmpeg isn't working like its supposed to, then you're using it wrong

nocturne grove
#

okay thanks @quartz kindle, though I don't get them from a member

quartz kindle
#

@earnest phoenix nearly all database systems out there are free and open source, or have a free version

faint osprey
#

Does anyone know how to add an image to an embed field? I see some bots in the testing channel that have small icons next to the "value" property of their fields

nocturne grove
#

I'm getting the role by looping through guild.roles.cache until something turns true

#

so just from the cache I guess

quartz kindle
#

@faint osprey probably unicode emojis

faint osprey
#

@faint osprey probably unicode emojis
@quartz kindle ahhh that makes sense

quartz kindle
#

@nocturne grove it should work then

nocturne grove
#

hmm will try again

#

@quartz kindle it's working if I do it myself using eval

#
console.log('hi');
guild.roles.cache.get(counterRole.id).counter = true;```
I tried it without getting the role again too, I know this is more work
It's loggging the `hi`

after that, this (just did all roles to be sure):
```js
.eval message.guild.roles.cache.map(r => r.counter);``` 
returned an array with `undefined` elements
#

@quartz kindle do you know what's going wrong?

quartz kindle
#

it should return undefined for all roles except the one where you set it

feral aspen
#

Hello

#

I'd like someone to help my with a coding

#

So recently i made a money system and it works really well.. Today I made the a!pay command and people were successfully being able to pay others

#

but people are paying sometimes letters and not numbers

#

how can I make it only numbers?

slender thistle
#

Check if input consists of only numbers

quartz kindle
#

which language?

harsh hull
slender thistle
#

try again later

#

Discord is slowly dying

feral aspen
quartz kindle
#

javascript has isNaN(n) and Number.isInteger(n) functions to find out if a value is a number or not

feral aspen
#

I cant upload photo

quartz kindle
#

parseInt() can also be used, you just need to check if it returns NaN

feral aspen
#

Nvm

#

Btw.. can you check how can I fix.

autumn summit
#

anyone else have error 500 - internal server error

restive furnace
#

me

feral aspen
#

but people are paying sometimes letters and not numbers
@feral aspen how can i fix it?

quartz kindle
#

i told you how

restive furnace
#

javascript has isNaN(n) and Number.isInteger(n) functions to find out if a value is a number or not

feral aspen
#

so what do I add and where?

#

do you mind specifying me the code?

earnest phoenix
#

Ya I made he bot online

quartz kindle
#

isnt it self explanatory?

feral aspen
#

isnt it self explanatory?
@quartz kindle sorry, im a beginner

weary ridge
#

ummmm

slender thistle
#

if input is not a number, don't execute the code

earnest phoenix
#

Help Error fetching aplication

quartz kindle
#

you use isNaN(value here) to check if a number is NaN (Not a Number), if it is, then return an error message instead of continuing the code

weary ridge
#

whats going on with discord?

quartz kindle
#

pretty much the same way you did the rest of your code

weary ridge
#

Discord literally died

#

i can't start bot anymore 😭

earnest phoenix
#

WTF WERE ARE MY BOTS

quartz kindle
#

lmao

hasty sparrow
#

API response time shot up to >1s

weary ridge
#

BRUH DISCORD

earnest phoenix
#

sorry duplicated text

weary ridge
#

is killing ME

nocturne grove
#

it should return undefined for all roles except the one where you set it
@quartz kindle yeah I thought the same, but it doesn't 🀷

Maybe I should just remove that little cache, it's almost never used

weary ridge
#

is anyone else sending images and they taking so long to send

feral aspen
#

Yes\

#

Me too

quartz kindle
#

well my bots are still working

lusty quest
#

someone else with gateway issues here?

weary ridge
#

THERE is some bug

#

its discord

#

lol

earnest phoenix
lusty quest
#

i have 41k ms to the gateway

weary ridge
#

who ever had there bots still running are lucky

lusty quest
#

my bot crashed bcs the heartbeat missed

weary ridge
#

lol

earnest phoenix
#

My bots are off WTF

weary ridge
#

SAME

#

bruh

#

help\

quartz kindle
#

relax

weary ridge
#

discord ded

quartz kindle
#

its just discord having another one of those days

#

it happens all the time

weary ridge
#

i cant be bothered lol

lusty quest
woeful pollen
#

Help my bot isn't loading

earnest phoenix
woeful pollen
#

It's not starting

earnest phoenix
#

my bots 😭

weary ridge
#

HOW FUN LOL

lusty quest
#

@woeful pollen discord API has a error

quartz kindle
#

relax people, its just discord having issues

hasty sparrow
#

Patience

woeful pollen
#

Ah phew

lusty quest
#

just relax they will fix it

weary ridge
#

Tim lol

earnest phoenix
#

my bots are dead

#

😭

#

rip

tulip ledge
#

My bot ded

#

What happened

earnest phoenix
#

What happened
@tulip ledge discord are ded

lusty quest
#

api has a stroke

feral aspen
lusty quest
#

on the stat page the api got a 1kms response time rn

feral aspen
hasty sparrow
#

You're like the 3rd person sending the same pic, we get it

weary ridge
#

Even the images take 6 hours to load

lusty quest
#

the same person sending the same pic 3 times

tight plinth
#

plz stop sending screenshots of dev portal being down

#

plz

slender thistle
#

^

weary ridge
#

i like it how when our bots don't work we instantly check dev

woeful pollen
#

Loo

quartz kindle
#

not really the right place to check lmao

lusty quest
#

i just enabled debug on my bot. now i know why it doesnt work no need to check a webpage that is buggy sometimes

earnest phoenix
weary ridge
#

i mean it did sorta let us know something wrong lol

#

but how come bots that were already online don't get affected?

lusty quest
plush holly
#

Why don't my bots come on?

lusty quest
#

my bot was online and crashed bcs the heartbeat missed

hasty sparrow
#

@plush holly Discord issues rn

quartz kindle
#

people are already creating issues in the discord github lmao

weary ridge
#

yeh i already checked the web

lusty quest
#

wtf?

weary ridge
#

LOL

earnest phoenix
quartz kindle
weary ridge
#

my other bot works perfectly fine lol

plush holly
#

When can bot's on again?

hasty sparrow
#

Once it's fixed

plush holly
#

Okay

earnest phoenix
#

: (

quartz kindle
#

wdym clean cache

earnest phoenix
#

I explain to you

#

my bot is paid all the time and the cpu is 100%

#

on glitch

weary ridge
#

whoah glitch looks cool

lusty quest
#

i dont think thats a cache issue

quartz kindle
#

how big is your bot?

#

how many guilds/servers

#

do you use intents?

#

is it the free glitch plan? how much memory do you have and how much does your bot use?

earnest phoenix
#

do you use intents?
@quartz kindle I pass you the link of the glitch I trust you

weary ridge
quartz kindle
#

there's no such thing as the best

weary ridge
#

welp

quartz kindle
#

you get what you pay for

lusty quest
#

currently i run on a Digitalocean VPS and will switch to a kubernetes in the future if i keep growing

slender thistle
#

I haven't had issues with SkySilk personally so catshrug

woven sundial
#

Glitch is so nice to start cause you can share projects invites SirMaxShrug

quartz kindle
#

i still havent had issues on galaxygate personally so πŸ€·β€β™‚οΈ

lusty quest
#

i dont trust everything that offers hardware for free. there has to be a catch

quartz hill
#

(node:29) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'size' of undefined
at DBLAPI.postStats (/app/node_modules/dblapi.js/src/index.js:149:79)
at Client.<anonymous> (/app/node_modules/dblapi.js/src/index.js:54:14)

#

😦

earnest phoenix
#

._.XD

weary ridge
#

REEE how are these ppl still using there bot's lol

quartz kindle
#

@earnest phoenix your code is very unoptimized and glitch's cpu is bad. besides rewriting your entire bot, what you can do is enable gateway intents to remove presence updates

#

that should massively reduce cpu usage even with your unoptimized code

earnest phoenix
#

thnks you very much

#

amigo

brittle copper
#

Couldn't find the right place, so I hope it's okay to ask here.

#

Considering the CDN, and apparently the API have decided to hang themselves, is anyone able to get their bot online?

earnest phoenix
#

tim

brittle copper
#

I tried to start my bot, and, no dice.

earnest phoenix
#

How to enable gateway attempts to remove presence updates

quartz kindle
#

intents

#

i sent you the link

earnest phoenix
#

okok

lusty quest
#

API seems to be fine again

weary ridge
#

@brittle copper Nobody can get there bot online but some can hmmm

brittle copper
#

Yeah, like I said, the CDN and the API have decided to neck-rope themselves

earnest phoenix
weary ridge
#

lel

earnest phoenix
brittle copper
quartz kindle
#

apparently none of my bots went down lul

brittle copper
#

Well I think it was more for bots that tried to access the gateway after the fact

#

if your bot was already online, it was fine

hasty sparrow
#

Poor Dyno

weary ridge
#

lol

hasty sparrow
#

~100 shards offline

quartz kindle
#

100? more like 1000

weary ridge
#

1,000,000

white anvil
#

their status suggests 62 shards are down

#

which i doubt

weary ridge
#

BOTS ARE BACK UP AGAIN

#

les goooo

errant remnant
#

my bot never went down

autumn summit
#

cool

feral aspen
#

Hi Guys.

#

I made a money system for my bot and it was working really well. I made a pay command and people were able to pay money! I noticed people were paying letters and that ruins the database.. can you help me by telling me whats the command to make it only numbers?

#

Can you just tell me the command please?

earnest phoenix
#

what are bot shards?

mossy vine
#

a shard is basically another websocket connection to discord. it handles up to 2500 guilds

earnest phoenix
#

oooh

#

does anyone have any postgresql tutorials?

mossy vine
#

i dont like automatic embeds

earnest phoenix
#

thanks

#

i wanted to make a money and level system

mossy vine
#

yeah an sql database will work perfectly for that

robust moth
mossy vine
#

remove this.

#

actually wait no what the fuck are you doing

weary ridge
#

lol

earnest phoenix
#

xD

#

godd i hate that

#

xD is cancer

robust moth
#

Function undefined

earnest phoenix
#

just define it

#

Does anyone know how to make it so the bot displays how many server it's in on the status?

slender thistle
#

which library?

earnest phoenix
#

Ah wait nvm

stuck scaffold
#

how to find out how many people jthe joined server in the last 1 minute?
(djs)

feral aspen
#

I made a money system for my bot and it was working really well. I made a pay command and people were able to pay money! I noticed people were paying letters and that ruins the database.. can you help me by telling me whats the command to make it only numbers?

#

Please just tell me the command and where to add it...

hasty sparrow
#

You've been told multiple times already

feral aspen
#

Im really sorry.. but I can't what's the command to add and where.

#

can't get*

slender thistle
#

if input is not a number, don't execute the code

javascript has isNaN(n) and Number.isInteger(n) functions to find out if a value is a number or not

stuck scaffold
#

how to find out how many people joined the server in the last 1 minute?
(djs)

vale garden
#

yo

earnest phoenix
#

ΓΏo

#

@stuck scaffold filter out users whose joined at prop difference from the current date is bigger than a minute

vale garden
#

does anyone know how to define bot without starting a new client

earnest phoenix
#

wym

vale garden
#

like see

#

const Bot = new Discord.Client()

#

starts a new client

#

so how do i define it

#

without doing that

earnest phoenix
#

it doesn't start it

#

^

#

and you can't have something out of nothing

#

bot is just a variable

#

var bot; = empty variable

vale garden
#

someone told me

earnest phoenix
#

you don’t have to use bot for a client

vale garden
#

that it starts a new client

#

ik

earnest phoenix
#

(client).login(token) starts the client

vale garden
#

idk some guy told me

#

lol

#
const Discord = require('discord.js');
const bot = new Discord.Client()


module.exports = {
  name: 'servers',
  description: "displays all the servers of the bot, for owner's use only",
  execute: (message, args) => {
  const guildNames = bot.guilds.cache.map(g => g.name).join("\n")
  message.channel.send(guildNames)
  }
}

digital ibex
#

@vale garden i told u

vale garden
#

yeah ik

digital ibex
#

my dude

vale garden
#

can you not say my dude all the time

#

its kinda annoying

digital ibex
#

i already told u and told u to learn js

vale garden
#

lol

digital ibex
#

you can't tell me what to do mmLol

vale garden
#

well

#

i just did lol

night tartan
#

LOL

vale garden
#

just tell me plz

digital ibex
#

no

vale garden
#

lol

digital ibex
#

learn js

#

my dude

#

:)

earnest phoenix
#

learn js

#

my dude

vale garden
#

bruh

#

bruh

#

bruh

earnest phoenix
#

don’t spam my dude

vale garden
#

omg

#

stop

earnest phoenix
#

aight I will

#

sorry lol

vale garden
#

i have finished both anidiots guide

#

and the discord.js guide

#

so do i really have to

digital ibex
#

the guide shows u how to do it

vale garden
#

it doesnt

earnest phoenix
#

discord.js guide != learning js

digital ibex
#

yes it does, i also told u

vale garden
#

see

#

the js guides

#

are way larger than the discord.js guides

#

so

#

i cant

#

lol

#

just tell me whats wrong plz

earnest phoenix
#

thats why you need to learn the js guides

vale garden
#

ik but

#
const Discord = require('discord.js');
const bot = new Discord.Client()


module.exports = {
  name: 'servers',
  description: "displays all the servers of the bot, for owner's use only",
  execute: (message, args) => {
  const guildNames = bot.guilds.cache.map(g => g.name).join("\n")
  message.channel.send(guildNames)
  }
}

#

how is this

#

an empty message

digital ibex
#

u had it right the first time

#

idk why ur doing this

vale garden
#

its literally the same thing

#

i just made a constant

digital ibex
#

:wowcringe:

vale garden
#

bruh

quartz kindle
#

why are you creating a new bot client

digital ibex
#

im trying to tell you w/o spoonfeeding

quartz kindle
#

if you do new Discord.Client() that creates a new instance of the bot client, completely separate from your bot

#

like if you wanted to run 2 bots in the same file

#

this new client is not logged in, so all its structures are empty

vale garden
#

i already know that

#

my question is

#

how do i not do that

quartz kindle
#

first of all remove that line

#

second, you can access the client from any discord.js structure

#

for example, a message (message.client)

#

so basically all you need to do is message.client.guilds.cache....etc

vale garden
#

ok

#

nice it worked

#

thx

hexed ravine
#

Does anyone want a free mousepad from amazon, for me to get the product advertising api?

earnest phoenix
#

no

earnest phoenix
#

how i can optimize this

#

{
"//1": "describes your app and its dependencies",
"//2": "https://docs.npmjs.com/files/package.json",
"//3": "updating this file will download and update your packages",
"name": "hello-express",
"version": "0.0.1",
"description": "A simple Node app built on Express, instantly up and running.",
"main": "server.js",
"scripts": {
"start": "node bot.js"
},
"dependencies": {
"express": "^4.17.1",
"weez": "^1.5.7",
"youtube-node": "^1.3.3",
"ffmpeg-static": "^4.2.0",
"@discordjs/opus": "^0.3.2",
"youtube-search": "^1.1.4",
"ytdl-core": "^2.1.1",
"node-opus": "^0.3.3",
"random-puppy": "^1.1.0",
"common-tags": "^1.8.0",
"fs": "^0.0.2",
"chokidar": "^3.4.0",
"figlet": "^1.4.0",
"util": "^0.12.3",
"isgd": "^1.1.3",
"marioapi": "^7.0.0",
"oakdex-pokedex": "^0.4.5",
"pokedex-promise-v2": "^3.1.1",
"math-expression-evaluator": "^1.2.22",
"discord-cards": "^1.2.0",

#

"enmap": "^5.2.4",
"genius-api": "^0.4.1",
"lyricist": "^2.2.2",
"randomstring": "^1.1.5",
"superagent": "^5.2.2",
"overwatch-stats-api": "^2.1.0",
"moment-duration-format": "^2.2.2",
"moment": "^2.25.0",
"google": "^2.1.0",
"sqlite3": "^4.2.0",
"ytdl-core-discord": "^1.2.0",
"meowdb": "^2.0.7",
"snekfetch": "^4.0.4",
"mech-aki": "^0.0.5",
"megadb": "^3.2.0",
"node-fetch": "^2.6.0",
"iso-639-1": "^2.1.0",
"discord.js-commando": "^0.10.0",
"quick.db": "^7.1.1",
"hastebin-paste": "^1.3.1",
"discord.js": "^12.2.0",
"mz": "^2.7.0",
"request": "^2.88.2",
"request-debug": "^0.2.0",
"request-promise": "^4.2.5",
"standard": "^14.3.1",
"uws": "^99.0.0",
"better-sqlite3": "^7.0.1",
"zlib-sync": "^0.1.6",
"weather-js": "^2.0.0",
"weather.js": "^0.1.0",
"marsnpm": "^0.4.5",
"request-promise-native": "^1.0.8",
"jimp": "^0.10.3",
"fs-extra": "^9.0.0",
"youtube-dl": "^3.0.1",
"simple-youtube-api": "^5.2.1"
},
"engines": {
"node": "12.x"
},
"repository": {
"url": "https://glitch.com/edit/#!/hello-express"
},
"license": "MIT",
"keywords": [
"node",
"glitch",
"express"
]

}

#

jesus christ

#

i need to optimize this

#

how tf do you optimise a .json file

#

jesus fucking christ how many dependencies do you have

#

holy

#

My problem is use a lot of CPU and I need that we do not use as much

timber linden
#

Can someone help me make a bot like better antispam

hasty sparrow
#

"snekfetch": "^4.0.4"
"node-fetch": "^2.6.0"
Pretty sure you don't need both

golden condor
#

plus snekfetch is depreceated

hasty sparrow
#

OML you have superagent as well

woeful pollen
#

What is an API ban

golden condor
#

being rate limited or permanately ip banned

woeful pollen
#

Is there a way to get aroundit

hasty sparrow
#

My problem is use a lot of CPU and I need that we do not use as much
Doubt reducing the amount of used dependencies would help with that, review your code instead

quartz kindle
#

@earnest phoenix remove everything that you dont actually use in your code lol

woeful pollen
#

If I get API banned will the bot still work or not

earnest phoenix
#

tim my bot use all

#

xd

modest maple
#

@woeful pollen nop

hasty sparrow
#

If the bot is banned, how would it still work?

modest maple
#

If you get API banned you bot is yeet

woeful pollen
#

O frick

modest maple
#

If you get perma banned

#

Your bot no longer exists

#

neither will you

woeful pollen
#

:o

#

I'm afraid I might get API banned

hasty sparrow
#

Depends on what you're doing

woeful pollen
#

Using a Google translate api

modest maple
#

what about it

woeful pollen
#

To translate every message sent ever into dutch

modest maple
#

google's api has nothing todo with discords

hasty sparrow
#

Not going to receive a Discord ban for using a Google product

modest maple
#

so your fine in that regard

woeful pollen
#

Ohh

#

Phew

modest maple
#

But you will get suspended from Google's stuff for 24 hours if you hit their ratelimits

hasty sparrow
#

Might get rate-limited/blocked by Google if you have too many messages

slender thistle
#

unless you send a translated version of a message to Discord on each message

modest maple
#

also the api allows a maximum of 2 Mill characters

quartz kindle
#

@earnest phoenix i seriously doubt your bot uses all of that

modest maple
#

which you hit very fucking quickly

woeful pollen
#

Ah

#

Flip

#

also the api allows a maximum of 2 Mill characters
@modest maple
Ever?

modest maple
#

per day i think?

earnest phoenix
#

As I know what you do not use the bot, they are myportalbot codes

woeful pollen
#

Oh that's fine

modest maple
#

might be longer

#

I remember hitting it within an hour

woeful pollen
#

:o wtf were you doing

modest maple
#

just testing some stuff

#

so you can imagine the ratelimit is very low

#

and very quick to nuke you

woeful pollen
#

Is it possible to increas the ratelimit

modest maple
#

yes

#

pay Β£500 a month for the api

#

:P

woeful pollen
#

Oh wow

#

Can it be pirated

modest maple
#

ah no

#

not 2 mil

#

500k

#

500k characters

#

and thats in total

woeful pollen
#

Oh shoot

#

Forever

misty sigil
#

any idea how i could make a calculator command

modest maple
#

Would explain why im still unable to use the translate api

#

lol

torn ravine
#

@misty sigil evaluation works like a calculator

misty sigil
#

but i have to filter it

#

or else, very bad will happen

earnest phoenix
#

easy way - use a lib

misty sigil
#

huh

earnest phoenix
#

harder way - write a regex exp to parse mathematical expressions

misty sigil
#

never thought of that

hasty sparrow
#

@modest maple Pricing is per month, so if I'm reading this correctly, you should have a quota of 500k chars per month

modest maple
#

Id like to see you run that on a bot lol

woeful pollen
#

Would it be possible just to make your own translation service

hasty sparrow
#

Uh no

misty sigil
#

i'd rather just be a lazy and get the library

earnest phoenix
#

yes

#

however that's unrealistic

quartz kindle
#

you'd need an offline translation software

#

and hook it up with some code

#

if said software supports it

modest maple
#

theres a reason why google charge $20 per Million characters

earnest phoenix
#

it could be way less

quartz kindle
#

besides, google isnt the only translation api out there

earnest phoenix
#

their target is just large companies

quartz kindle
#

there are probably many others

#

which are likely cheaper

modest maple
#

yeah

#

tbh the user google translate limit is massive

#

When i ran out on their api i just scraped the normal version

quartz kindle
#

everything google is expensive af

modest maple
#

cuz companiesℒ️

quartz kindle
#

i used to use their geocoding apis

topaz fjord
#

just like make a bunch of api keys and cycle

lyric mountain
#

yandex has free translating api

#

and is quite decent

quartz kindle
#

i switched to mapbox and get 3 times higher rate limits per month for free lmao

earnest phoenix
#

or you can exploit their $300 trial and the fact that they don't deny duplicate cards

quartz kindle
#

they dont?

#

holy

modest maple
#

they do now

earnest phoenix
#

do they?

modest maple
#

not on the first few accounts

#

but yes they do eventually catch up now

lyric mountain
earnest phoenix
#

i've been using that method for the past 3 years to host a minecraft server on a powerful vm

#

lol

quartz kindle
#

lmao

#

ping it regularly

modest maple
#

lol

#

times that wont even work

#

glitch is starting to bite the bullet

earnest phoenix
#

discord already took a stance against heroku and glitch

#

they banned a fuck ton of ips

modest maple
#

They'll keep doing it

#

people use them for spam bots etc...

earnest phoenix
#

this is why we can't have nice things

#

selfbots were allowed until people started utilizing them for spamming and raiding

topaz fjord
#

can discord keep doing that

earnest phoenix
#

how do i copy a message and cut of the prefix

topaz fjord
#

fuck heroku and glitch

lyric mountain
#

text.replace(prefix, '')

#

@earnest phoenix ^

earnest phoenix
#

ok

#

use slice

#

it's more performant

#

since you're checking for a prefix

lyric mountain
#

@daring quiver [some text](some url)

acoustic kiln
#

dudes ihave a doubt

lyric mountain
#

this will create the blue text

acoustic kiln
#

is the embed doesnt need a title?

modest maple
#

no

acoustic kiln
#

just description

#

coz im making pokecord like bot

modest maple
#

you dont need any

#

oh yay yet another pokecord copy

acoustic kiln
#

here i get some helps tbh

lyric mountain
#

the embed requires at least ONE field

earnest phoenix
#

uh

#

it doesn't?

lyric mountain
#

be it author, title, description, etc

earnest phoenix
#

fields are optional

lyric mountain
#

by field I mean text field

#

not actual field

digital ibex
#

hi, why is my bot coming online? its connecting to the database and the file the event is in loads but doesn't do anything? my code:

earnest phoenix
#

a property?

digital ibex
#
module.exports = (client) => {
    const channel = require('../../config/channels').bot;
    client.createMessage(channel, {
        embed: {
            title: 'Bot is now online.',
            footer: { text: 'timestamp' },
            timestamp: new Date()
        }
    });
    console.log('bots online my dudes');
};
earnest phoenix
#

it still doesn't

#

you can send an empty embed

lyric mountain
#

afaik you can't send empty embeds

slender thistle
#

You can

earnest phoenix
#

would you like to see some black magic

daring quiver
#

I know little english

lyric mountain
#

like, you can if you add a content-less title or whatever

#

but it's technically not empty

acoustic kiln
#

.setFooter("This is the footer text, it can hold 2048 characters", "http://i.imgur.com/w1vhFSR.png")

can i only add that and a description

and how to make it auto spawn it for a req messages needed

slender thistle
daring quiver
#

a i did this

acoustic kiln
#

will the png looks bigger

#

can someone tell me

timber linden
#

E

lyric mountain
#

a i did this
@daring quiver only embeds can have url texts

timber linden
#

Who knows how to make a betterantispam bot

daring quiver
#

hmm i can't understand

#

i know a little english

earnest phoenix
timber linden
#

What do you use to enter the code

earnest phoenix
oak pelican
#

How Can I Online My Bot

daring quiver
#

can i write here or Do I need a bot

oak pelican
#

Oh Thank you

earnest phoenix
#

stop

#

copypasting code

#

in here

timber linden
#

Kk

true ravine
#

Bearing in mind I haven't a clue how shards work (due to lack of necessity so far) is it possible to run one shard on one machine and another shard on another machine etc?

quartz kindle
#

yes

true ravine
#

Wow epic

#

Thank you

#

Ig a music bot for example could provide reigonal voice then?

#

If they wanted

quartz kindle
#

no

true ravine
#

Ah okay

quartz kindle
#

you have no control over how shards are organized

timber linden
#

O

quartz kindle
#

which guilds go to which shard

true ravine
#

Oh I see, I wouldn't need to organise them anyway it was just a theory

timber linden
#

So if I wanted to get my bot to add it to a server how would I do that

true ravine
#

Perhaps use google?

earnest phoenix
#

what is it

timber linden
#

A antispam bot

earnest phoenix
#

a bot cannot invite other bots

quartz kindle
#

@true ravine actually, it could be possible

#

but it would be pretty complex

ancient lichen
#

hey guys, i'm having problems editing my bot for music reproduction, i'm searching for an npm package that would work like ytld core. any suggestions? (i'm trying to change it cause 429 error is s**t)

timber linden
#

I mean

#

Inviting my bot

#

To my server

true ravine
#

@quartz kindle Yeah thankfully I won't need to (as I don't have a music bot lul) but thank you anyway

earnest phoenix
#

use abal's permission calculator

timber linden
#

K

daring quiver
#

@lyric mountain
@earnest phoenix i'm using discord-js advanced can i do this

earnest phoenix
#

probably

#

i don't know

quartz kindle
#

discord.js advanced?

true ravine
#

Discord.js pro max

earnest phoenix
#

DLC

true ravine
#

Loot box

quartz kindle
#

lmao

timber linden
#

Ugh

#

Forgot my client id

earnest phoenix
#

you don't need to remember it lol

#

it's on your app page

copper cradle
#

the developer portal literally has a perm calculator

timber linden
#

Oh

copper cradle
#

and Invite generator

daring quiver
#

can i send link

discord.js advanced?
@quartz kindle

hasty lotus
#

hey, i've made a simple express server (with nodejs), that i'm hosting on a vps, but when i got on the url with the defined port the page just keeps loading but doesn't display anything (after 5 minutes my browser displayed the "page not found/not internet connection" page). Do i need to configure anything else than just the server.js file ?

copper cradle
#

if you don't make a route it should simply return a 404

#

did you get the correct ip?

hasty lotus
#
const express = require("express")
const path = require("path")

const app = express()

app.get("/", (req, res) => {
    res.send("Ok !")
})

app.listen(5000, () => console.log(`Started on :5000 !`))```
#

it's all for the moment :/

timber linden
#

Tried to make a bot on mobile pc tome

hasty lotus
#

did you get the correct ip?
@copper cradle yep

timber linden
#

time

quartz kindle
#

@daring quiver send in dm

copper cradle
#

@hasty lotus weird

hasty lotus
#

yep :c

copper cradle
#

you didn't forget about the port right

hasty lotus
#

no

copper cradle
#

hmmmm

hasty lotus
#

if i forgot the port it would have sent me to the homepage

#

there is already a website on the vps in the /var/www/html folder

copper cradle
#

un m

quartz kindle
#

does your vps require opening ports in some firewall?

hasty lotus
#

does your vps require opening ports in some firewall?
@quartz kindle i don't think so

#

what is the command to check ?

#

(it has ubuntu 18.04)

quartz kindle
#

which hosting is it?

hasty lotus
#

ovh vps

copper cradle
#

Βͺ

hasty lotus
#

:c

timber linden
#

Does anyone here use grasshoper

quartz kindle
#

ah nvm thats only for dedicated servers

hasty lotus
#

hm ok

quartz kindle
#

try making a curl request from inside the vps

hasty lotus
#

how ?

#

sry i'm a quite new dev :/

north hollow
#

can someone help me for my homework jk

hasty lotus
lyric mountain
#

@lyric mountain
@earnest phoenix not empty thoLucyShrug

earnest phoenix
#

it is

north hollow
earnest phoenix
#

only the color prop is set

#

because how is the client supposed to know which color to use

lyric mountain
#

Yeah, so it has a property

earnest phoenix
#

the actual embed is empty

#

there's no content in it

lyric mountain
#

It's just content-less

timber linden
#

Oh gish

lyric mountain
#

But not empty

timber linden
#

I figured I just don't know how to Save it

#

3 hours of a waste.

earnest phoenix
#

and libs automatically set the color prop internally so you can send an empty embed

#

without setting anything

timber linden
#

I use spck editor

lyric mountain
#

Yes, ik

#

But technically it's still not empty

timber linden
#

When I try to play my script it says error null

#

Any help?

amber fractal
#

@hasty lotus try sudo ufw status my ovh vps came with ufw on it, maybe yours did

hasty lotus
#

k

#
Status: active

To                         Action      From
--                         ------      ----
22/tcp                     ALLOW       Anywhere                  
80/tcp                     ALLOW       Anywhere                  
443/tcp                    ALLOW       Anywhere                  
10000:20000/udp            ALLOW       Anywhere                  
10000/udp                  ALLOW       Anywhere                  
22/tcp (v6)                ALLOW       Anywhere (v6)             
80/tcp (v6)                ALLOW       Anywhere (v6)             
443/tcp (v6)               ALLOW       Anywhere (v6)             
10000:20000/udp (v6)       ALLOW       Anywhere (v6)             
10000/udp (v6)             ALLOW       Anywhere (v6) ```
#

is it good sign ?

#

or not ?

#

x)

amber fractal
#

Well it means the firewall is on

hasty lotus
#

what is the command to stop it ?

amber fractal
#

And they opened 10000 to 20000 for me reason

hasty lotus
#

ufw stop ?

timber linden
#

I'm trying to make betterantispam for people on discord but when I play it says error null

amber fractal
#

No, dont stop it

#

The firewall is good

hasty lotus
#

k

timber linden
#

I'm trying to stop the script

amber fractal
#

Just open the port you need opened

hasty lotus
#

how ?

amber fractal
#

sudo ufw allow PORT

hasty lotus
#

k

#

ok nice it work ty so much πŸ˜„

amber fractal
#

@timber linden you can get help here, you dont nees to dm me

timber linden
#

Ok

#

So when I made the script for public

#

That you can edit etc

digital ibex
#

hi

#

does anone know why im getting this error: TypeError: guildSettings.findOne is not a function ? guildSettings is:

timber linden
#

As I try to play it

digital ibex
#

const guildSettings = require('../../models/guild');

timber linden
#

It is error null

digital ibex
#

wait, i fixed it nm

timber linden
#

No help??

earnest phoenix
#

You haven't given the code in a sourcebin so how would we help?

misty sigil
#

how do i make

#

a vote command

dapper compass
#

Hi, do anyone use imgur to save his bots embed images ?
because mine sometimes sends the embed without images and I think that it's bcs of imgur..

torn ravine
#

I get my imgur image using inspect element

dapper compass
#

Huh?

torn ravine
#

oh i think you're using the embed feature wrong

slender thistle
#

or probably because of Discord

dapper compass
#

hm ? πŸ˜”

slender thistle
#

It's either imgur or Discord here

dapper compass
#

But my pictures that are in images.unsplash never got problems

torn ravine
#

I was thinking that he didn't define an embed

dapper compass
#

I was thinking that he didn't define an embed
@torn ravine Oh that's not the problem!

slender thistle
#

If the message was posted just fine, that's not the issue

torn ravine
#

hold on

dapper compass
#

For example :

#

This is an embed stored in my DB

#

With the title, text and imgur link

#

And sometimes like today, the pic is missing and it's the same for the rest of the images stored on imgur

timber linden
#

Ok

#

My bot works but I don't know how to play the script

torn ravine
#

@timber linden explain

timber linden
#

Basically

#

The script works

#

But I don't know how to play it

torn ravine
#

ok what is the script

dapper compass
#

Language?

timber linden
#

Script is

#

Imam get paste bin

#

I'm just new to making bota

earnest phoenix
#

Seems like Discord does something funky with the embed images sometimes. I got around it by adding a link to it and saying "Image missing? Click [x]".

timber linden
#

I can't help because I'm new to making bots.

hoary lily
#

I need ideas tho. Help me bruh

timber linden
#

My bot script