#development

1 messages · Page 1652 of 1

lyric mountain
#

why don't u just filter empty strings?

pale vessel
lyric mountain
#

token leak

#

remove the image

#

quick

pale vessel
#

that doesn't look fun to code on at all

eternal osprey
#

why are you coding on mobile?

pale vessel
#

that's literally hell

lyric mountain
#

welp, better if you regen those tokens now

pale vessel
#

save up

umbral zealot
#

Go reset your youtube and discord token, right now

lyric mountain
#

@vital void the image, remove the image and regen the tokens

rustic nova
#

@vital void please reset your token CatThumbsUp

#

before continuing to ask for support

pale vessel
#

stop deleting your messages

lyric mountain
#

so, send the image again but this time redact/blur/censor the code

deft lotus
#

hello

lyric mountain
#

or send in a codeblock

eternal osprey
#

is there any way to actually filter by text? I might be stupid, but can i like do: array.filter(item == text)

lyric mountain
#

which is better

umbral zealot
#

The error was about port 3000 already being in use, so, the problem is that there's 2 web servers on the same port.

eternal osprey
#

oh so i was rigth! Thanks.

cinder patio
#

well not fully see the message avoce

pale vessel
#

it's a 2d array so you have to do it a little differently

cinder patio
#

above

eternal osprey
dusky lagoon
#
let rand = Math.random();
if(rand<=(1/3)){
    await message.redis.incr("cake",user.id,1);
    message.replyMsg(cupcakeEmoji,", you gave one slice of cake to **"+user.username+"**! "+words[Math.floor(Math.random()*words.length)]);
}else if(rand<=(2/3)){
    await message.redis.incr("cake",user.id,2);
    message.replyMsg(sliceEmoji,", you gave two slices of cake to **"+user.username+"**! "+words[Math.floor(Math.random()*words.length)]);
}else{
    await message.redis.incr("cake",user.id,3);
    message.replyMsg(cakeEmoji,", you gave three slices of cake to **"+user.username+"**! "+words[Math.floor(Math.random()*words.length)]);
}
}``` error ```js
(node:34472) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'length' of undefined```
eternal osprey
#

i used the word once, it kinda spammed me full

#
allItems = fs
      .readFileSync("./keywords1.json", "utf8")
      .split("\n")
      .map((x) => x.split(/ +/));
      for (var i = 0; i < allItems.length; i++) {
        if (message.content.includes(allItems[i])) {
   
        const data1 = fs.readFileSync("./role1.json");
        const role1res = data1.slice(1,-1)
        const role1 = message.guild.roles.find(r => r. name === `${role1res}`);
        
        message.channel.send(`${role1} Come here now! Someone needs you!`)
        }
      }
umbral zealot
#

well you have a loop, so that makes sense

#

"for each item send a message"

eternal osprey
#

oh holy shit ofc.

#

so what would be the best solution? I can put the send message outside the loop?

umbral zealot
#

well... yes, of course.

cinder patio
#

You could just join the allIItems array and send it in a single message

umbral zealot
west agate
#

how would i go about making reaction roles work even after the bot restarts

silent terrace
#

guys what is best music bot host

#

i got struggle so hard with vultr

pale vessel
silent terrace
dusky lagoon
#
const Discord = require("discord.js")
const client = new Discord.Client()

const emotes = ["https://imgur.com/3SsZUVT.gif",
        "https://imgur.com/g005tMV.gif",
        "https://imgur.com/wzn0ghV.gif",
        "https://imgur.com/D8SIe4Z.gif",
        "https://imgur.com/xmj8XRD.gif",
        "https://imgur.com/N10WUeF.gif",
        "https://imgur.com/pO2smzw.gif",
        "https://imgur.com/UYKs7Q1.gif",
        "https://imgur.com/aBQJPvZ.gif",
        "https://imgur.com/meZ0TDz.gif",
        "https://imgur.com/jI8zhH6.gif",
        "https://imgur.com/eP7NKy7.gif",
        "https://imgur.com/a3upumA.gif",
         "https://imgur.com/Lbzh24f.gif"
];
const comments = ["Ha! Deserves it.",
        "c:<",
        ">:3",
        "hahaha!"
];

module.exports = {
    name:"bully",

  async run(p, args) {
    if(p.args.length!=1||!p.global.isUser(p.args[0])){
        p.errorMsg(", Please @tag someone to use this command!",3000);
        return;
    }
    let target = p.getMention(p.args[0]);
    if(target == undefined){
        p.send("**🚫 |** I couldn't find that user :c",3000);
        return;
    }
    if(p.msg.author.id==target.id){
        let text = "**"+p.msg.author.username+"**! Don't bully yourself!";
        p.send(text);
        return;
    }

    let emote = emotes[Math.trunc(Math.random()*emotes.length)];
    let comment = comments[Math.trunc(Math.random()*comments.length)];
    let embed = {
        "color": 6315775,
        "image": {
            "url": emote
        },
        "author": {
            "name" : p.msg.author.username+" bullies "+target.username+"! "+comment,
            "url":emote,
            "icon_url": p.msg.author.avatarURL
        }
    };
    p.send({embed});
    p.quest("emoteTo");
    p.quest("emoteBy",1,target);
}

}
``` the error is `(node:25208) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'length' of undefined` How can i make it defined
silent terrace
#

the reject prepaid credit card.......

pale vessel
#

discord is also hosted on gcp

vital void
#

Niw code worked and bot online but still doesn't responds on commands?

eternal osprey
#
allItems1 = fs
      .readFileSync("./keywords1.json", "utf8")
      .split("\n")
      .map((x) => x.split(/ +/));
      for (var i = 0; i < allItems1.length; i++) {
        if (message.content.includes(allItems1[i])) {
        
          const data1 = fs.readFileSync("./role1.json");
          const role1res = data1.slice(1,-1)
          const role1 = message.guild.roles.find(r => r. name === `${role1res}`);
          message.channel.send(`${role1} Come here now! Someone needs you!`)
          
       
        }
       
      }```okay so i have a question. I tried stopping the loop after the message.channel.send by using break;. However, it still spammed the message like a ton of times.
#

without stopping the loop

cinder patio
#

There's no break in your code

pale vessel
#

why not just .find()?

dusky lagoon
#
const Discord = require("discord.js")
const client = new Discord.Client()

const emotes = ["https://imgur.com/3SsZUVT.gif",
        "https://imgur.com/g005tMV.gif",
        "https://imgur.com/wzn0ghV.gif",
        "https://imgur.com/D8SIe4Z.gif",
        "https://imgur.com/xmj8XRD.gif",
        "https://imgur.com/N10WUeF.gif",
        "https://imgur.com/pO2smzw.gif",
        "https://imgur.com/UYKs7Q1.gif",
        "https://imgur.com/aBQJPvZ.gif",
        "https://imgur.com/meZ0TDz.gif",
        "https://imgur.com/jI8zhH6.gif",
        "https://imgur.com/eP7NKy7.gif",
        "https://imgur.com/a3upumA.gif",
         "https://imgur.com/Lbzh24f.gif"
];
const comments = ["Ha! Deserves it.",
        "c:<",
        ">:3",
        "hahaha!"
];

module.exports = {
    name:"bully",

  async run(p, args) {
    if(p.args.length!=1||!p.global.isUser(p.args[0])){
        p.errorMsg(", Please @tag someone to use this command!",3000);
        return;
    }
    let target = p.getMention(p.args[0]);
    if(target == undefined){
        p.send("**🚫 |** I couldn't find that user :c",3000);
        return;
    }
    if(p.msg.author.id==target.id){
        let text = "**"+p.msg.author.username+"**! Don't bully yourself!";
        p.send(text);
        return;
    }

    let emote = emotes[Math.trunc(Math.random()*emotes.length)];
    let comment = comments[Math.trunc(Math.random()*comments.length)];
    let embed = {
        "color": 6315775,
        "image": {
            "url": emote
        },
        "author": {
            "name" : p.msg.author.username+" bullies "+target.username+"! "+comment,
            "url":emote,
            "icon_url": p.msg.author.avatarURL
        }
    };
    p.send({embed});
    p.quest("emoteTo");
    p.quest("emoteBy",1,target);
}

}
``` the error is `(node:25208) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'length' of undefined` How can i make it
umbral zealot
#

you have length multiple time there. which one is breaking?

eternal osprey
#

never mind i already found out how to break it

dusky lagoon
umbral zealot
#

Well, do you know the difference between p.args and args?

#

because I feel you need the latter...

cinder patio
#

That's so weird

vestal stirrup
cinder patio
#

ctx is also a readonly property so there's no way I'm changing it's value somewhere...

#

This is so stupid... I had a file named Context, but then I moved it in a folder, but the .js file of Context stayed and so it's getting the class from the old js file

west agate
#

how come i cant download brain.js-

earnest phoenix
#

guys, my bot can play music but if someone tries to play another song when the 1st one has finished, the bot has got to leave the channel and re-enter

swift cloak
#

hi so how can i start my react.js when i run node .? like i dont want to open another instance and run npm start

modest maple
#

i mean, why do you want that exactly?

#

react has several commands needed for development and deployment

#

so you really should be using their explicit identifiers

swift cloak
#

so like

swift cloak
lyric mountain
#

running both backend and frontend on same terminal kekw

swift cloak
#

yes

lyric mountain
#

that's crazy yk

modest maple
#

if you're deploying it in production you shouldnt even be using npm start

#

or using the dev server at all for that matter

swift cloak
#

or is there a way to run my express app and react app by running npm start

modest maple
#

i really dont get what you're trying to achieve by doing this though

#

why cant you just.... have two terminals open

west agate
#

anyone know how to download brain.js without getting an error?

lost wadi
#

Well, I was told you're going to use this method and it's okay, apply it here.

let arreglo = [{
item: "Hot do",
lot: 1881
},
{
item: "Hot d",
lot: 28
},
{
item: "Hot ",
lot: 28282
},
{
item: "Ho",
lot: 882
},]

Math.max.apply(Math, arreglo.map(function(o) { return o.lot; }))

But now I want to get the "item" property through that number, but I don't like

pale vessel
#

What are you trying to do

slim heart
#

does anyone know how to turn off certain rules with ts-standard? i tried .eslintrc, adding it to package.json, adding it to tsconfig.json, nothing seems to work
it being


  "rules": {
    "@typescript-eslint/strict-boolean-expressions": "off"
  }```
cinder patio
#

That should be in the rules object inside your .eslintrc file

slim heart
#

ye i tried that but ts-standard still picks it up

cinder patio
#

In the README it says that it looks for a tsconfig.eslint.json file

#

maybe put it in there

#

Though it says that it should also work with tsconfig.json

still geyser
#

How to make a log tracker pls give code line

#

Node.js

slim heart
#

when i do that it scraps the tsconfig.json it seems

#

when i put it in the tsconfig.json it doesn't work

still geyser
#

Hmmmm

west agate
#

hi berry

cinder patio
slim heart
#

ppog

#

tysm

#

that worked

cinder patio
#

np

dusky lagoon
#
const Discord = require("discord.js")
module.exports = {
    name: "test",
    run(message) {

        var embed1 = new Discord.MessageEmbed()
            .setColor('RED')
            .setDescription('Test1')

        var embed2 = new Discord.MessageEmbed()
            .setColor('BLUE')
            .setDescription('Test2')

        var embed3 = new Discord.MessageEmbed()
            .setColor('GREEN')
            .setDescription('Test3')

        var pages = [
            embed1,
            embed2,
            embed3
        ];

        var author = message.author;

        message.channel.send(pages[0]).then( async message => {
            await message.react('◀️');
            await message.react('▶️');
            var collector = message.createReactionCollector(
                // only collect left and right arrow reactions from the message author
                (reaction, user) => ['◀️', '▶️'].includes(reaction.emoji.name) && user.id === author.id,
                // time out after a minute
                { time: 60000 }
            )
            let currentIndex = 0
            collector.on('collect', reaction => {
                reaction.emoji.name === '◀️' ? currentIndex -= 1 : currentIndex += 1;
                if (currentIndex < 0) {
                    currentIndex += 1;
                }
                if (currentIndex + 1 > pages.length) {
                    currentIndex -= 1;
                }

                // edit message with new embed
                message.edit(pages[currentIndex]);
                
            })
        })
        
    }
};``` im working on this embed pages but i want the reactions to reset again because when i click at one reaction it doest remove it at the same time if you know what i mean
slim heart
#

i lied

#

it just didnt show up at the bottom of the error log

cinder patio
#

😩

#

I would ditch ts-standard and add the rules it adds to the eslint config file

cinder patio
slim heart
#

im pretty sure that's saying the rules that're in the project already

cinder patio
#

Isn't the one you want to turn off included in the package?

slim heart
#

ye

exotic galleon
#

help
eror what?

cosmic forum
#

Hi, I'm using discord.js, and I was wondering if there is a way to get an array of all the user ids of every user in a certain guild.

pale vessel
#

you'd need to cache or fetch all members of the guild

#

and then you can map them by their id

exotic galleon
#

?

cosmic forum
exotic galleon
pale vessel
#

without cache, fetch is not a cache operation

#

it's a promise so await the method and make sure you have the guild members intent

weak grove
#

Error: Could not locate the bindings file. Tried:

#

help

pale vessel
#

that should return a collection of guild members for that guild

exotic galleon
cosmic forum
pale vessel
#

you can't

#

fetch is a method

#

you have to await it

weak grove
pale vessel
#

and you don't need to loop through it, you can use <collection>.map()

exotic galleon
weak grove
#

nasıl çözcez :(

exotic galleon
#

glitchtenmi yapıyon kanka

weak grove
#

evet

exotic galleon
#

malsef bende :c

#

shard komutu eklyim dedim olmadı

summer torrent
#

english only channel

exotic galleon
pale vessel
#

hi nice mega weeb 02

summer torrent
#

hi

weak grove
#

help

summer torrent
#

did you tried google

exotic galleon
#

Error: Could not locate the bindings file. Tried:
help meee

summer torrent
#

rebuild the boat 🤔

#

@flat pelican @unkempt ocean can you check log for this channel

exotic galleon
summer torrent
#

I saw you wrote "kafanizi sikim"

river panther
#

oh no, i am supposed to do something else

#

will help you next time

dusky lagoon
#
const Discord = require("discord.js")
module.exports = {
    name: "test",
    run(message) {

        var embed1 = new Discord.MessageEmbed()
            .setColor('RED')
            .setDescription('Test1')

        var embed2 = new Discord.MessageEmbed()
            .setColor('BLUE')
            .setDescription('Test2')

        var embed3 = new Discord.MessageEmbed()
            .setColor('GREEN')
            .setDescription('Test3')

        var pages = [
            embed1,
            embed2,
            embed3
        ];

        var author = message.author;

        message.channel.send(pages[0]).then( async message => {
            await message.react('◀️');
            await message.react('▶️');
            var collector = message.createReactionCollector(
                // only collect left and right arrow reactions from the message author
                (reaction, user) => ['◀️', '▶️'].includes(reaction.emoji.name) && user.id === author.id,
                // time out after a minute
                { time: 60000 }
            )
            let currentIndex = 0
            collector.on('collect', reaction => {
                reaction.emoji.name === '◀️' ? currentIndex -= 1 : currentIndex += 1;
                if (currentIndex < 0) {
                    currentIndex += 1;
                }
                if (currentIndex + 1 > pages.length) {
                    currentIndex -= 1;
                }

                // edit message with new embed
                message.edit(pages[currentIndex]);
                
            })
        })
        
    }
};``` im working on this embed pages but i want the reactions to be removed after i enter a new page how do i do that
summer torrent
summer torrent
#

yeah i see

pale vessel
#

why did you call him boyfriend

summer torrent
#

Lets wait for turkish mods

zenith terrace
unkempt ocean
#

@exotic galleon please use English in this channel, also stop using slurs

summer torrent
exotic galleon
#

Saying male colleague sounds me wrong?

heavy marsh
#
[DEBUG/SHARD] Shard 0 connected to Discord's Gateway
[DEBUG/SHARD] Shard 1 connected to Discord's Gateway
(node:45) UnhandledPromiseRejectionWarning: Error [SHARDING_IN_PROCESS]: Shards are still being spawned.
    at ShardingManager._performOnShards (/home/container/node_modules/discord.js/src/sharding/ShardingManager.js:258:75)
    at ShardingManager.fetchClientValues (/home/container/node_modules/discord.js/src/sharding/ShardingManager.js:245:17)
    at Shard._handleMessage (/home/container/node_modules/discord.js/src/sharding/Shard.js:338:22)
    at ChildProcess.emit (events.js:315:20)
    at emit (internal/child_process.js:903:12)
    at processTicksAndRejections (internal/process/task_queues.js:81:21)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:45) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:45) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[DEBUG/SHARD] Shard 2 connected to Discord's Gateway

How can I fix this error on d.js

pale vessel
#

you're trying to use fetchClientValues() while your shards are still spawning

heavy marsh
#

I am not doing that any where

#

But is there a Fix I can do

#

aAhh I think its this

#

How to fix it?

pale vessel
#

try setting up autoposter after all shards are ready (although I'm sure autoposter already checks for that before trying to post stats)

heavy marsh
#

hmm then I dont see where the error is ...

feral aspen
#

require("dotenv").config(), should I put this in every file or is the index.js file just enough.

cinder patio
#

index.js file

feral aspen
#

Aight.

pale vessel
#

you're lucky erwin isn't here

exotic vigil
pale vessel
#

?

exotic vigil
#

you what

#

ı dont say u

heavy bloom
#

How long will take to my bot be added into top. Gg

exotic vigil
#

Np bro
İs PC

#

@feral aspen Bro
You bots token generate
server.js
client.login(process.env.token);
clone folder
.env
new app
token=bot-token
and
npm i dotenv

pale vessel
#

bruh

cinder patio
exotic vigil
#

.d

#

yours know

heavy bloom
feral aspen
#

I know that, but I just asked if I require it once and not in every single file! 👀

exotic vigil
#

what you bot secret id

heavy marsh
#
//Shard Logs
ShardingManager.on("shardCreate", shard => {
    
shard.on("ready", () => {
console.log(`[DEBUG/SHARD] Shard ${shard.id} connected to Discord's Gateway`)

embed.setColor(`#2ecc71`)
embed.setDescription(`Shard \`${shard.id}\` connected`)
botshards.send(embed)
});

shard.on("reconnecting", () => {
console.log(`[DEBUG/SHARD] Shard ${shard.id} reconnecting to Discord's Gateway`)

embed.setColor(`#e5c55e`)
embed.setDescription(`Shard \`${shard.id}\` reconnecting`)
botshards.send(embed)
    
shard.on("disconnect", () => {
console.log(`[DEBUG/SHARD] Shard ${shard.id} disconnect form Discord's Gateway`)

embed.setColor(`#ff7e57`)
embed.setDescription(`Shard \`${shard.id}\` disconnect`)
botshards.send(embed)
});
    
});
    
});

Will these events be Heard?

lyric mountain
#

IF you get approved

exotic vigil
#

hm

heavy marsh
#

ShardingManager doest have them ..

exotic vigil
heavy bloom
#

My bot is not completely on and is not completed just some small features should I remove it?

pale vessel
#

no, no, shard has it

exotic vigil
#

Shard = Speed Bot

pale vessel
#

never mind, it's your indentation

heavy marsh
#

Or have different events per each?

lyric mountain
lyric mountain
heavy marsh
#

so different events?

lyric mountain
#

so you'll have N * 3 listeners

exotic vigil
#

advanced bot = shard 15

lyric mountain
#

??

heavy bloom
exotic vigil
#

shard ms

heavy marsh
lyric mountain
#

idk how d.js handles it, but there's probably a way to do it globally instead of per-shard

#

give the docs a read to see if there's a better way

dusky lagoon
#
const Discord = require("discord.js")
module.exports = {
    name: "test",
    run(message) {

        var embed1 = new Discord.MessageEmbed()
            .setColor('RED')
            .setDescription('Test1')

        var embed2 = new Discord.MessageEmbed()
            .setColor('BLUE')
            .setDescription('Test2')

        var embed3 = new Discord.MessageEmbed()
            .setColor('GREEN')
            .setDescription('Test3')

        var pages = [
            embed1,
            embed2,
            embed3
        ];

        var author = message.author;

        message.channel.send(pages[0]).then( async message => {
            await message.react('◀️');
            await message.react('▶️');
            var collector = message.createReactionCollector(
                // only collect left and right arrow reactions from the message author
                (reaction, user) => ['◀️', '▶️'].includes(reaction.emoji.name) && user.id === author.id,
                // time out after a minute
                { time: 60000 }
            )
            let currentIndex = 0
            collector.on('collect', reaction => {
                reaction.emoji.name === '◀️' ? currentIndex -= 1 : currentIndex += 1;
                if (currentIndex < 0) {
                    currentIndex += 1;
                }
                if (currentIndex + 1 > pages.length) {
                    currentIndex -= 1;
                }

                // edit message with new embed
                message.edit(pages[currentIndex]);
                
            })
        })
        
    }
};``` im working on these embed pages but i want the reactions to be removed after i enter a new page can someome maybe tell me how do i do that
lyric mountain
#

first of all: forget that var exists

#

it's bad, don't use it

#

do you want all reactions to be removed or just the clicked one?

#

@dusky lagoon

dusky lagoon
#

well both tbh hahaha

#

well first of all when i react the reaction stays so yeah i want that part to be removed

#

so that i dont have to click twice

lyric mountain
winter torrent
#

I'm trying to like yk make a text coloured, but from what Ik, you cannot include html code in an embed, ik you could use js css etc but are those the only way to do it?

lyric mountain
#
+ like this?
pale vessel
#

he meant that is codeblock the only way to do it

#

i think

copper cradle
lyric mountain
#

I hate it when people ask questions then disappear from the chat

winter torrent
copper cradle
#

ikr lol

winter torrent
#

well. multiple colours

lyric mountain
winter torrent
lyric mountain
#

you're stuck to whatever language you choose tho

#

you can't freely choose colors

winter torrent
#

yeah ik

#

ty

pulsar mural
#

hello

#

i have a probleme

unreal estuary
#

i didnt know this

winter torrent
pulsar mural
#
ZetaBot is on and ready to serv the server !
index.js:19
Uncaught TypeError: Cannot read property 'get' of undefined
Process exited with code 1```
unreal estuary
winter torrent
#

but yeah, show code

pulsar mural
#

ok so i have add this 2 code

bot.on("message", message => {

    if (message.author.bot) return;

    if (!message.content.startsWith(prefix)) return

    const args = message.content.slice(prefix.length).trim().split(/ + /g)
    const command = args.shift().toLowerCase();

    if (command === "users") {
        message.channel.send(`${message.member}, ZetaBot has a total of ${client.users.cache.size} users !`)
    }
});```

```Js
bot.on("message", message => {

    if (message.author.bot) return;

    if (!message.content.startsWith(prefix)) return

    const args = message.content.slice(prefix.length).trim().split(/ + /g)
    const command = args.shift().toLowerCase();

    if (command === "serveurs") {
        message.channel.send(`${message.member}, ZetaBot is in ${client.guilds.cache.size} server(s) !`)
    }
});```
#

when i remove this code

#

the bot is on

winter torrent
#

just send the code which shows the error

unreal estuary
#

i think its on line 19

#

wheres that

winter torrent
#

send line 19 yes

#

cause you sent 2 separate embeds so im unsure what line 19 is

pulsar mural
#

});

#

that is the line 19

winter torrent
pulsar mural
#

in my code, the bot not send any embed

unreal estuary
#

index.js:19
Uncaught TypeError: Cannot read property 'get' of undefined

#

where is the error

winter torrent
#

send the code in like

like this
lyric mountain
#

there's no get there btw

winter torrent
unreal estuary
#

there isnt a .get in the code u sent

winter torrent
#

yeah but it won't give you an error if there isn't get

unreal estuary
#

ur not showing the full thing

pulsar mural
#
bot.on("guildMemberAdd", member => {
    member.guild.channels.cache.get(config.greeting.channel).send(`__**[+] Bienvenue ${member} dans Zetaria | V1 Skyblock !**__ Je t'invite fortement de lire le règlement du serveur afin de ne pas être sanctionné. Nous somme désormais ${member.guild.memberCount} ! 🎉`)
    member.roles.add(config.greeting.role)

});

bot.on('guildMemberRemove', (member) => {
    member.guild.channels.cache.get(config.greeting.channel).send(`__**[-] ${member.user.tag} à quitté le serveur ! à cause de lui nous somme ${member.guild.memberCount} !**__ 😢`)
});```
unreal estuary
#

that looks correct to me idk

winter torrent
#

same

somber tulip
#

you are using discord.js v11

unreal estuary
#

r u using v12

#

lol

winter torrent
#

depends on ur version yeah

somber tulip
#

change member.guild.channels.cache.get to member.guild.channels.get

winter torrent
#

if ur on v11, thats why ur getting an err

#

on v12 you need cache i believe

pale vessel
#

nono don't tell them to change to old code

pulsar mural
#

i use the discord.js 12.5.1

pale vessel
#

upgrade your discord.js

winter torrent
#

yeah ur code is fine

#

just upgrade ur version

pulsar mural
#

HOW

pale vessel
#

try running npm ls discord.js

unreal estuary
#

12.5.1 is the latest im pretty sure

pulsar mural
unreal estuary
#

ok are u sure thats line 19 then

pulsar mural
#

that is not the line 19

unreal estuary
#

then whats in line 19

pale vessel
#

bruh

unreal estuary
#

the error is on line 19?

#

why are you sending random code lol

pulsar mural
#

the line 19 is

console.log('ZetaBot est allumé et pret à servir le serveur');```
unreal estuary
#

weird

pulsar mural
#

bruh

unreal estuary
#

send the full index.js file

pulsar mural
#

ok

unreal estuary
#

if u want to

pulsar mural
#

there are French texts so you can translate them

unreal estuary
#

also why do u have separate message events for each command

pulsar mural
#

i didn't understand

unreal estuary
#

your coding is honestly a huge mess

pulsar mural
#

why ?

unreal estuary
#

u do

#
    partials: ['MESSAGE', 'REACTION']
})
const client = new Discord.Client()```
#

this

#

for some reason

#

and u only login with the bot const

#

and then u use client to do this

#
      message.channel.send(`${message.member} a un total de ${guild.memberCount} utilisateur(s)`)
    })```
pulsar mural
#

thx

#

but

#

do you speak frenh ?

unreal estuary
#

that doesnt matter

umbral zealot
#

Yo don't threaten to shoot people because you don't speak developer 😛

unreal estuary
#

and u have like 10 seperate message events too

pulsar mural
#

i dont shoot them

unreal estuary
#

one for each command

pulsar mural
#

ok

crimson vapor
#

yikes

unreal estuary
#

u only need 1

winter torrent
#

So i'm curious

ReferenceError: message is not defined
    at Object.execute (/home/container/commands/compare.js:69:161)

ik you can send the ReferenceError: message is not defined in a message, could you also send the 2nd line?

pale vessel
#

line 69 nice

winter torrent
#

didn't realise until you said it

unreal estuary
#

what does the 161 mean?

winter torrent
pale vessel
#

the row

snow urchin
winter torrent
winter torrent
pale vessel
#

ob column

winter torrent
#

character also

#

mb

crimson vapor
#

flaze

pale vessel
#

hi

crimson vapor
#

could you make a few commands for me?

pale vessel
#

for rose?

crimson vapor
#

kinda

pale vessel
#

like what

crimson vapor
#

any

#

I just need more commands for dbl-reviewal-simulator

pale vessel
#

what does it do

#

what commands does it have as of right now

crimson vapor
#

umm one sec

pale vessel
#

those commands don't live up to the bot's name

crimson vapor
#

ik ik

#

thats why I need help

pale vessel
#

idk, add some luca tags

crimson vapor
unreal estuary
#

?

round cove
#

Alright pal.

crimson vapor
#

he sent it in 1-2 other channels

#

which is why I pinged

round cove
#

Oh he left.

crimson vapor
#

oh lol

#

@round cove you have been summoned again

round cove
#

Yo

rustic nova
#

all good

stark abyss
toxic jolt
#
(async () => {
   let user = await client.shard.broadcastEval(`this.guilds.cache.get("675030984722350092").users.cache.get("326692518118948865").id`) 

return user[0];

})()```help pls dont working
cinder patio
#

user may not be cached

#

you can just use fetch instead of broadcast evaling, too.

#

You don't need the guild in order to get a user by their ID

#

<Client>.guilds.fetch("guildID");

winter torrent
#

You cannot fetch a specific guild by number from what i know

#

you could fetch it by name maybe or ID

cinder patio
#

if you don't know the guild's ID then you cannot fetch it

winter torrent
#

^ maybe name tho(?)

cinder patio
#

no

#

I mean, by default all guilds are cached in memory

#

so you cannot fetch a guild by it's name

#

but you can get it from the cache

pale vessel
#

guild.users doesn't exist

icy fjord
#

client.commands.get(command).run(client, message, args);
TypeError: Cannot read property 'run' of undefined - Where the error

opal plank
#

check if it has() before or add a conditional chain

crimson vapor
#

ex. client.commands.get(command)?.run()

#

are role positions ascending or decending?

icy fjord
tired panther
#

Does someone knows how to convert a string to object
like when I have:
"{title: hello, desc: descrtiption}"
as a string
do I just do .toObject() ?

river panther
#

[TRY AND SEE](try and see link)

tired panther
cinder patio
#

JSON.parse

#

assuming the string is valid json

#

if it's not then you'll have to parse it yourself or make it valid json

tired panther
river panther
#

oh hmm

#

looks like someone already told

tired panther
#

yes lul

river panther
#

phone notifications don't show the next message

#

=|

zenith terrace
crimson vapor
#

like is the top role 0, 1, or the number of roles in the server?

zenith terrace
#

oh

#

I think its one

#

which is the @everyone

#

yea starts as one

crimson vapor
#

ok

#

pog

zenith terrace
#

pog indeed

earnest phoenix
#

lol

crimson vapor
#

gotta love when berry makes a mistake with his lib

earnest phoenix
#

u cant im pretty sure

slender wagon
#

Is there a way i could get the guild name only with the guild id? Guild id's that i am not in

slender wagon
#

no i mean like is there a open tool for everyone?

icy fjord
#

hi

#

I made a command. My Bot Writes a "Message" every 10 seconds. but I can't stop it. How can I do "Prefix + Stop" Command?

earnest phoenix
#

Hey I'm using my friends discord account whilst he's on downstairs and I'm wondering how I fix this lmao (he is aware)

#

require('dotenv').config();
const cod_api = require('call-of-duty-api')();
module.exports = {
name: 'mpcheck'
description: 'this command shows stats for call of duty',
async execute(client, message, args, Discord){
if(!args[0]) return message.channel.send('Please enter a username');
if(!args[1]) return message.channel.send('PLease enter a platform');

    let username = process.env.COD_USERNAME;
    let password = process.env.COD_PASSWORD;

    try{

await cod_api.login(username, password);
let data = await cod_api.MWwz('Ksavv#2278', 'battle');

console.log(data);
}catch(error){
message.channel.send('There was an error fetching this player');
throw error;
}
}
}

umbral zealot
#

fix what exactly

#

that's just code

#

What's wrong with it?

lyric mountain
#

and then...they vanish

cinder patio
#

There's a missing comma after the name property

cobalt island
#

I'm programming on repl.it and it doesnt support discord.py rewrite it only uses the outdated one. What code editor should I use instead

umbral zealot
#

repl.it isn't a code editor it's a hosting service with an IDE.

#

try VSCode on your own computer

modest maple
#

it runs on 3.8 or 3.9

dusky lagoon
#

UGH

grizzled raven
#

here: \, you might need it

dusky lagoon
#

im having a stroke

#

is it possible to make a embed edit loop?? so you can make a stop motion with emoji's

#

Bad Apple, 51x38 @ 10 fps, rasterized into unicode squares in Discord messages.
No video editing was done besides trimming and adding the audio.
Share this video so it gets more views than the inferior ones!

This IS api abuse, as 15 bots were used to circumvent the rate limit, so I do not recommend doing this! However, only 2,191 messages were...

▶ Play video
drifting wedge
#
using System;

namespace Hello_World
{
    class Program
    {
        static void operate(int num1, int num2, string operation) {
            if (operation == "+") {
                Console.WriteLine(num1 + num2);
            }
            else if (operation == "-") {
                Console.WriteLine(num1 - num2);
            }
            else if (operation == "/") {
                Console.WriteLine(num1 / num2);
            }
            else if (operation == "*") {
                Console.WriteLine(num1 * num2);
            }
        }
        static void Main() {
            Console.Write("Please input number 1: ");
            string num1 = Console.ReadLine();
            Console.Write("Please input operation: ");
            string operation = Console.ReadLine();
            Console.Write("Please input number 2: ");
            string num2 = Console.ReadLine();
            operate(Int32.Parse(num1), Int32.Parse(num1), operation);
        }
    }
}
earnest phoenix
#

operate(Int32.Parse(num1), Int32.Parse(num1), operation);

#

this line

#

ur 2nd arg

#

is bad

#

it's the same with the 1st arg

#

num1

dusky lagoon
#

ohw yeah ok that explains alot hahaha

dusky lagoon
#

nahhh

#

not really

#

api abose PFFFF

lyric mountain
#

That translates to "forget top.gg or having a perma account"

drifting wedge
lyric mountain
#

In the embed

drifting wedge
#

OHH

#

@earnest phoenix

#

ty

#

didnt see it

lyric mountain
dusky lagoon
#

well isnt every nuke bot api abuse??

lyric mountain
drifting wedge
#

i saw it

#

fixed it

lyric mountain
drifting wedge
lyric mountain
#

That's why the owners get banned 99% the time

drifting wedge
#

u talking about legit nuke bots or raid bots?

dusky lagoon
#

both prob

drifting wedge
#

legit as in bots with a nuke feature

#

cuz u can do it ez

#

u can delete channel

dusky lagoon
#

i know

drifting wedge
#

or use bulk delete

#

depends

#

you can do it in a way its not

dusky lagoon
#

@drifting wedge im able to delete whole servers with just one command

drifting wedge
#

like clear/purge commands

dusky lagoon
#

but i have a server-reset command is that allowed??

drifting wedge
#

@dusky lagoon how?

dusky lagoon
#

Its a mod command

drifting wedge
#

uhhh

dusky lagoon
#

called server-reset

drifting wedge
#

its a dumb command

lyric mountain
#

Like, you need to put a gargantuan delay so it's not api abuse

#

Something like 1 hour to finish resetting server

dusky lagoon
#

no it gives you a giant warning with ARE YOU SURE

lyric mountain
#

Read my last msg

drifting wedge
#

i do 5 min per user

#

i take my time lol

slim heart
#
name: Checks for commits and PR's

on:
  push:
    branches:
      - master
  pull_request:

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        node: [14]
    steps:
      - uses: actions/checkout@master

      - name: Setup node
        uses: actions/setup-node@v1
        with:
          node-version: ${{ matrix.node }}
          registry-url: https://registry.npmjs.org/

      - name: Cache NPM
        uses: actions/cache@v1
        with:
          path: ~/.npm
          key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
          restore-keys: |
            ${{ runner.os }}-node-

      - name: Install packages
        run: npm i --also=dev

      - name: Compile typescript
        run: npm run build
  lint:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        node: [14]
    steps:
      - uses: actions/checkout@master

      - name: Setup node
        uses: actions/setup-node@v1
        with:
          node-version: ${{ matrix.node }}
          registry-url: https://registry.npmjs.org/

      - name: Cache NPM
        uses: actions/cache@v1
        with:
          path: ~/.npm
          key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
          restore-keys: |
            ${{ runner.os }}-node-

      - name: Install packages
        run: npm i --also=dev

      - name: Lint
        run: npm run lint

does anyone know why this gh action isnt working? it just doesnt run

drifting wedge
#

i have fast pruge command doe?

lyric mountain
#

Yeah, like, stuff like that really need to have a huge delay

drifting wedge
#

purge has a bulk delete right?

lyric mountain
#

Because it only takes 2 runs of that command to get your bot in shallow waters

dusky lagoon
slim heart
#

it legit just doesnt run

#

it was working before and it suddenly stopped

dusky lagoon
#

what do you mean??

#

hahaha

cobalt spruce
#

var command = message.content.split(' ')[0].replace(guildConf[message.guild.id].prefix, '');
TypeError: Cannot read property 'prefix' of undefined

#

this line made my head go dead

vivid fulcrum
#

guildConf[message.guild.id] returned undefined

#

if you're using a json db i'm about to slap you into another galaxy

earnest phoenix
#

It wasn't able to find a property with the guild's ID in that object

earnest phoenix
cobalt spruce
slim heart
#

i didnt even change the file from the last build check and it just suddenly stopped doing anything on either pr or push

vivid fulcrum
#

why not just use it right away

cobalt spruce
vivid fulcrum
#

"bro why are you using a gate instead of a door for your house entrance"
"i'm just testing it i'm gonna add a door like later"

#

thank

#

but json doesn't translate to mongo

cobalt spruce
#

a deferent angle of view

vivid fulcrum
#

they're similar but it isn't 1:1

earnest phoenix
#

pepehmmNoBG cry avatar go full light theme mode?

cobalt spruce
#

not like me stuck with this logo

vivid fulcrum
#

i believe in troye sivan superiority

cobalt spruce
#

from 2016

earnest phoenix
#

Hmm

lyric mountain
#

the thing is not the notice but the time it takes to finish the task

winter bear
#

I'm trying to make a vote to release commands but I don't know how to start or how to do it

unreal estuary
#

u mean like reactions?

icy fjord
#

{ name: 'X's test', value: ' ', inline: false },

#

How can I write X's test?

#

I can't use 'after x.

earnest phoenix
#

Escape it

#

X\'s test

icy fjord
#

DiscordAPIError: Invalid Form Body

#

oh no

#

not for this

earnest phoenix
icy fjord
boreal iron
#

" X's " will also work

icy fjord
#

hey @earnest phoenix

#

help me pls

#

DiscordAPIError: Invalid Form Body

#

what is this

earnest phoenix
#

You're sending an Invalid payload to discord

#

Show code i guess

icy fjord
#

pm pls

earnest phoenix
#

Just send it here

#

They DMed me for help LULW

lucid prawn
#

What did the first one mean

swift cloak
#

wait

#

so if i were to enter in a dir and run a script using my main dir would i do

#

start: "cd ./dashboard/dashboard-design & npm start"

#

right?

quaint wasp
#

guys

#

do yall like my new role?

earnest phoenix
quaint wasp
#

nope..

earnest phoenix
#

any lib that can add text and insert image into another image will do tbh

crimson vapor
#

most people do it custom with canvas

quartz kindle
#

bitwise on bigint is so slow... sad

opal plank
#

the majority of my shit is in bitint

#

not only for one thing

#

i think i got 4 or 5 different settings/data using bigint with bitwise

quartz kindle
#

well

#

im working on a data converter/compressor/packer thing

#

and converting bigint to binary is sad

#

writing it in chunks using right shift

#

its like 50x slower than numbers

#

its still faster than using strings as intermediary tho thank god

#

but only up to a certain number of right shifts

#

if you get a really big bigint, like hundreds of characters long, its quite possible parsing it as strings will be faster lmao

crimson vapor
#

damn

#

canvas is generally used

quartz kindle
#

canvas is good

#

very good

crimson vapor
#

its "slow" tho, right?

quartz kindle
#

only if you abuse it

#

canvas sucks at high-res graphics

#

but it can still handle upwards of 4k fine

#

i used to generate 8000x8000 images

#

but it crashed sometimes

#

xD

#

idk

#

possibly

#

nope

#

just a github and npm

opal plank
#

imagine not finding someone to code you a rust image API for the best performance

#

rust should be a lot better for image generation

#

by quite a margin

#

me neither

#

i can possibly wiggle my way through python if im gonna be honest

quaint wasp
#

umm

opal plank
#

but my forte is definitively typescript

quaint wasp
#

Idk how to apload my files to host them..

crimson vapor
#

node-canvas is very similar to the canvas in browsers right?

opal plank
#

typescript gang

crimson vapor
#

gang gang

crimson vapor
#

Muted by erwin gang

opal plank
#

just gotta join the detritus gang now

#

reject d.js, join moke

#

i mean, detritus

quartz kindle
#

rust wont be that much better over canvas

#

since canvas is C/C++

crimson vapor
#

I would join detritus gang @opal plank

#

if you explained why it wasn't working

opal plank
#

bunch of people i've talked to has seen a great increase in performance with rust

quartz kindle
#

i use JS without TS

crimson vapor
#

ts is really cool imo

opal plank
#

Tim is the odd ball of the bunch

earnest phoenix
#

Tim is just JS gang as always

#

TS is cool tho

opal plank
#

tim is like the stubborn kid in class that refuses to use a calculator and takes pride into doing math with his head

#

yup

#

here we go again

#

erwin with detritus

opal plank
crimson vapor
#

LOL

earnest phoenix
#

Detritus is basically the best discord bot lib

opal plank
#

i pointed some good things frmo detritus

#

including, basically, everything you need in terms of a lib

#

let me get you links

#

1sec

crimson vapor
#

bruh

#

I thought he had them memorized

opal plank
earnest phoenix
#

Erwin explaining detritus

opal plank
#

oh

#

let me get a perm invite

quartz kindle
#

erwin should be getting paid

opal plank
#

ikr!

crimson vapor
#

he isn't paid for this?

opal plank
#

i wouldnt mind some monetary incentive

quartz kindle
#

missionary for the church of detritus

earnest phoenix
#

Erwin sponsored by detritus

opal plank
earnest phoenix
#

Wouldn't be surprised

quartz kindle
#

religious freak

#

:^^)

boreal iron
#

Imagine all the cash he has made with his ads

opal plank
#

dunno wutchu on about

#

i had a meme somewhere

#

1 sec

quartz kindle
#

pays no taxes

opal plank
#

idk who sent me this

boreal iron
crimson vapor
#

no payment = no taxes

#

maybe this is why he claims he doesn't get paid

opal plank
#

Erwin at people's doorstep preaching about detritus, 2021, colorized

earnest phoenix
#

What if erwin is the one who created detritus and he's secretly doing them ads

crimson vapor
quartz kindle
#

screaming detritus

opal plank
#

yup

#

at 8AM too

boreal iron
opal plank
#

on a sunday

quartz kindle
#

6am

opal plank
#

even better

#

i call that commitment

earnest phoenix
#

Erwin still have us blocked WeirdChamp

#

Man

opal plank
#

gotta make sure to get people when they least expect, 6am seems a fitting time

crimson vapor
#

you too? @earnest phoenix

quartz kindle
#

did you really block them all?

crimson vapor
#

he did

#

yea

earnest phoenix
#

Yea

opal plank
#

how do i fix this issue? message.send().edit(...) is not a function?

#

and then you slap them with detritus

crimson vapor
#

bruh

opal plank
#

when they least epect it

#

its related to coding

#

detritus is a discord lib

quartz kindle
#

true instagram

opal plank
#

KEK

#

you think i'd be getting paid for this?

#

how naive

earnest phoenix
#

Yes

#

How could they not sponsor erwin

#

The one who explains it the best

crimson vapor
#

LOL

quartz kindle
#

erwin is a fanboy

#

or rather

#

a fangirl

opal plank
#

i just talk about it cuz its an amazing lib and undervalued because of the clusterfuck d.js is

#

redis, detritus, postgres and typescript

crimson vapor
#

honestly I tried it for a min

#

so confusing

opal plank
#

you'll often see me bitching about either one of those here

#

IKR!

#

here

earnest phoenix
#

The bottom part of the detritus's main file scared me

opal plank
crimson vapor
#

all of it scared me @earnest phoenix

earnest phoenix
crimson vapor
#

discord-rose is so much more simple

#

and its more memory efficient

quartz kindle
#

DRPT stack

crimson vapor
#

by nature

opal plank
#

i sent docs

quartz kindle
#

detritus redis postres typescript

crimson vapor
#

there are docs

quartz kindle
#

DRPT

opal plank
#

in the big lik lul

crimson vapor
#

discord-rose has a wiki

opal plank
#

link

crimson vapor
#

Erwin is so confused

#

LOL

opal plank
crimson vapor
#

yea

opal plank
#

first link i sent

#

it is tho

crimson vapor
#

@quartz kindle help erwin

opal plank
crimson vapor
#

LOL

opal plank
#

fuck rose

#

detritus >

crimson vapor
#

Erwin doesn't like it

earnest phoenix
#

Detritus is nice, bottom part of the main file isn't tho

crimson vapor
#

@gritty tartan everything is raw from the discord docs

earnest phoenix
#

That shit is scary man

quartz kindle
#

lmao

crimson vapor
pale vessel
# opal plank

OH MY GOD EVERYTIME I COME HERE ALL I SEE IS THAT MOTHERFUCKING SCREENSHOT

quartz kindle
#

im gonna make my own lib
with blackjack and hookers

crimson vapor
#

@quartz kindle ill try it if you do 😉

opal plank
#

thats the only real comparison i have

#

if i were to screenshot it now, it wouldnt be fair

#

since i added a shitton more stuff to it

#

those 2 comparisons are the same bot, everything is exactly the same

quartz kindle
#

you are exactly the same

opal plank
#

no u

quartz kindle
#

no u

boreal iron
opal plank
#

no no u

quartz kindle
#

no u u

opal plank
#

yes u

#

git rekt

#

ggeznore

crimson vapor
#

idk what erwin is on about, detritus isnt even that good imo

#

ngl

crimson vapor
#

more confusing

pale vessel
#

customizable caching, good command client, why is it "not that good"?

crimson vapor
#

compared to discord-rose?

#

where you do everything as you want

#

no restrictions by classes or anything

pale vessel
#

yeah but discord-rose is more into "raw" API

crimson vapor
#

true

#

easier that way ngl

opal plank
#

detritus offers you everything out of the gate and makes it a good wrapper for new users in terms of command handling by a whole MILE

crimson vapor
#

don't have to deal with libs shits

quartz kindle
#

rose is a skeleton, detritus is a hulk

pale vessel
#

discord-rose is not bad too, it's just that you'd have to rely on advaith for discord API docs xdxdxd

crimson vapor
#

advaith?

opal plank
#

detritus is a stable and complete library

crimson vapor
#

so is discord-rose

quartz kindle
#

advaith is addicted to discord

pale vessel
#

exactly, like i don't get why

opal plank
#

oh

pale vessel
#

he should work there already when he can

opal plank
#

i forgot to mention

pale vessel
#

but like he's young

opal plank
quartz kindle
#

pretty sure hes waiting for an opportunity for it

crimson vapor
#

ah

#

thank you for #deleted-channel

pale vessel
#

you're not in DAPI?

#

bru

opal plank
#

imagine not being in DAPI

#

scrubs

#

detritus is official library

earnest phoenix
#

Detritus is really nice, discord-rose is also fine, detritus just has anything you need literally

crimson vapor
#

ok im there now

earnest phoenix
crimson vapor
#

I mean

earnest phoenix
crimson vapor
#

I did the caching options erwin gave me

#

it stopped responding

#

so yea

earnest phoenix
#

He's also banned here

#

Spamming and a bunch of other shit

opal plank
#

gonna be honest, another reason why theres not much talk in the detritus chat is that usually the users know what they're doing, so its very rare to get questions, but they answer it quickly

#

typescript users tend to be a bit more knowledgeable

#

the difference is:

earnest phoenix
opal plank
#

d.js you can google something and find an example of 20-30 lines on how to do something
on detritus you have the same thing done more performant and by the lib with 3, but not many people ask about it cuz they check either the source or the docs

crimson vapor
#

I mean a ping pong command in d-rose is like 10 lines total

#

what is it in detritus?

pale vessel
#

1 line

opal plank
#

that message i sent shows you the difference in the commands loader

crimson vapor
#

show

pale vessel
#

i mean in js everything can be minified to one line so that doesn't really count

crimson vapor
#

ok

#

readable lines*

quartz kindle
#

just thought of something

crimson vapor
#

1 statement per line

quartz kindle
#

how does one minify a py file

#

lmao

crimson vapor
#

you dont lol

opal plank
#

this is how you load all commands in detritus
No needs for FS, reading dirs, attaching stuff to commands, mapping them, making your own handler, none of that

quartz kindle
#

py bad haha

crimson vapor
#

its already hard enough to read

pale vessel
opal plank
#

im telling you, detritus is possibly the best lib out there for js

crimson vapor
#

no

#

who is erwin talking to?

quartz kindle
#

everyone

crimson vapor
#

yea but

#

we all know his opinions

quartz kindle
#

thats what a missionary does

crimson vapor
opal plank
#

im a messiah not a missionary

earnest phoenix
#

We all basically know erwin

quartz kindle
#

xD

crimson vapor
earnest phoenix
#

When he explains stuff, it's serious shit

crimson vapor
#

like

#

at what point is this just ads?

#

tbh

quartz kindle
#

never

crimson vapor
#

nah

#

I mean he won't ever respond to me so I can shit talk the lib all I want

#

win-win situation

crimson vapor
#

yea

#

ban erwin for ads?

earnest phoenix
#

Perhaps mmLol

crimson vapor
#

@earnest phoenix did you/could you make a bunch of commands for my dbl-reviewal-simulator bot?

earnest phoenix
#

yes

crimson vapor
#

you did or will?

earnest phoenix
#

What commands tho

crimson vapor
#

any

#

I literally just need a bunch of commands

#

the more inputs the better

earnest phoenix
#

y tho

crimson vapor
#

to annoy bot reviewers

earnest phoenix
#

Oh

#

Just loop through and set commands to the command handler with it sending a single response in every command @crimson vapor

opal plank
#

not really, no

earnest phoenix
opal plank
#

d.ts is just a type file

crimson vapor
#

no @earnest phoenix real commands lol

opal plank
#

depending on what you doing, yeah

#

a .d.ts just imports the types from that file

#

thats what the .d is for

#

declarations

#

theres no functional code in it

earnest phoenix
opal plank
#

a lot of people like to having their interfaces inside their index.ts file

#

after a while it gets quite big, so i like to refactor it

#

aka put everything unecessary into another file

#
//index.ts
interface APIResponse {
name: string,
date: Date
}

let response:APIresponse = fetch('ulr')

// instead you can do
//index.ts
let response:APIResponse = fetch('url');

//index.d.ts
export interface APIResponse {
name: string,
date: Date
}
``` @gritty tartan 
now your index.ts is relatively smaller
#

this is just 1 example, but you can see this stacking up

stark abyss
#

are all packages on npmjs legal to use?

#

Or like some are questionable.. like unofficial stuff you get me?

earnest phoenix
#

Why wouldn't they be legal, the npm registry is a place where you publicly publish something for other developers to use, so i don't see why it would be illegal

stark abyss
#

k

stark abyss
earnest phoenix
#

Web scraping is fine

plucky umbra
#

Hi, i am new

earnest phoenix
#

Well the package has no control over that so

stark abyss
#

wait what?

#

there are so many packages named imdb or imdb-api (not official)

#

they are clearly web scrapping

pale vessel
#

you can use an alternative instead, like TMDb API

stark abyss
#

Yeah thanks for that i found that and one other

#

im just trying to understand how it works

cobalt island
#

why is ctx not registered as a command

#

is it because of the python version i have or the d.py

crimson vapor
earnest phoenix
#

Hello

patent lichen
#

Hi

#

Can someone help me with finding an Arabic gaming bot

#

😁

#

Plz and ty

grand apex
#

Hi,

#

I am not getting any errors, the token does not log in.

normal sage
grand apex
#

No

#

bot

normal sage
#

What lang?

grand apex
#

js

crimson vapor
#

show code

drifting shell
#

php

latent heron
#

lua

drifting shell
#

am0gus lang

grand apex
#

Not the code, the bot does not log in. There is a problem originating from Discord.

latent heron
#

that sounds like

#

either a code or token problem

normal sage
#

Because 80% of the time it's probably a you error.

rustic nova
#

Any error messages

grand apex
#

Hope

rustic nova
#

Simply it "not logging in" doesn't tell me much, i would suspect it being a wrong token then

grand apex
#

Im not getting an error.

#

The token you know does not work.

rustic nova
#

Then your discord bot token is wrong

grand apex
#

I wrote a different bot token, it worked.

#

I'm doing Copy / Paste.

rustic nova
#

Go to your developer portal and see if your bot was flagged for suspicious behaviour

grand apex
#

Where exactly is it?

worldly sable
#

Hi

rustic nova
#

In your discord developers portal?

#

From where you get your bot token?

grand apex
#

portal

worldly sable
#

@rustic nova hii

grand apex
#

I did not see any suspicious markings.

#

Even regenerating the token didn't work. -_-

rustic nova
#

Regenerate your token

#

Otherwise make dummy code and use your token on that

#

Like a simple login, then get your bots name

grand apex
#

Could there be a situation like being blacklisted?

#

Because I tried different bots it worked.

rustic nova
#

Try some dummy code

autumn dust
#

i would be very thankfull if someone will fill out this fields

{
    "load": "",
    "verified": "",
    "error": "",
    "info": "",
    "music": "",
    "queue": "",
    "success": "",
    "music1": "",
    "fun": "",
    "chatbot": "",
    "image": "",
    "anime": "",
    "nsfw": "",
    "other": ""
}
#

dm me with filled fields

summer torrent
#

with?

autumn dust
#

emoji unicodes

#

discord

cinder patio
#

5 bucks per emoji

pale vessel
#

yes this ^^

marble juniper
cinder patio
#

\emoji You can do it yourself \❌ You just have to get creative

autumn dust
#

wait

#

thats isnt what i wanted

marble juniper
#

what did you want then

autumn dust
#

because im very tired

#

i don't want to do that

cinder patio
#

nobody's gonna do it for you

summer torrent
#

then don't do that

marble juniper
#

nobody will do it for you

#

sorry

autumn dust
#

ok im gonna do that by my self

marble juniper
#

if you are too lazy to copy paste emojis

#

then idk

alpine marsh
#

i have a question about regex

marble juniper
#

can't help

alpine marsh
#

im currently made it if it matches the regex, delete the world. Is there a way to whitelist the word in the regex/ignore certain words?

My regex: n(l|i|b|1|e)(gg|g|b|bb|q|qq|4)(er|3r|a|ro)

summer torrent
alpine marsh
#

thanks

cinder patio
#

delete the world? 😳

marble juniper
#

😳

sly grotto
#

how to get webhook url

lusty quest
river panther
cinder patio
#

Press the Insert key

modern granite
#

this is the code where the error appeared

#

but it works fine

#

I am just worried because of the error

river panther
#

there is a mistake in the code

modern granite
#

where?