#development

1 messages ยท Page 1293 of 1

quartz kindle
#

@earnest phoenix if you're using discord.js v12, its member.roles.add()

earnest phoenix
#

I will try that

quartz kindle
#

@earnest phoenix any proper database will work, sqlite, mysql, mongodb, postgresql, and many others

earnest phoenix
#

@earnest phoenix if you're using discord.js v12, its member.roles.add()
@quartz kindle It comes back with the error "member is not defined"

quartz kindle
#

i didnt tell you to remove message

earnest phoenix
#

oop-

#

i didnt tell you to remove message
@quartz kindle Thanks :D

slate oyster
#

So I can fix their memory leak for them and create a PR

#

*Assuming I am smart enough

#

*And can reproduce it

#

If I managed to make a successful fix, and the PR got pulled, it wod fix all of life's problems

left cipher
#

how can I get the avatar command to do this?

#

๐Ÿ˜ณ

sudden geyser
#

You write the code for it.

#

What library are you using

ionic dawn
sudden geyser
#

You could do npm install sqlite3 && echo success to see if it worked.

novel fjord
#

i guess i should open my eyes a bit more.

#

development channel ftw.

ionic dawn
#

npm goes brrrr

shut trellis
#

Heyy anyone help me plzzz

#

i m trying to create server greeting message but it doesn't work anyone help me plzz

sonic lodge
#

d.js 12 turns every cache into a manager

#

it needs to be member.guild.channels.cache

shut trellis
#

Awww okay i'll try

#

๐Ÿ˜Ÿ ๐Ÿ˜Ÿ ๐Ÿ˜Ÿ

#

Still it doesn't work

#

Wtf๐Ÿ˜ช ๐Ÿ˜ช ๐Ÿ˜ช ๐Ÿ˜ช

sonic lodge
#

so show the new error

shut trellis
#

Okay same as before wait i ll send u

slate oyster
#

The other user rebooted their bot for now
So, until their bot leaks again, mine is working for now

shut trellis
#

It says type error wtf ๐Ÿ˜”

sonic lodge
#
  1. you can take screenshots btw
  2. you just copy pasted what i sent straight into your code
#
  1. your token is exposed
#

delete that pic now and regen it

slate oyster
#

Just to be clear, that's a user with an invisible pfp, not a continuation of my message
For readers

shut trellis
#

@sonic lodge can i send u personal msg

sonic lodge
#

we can talk here

#

do you have any experience in programming?

shut trellis
#

M new

sonic lodge
#

i highly recommend you learn the basics of javascript before jumping straight into making a bot

#

there's tons of resources online and also in this channel's pins

shut trellis
#

Okay but i know basic commands of bots so i wanna learn

#

Plzz tell me what about this error

earnest phoenix
#

Test

shut trellis
#

I m sending u my ss of my code wait

#

Where s is the pb in my code

sonic lodge
#

that isn't a screenshot, but like i said

#

you copy pasted what i sent straight into your code, seemingly without understanding what it was

shut trellis
#

Yea

#

But

sonic lodge
#

so i recommend that you take a course on javascript basics, and i'll jus say what you need to fix here

shut trellis
#

Okay okay i can understand

sonic lodge
#

it should be member.guild.channels.cache.find

shut trellis
#

@sonic lodge Okay again i'll try...

#

Wtf

#

๐Ÿ˜ฑ

#

It's working

#

Brooo pooled

#

Seeee

sonic lodge
#

nice

shut trellis
#

Wow hey pooled broo r u here

#

@sonic lodge Yea

#

Thnxxxx alot

sonic lodge
#

now if you come back in here later, you're gonna have decent javascript knowledge, right?

shut trellis
#

@sonic lodge Yea broooh

#

Omg i can't believe that broo thnxxxxxx

#

Thk u so muchhhhhh

#

Talk to u later again ..

sonic lodge
#

i'm not ignoring you, i just don't have or use one

lusty furnace
#

im currently waiting for my second bot to get on top gg

#

i deleted my first one bc it got boring and it wasnt even made using actual code

earnest phoenix
#

Hi peeps

carmine summit
#

Hm

junior hornet
#

where is the best place to ask for help on this sever

#

hello im using glitch and keep getting this error Check /app/package.json: command not found. Is a start script missing? https://glitch.com/help/failstart/in logs how can i fix this
does anyone know how to fix ive tryed adding app/ to the start of the file name for package.json
plz ping me or dm if you can help

compact oriole
#

well it's glitch LUL

junior hornet
#

yeah.. but do you know any way to set a start script im not great at coding

#

lmao

compact oriole
#

I don't know how to use a crooked system

#

just run it on a vps

winged mulch
#
<style>
body {background-image : url("https://thumbs.gfycat.com/AgileElasticEagle-size_restricted.gif")}
</style>```
Why won't it change my bot's backgound page on top.gg?
compact oriole
#

the background-image probably can't be a gif, not sure

#

or just try with !important

winged mulch
#

It used to work, this is so frustrating

junior hornet
#

@compact oriole when people ask for help generally they don't want snarky responses about what system they use for coding everyone's got there own way of doing things, you shouldnt tell people how to do something bc they will ask for help if they need it i dont mean this in a bad way im just being up front : )

compact oriole
junior hornet
compact oriole
#
  1. you get a lot more help when you code it normally
  2. you shouldn't trust "free hosters" for multiple reasons
  3. anyone converted from glitch is a win in my book
junior hornet
#

usually what is do is write it in glitch and host with google cloud monitoring

compact oriole
#

google cloud monitoring is not hosting?

#

it is just a monitoring service

junior hornet
#

honestly im pretty new to this so... i dont really know lol

winged mulch
#

@compact oriole I had to do this:

body style="background-image: url(https://thumbs.gfycat.com/AgileElasticEagle-size_restricted.gif);">
</body>```
compact oriole
#

bruh that's whack :P
but at least it works

restive furnace
#

didn't html <img src="url" \>work?

sturdy jungle
#

what tech stack would you guys recommend to use for a bot dashboard?

glad charm
#

If you're familiar with JS, React/MongoDB maybe

fluid basin
#

if you're using python then: Flask/django + database + html/css frameworks (e.g. bootstrap)

stark abyss
#

um my bot isn't getting on no errors but client on ready isn't running

fluid basin
#

library and version?

#

did you enable debug mode?

stark abyss
#

djs

#

latest

#

no

fluid basin
#

try again with debug on

#

client.on('debug', console.log);

stark abyss
#

it was working fine then it stopped sudennly

#

ok

#

429 hit on route /gateway/bot

restive furnace
#

what tech stack would you guys recommend to use for a bot dashboard?
Familiar with JS -> React w/ Next.js and DB

stark abyss
#

too many requests?

fluid basin
#

you have been ratelimited then

#

does it say how long its going to wait?

stark abyss
#

no

fluid basin
#

pretty sure it should

stark abyss
#

hold on then

fluid basin
#

post here your entire output (remove/hide the token)

stark abyss
#

bunch of 429 hit on route /gateway/bot

#

messages nothing else

#

and token

#

it keeps on saying that msg

#

yeah its on a loop

fluid basin
#

you might have triggered a ratelimit

stark abyss
#

sounds reasonable lol

#

what is the ratelimit for sending messages

fluid basin
#

not sure what ratelimit did you hit

#

what os is your bot running on?

stark abyss
#

no clue

fluid basin
#

linux/windows/mac

stark abyss
#

mac

#

repl it

fluid basin
#

does your bot work locally

stark abyss
fluid basin
#

well I'm not too sure then

#

all I can tell you is that your bot is ratelimited somehow

#

and its refusing to get /gateway/bot which stops it from logging in

stark abyss
#

ok

#

very good info thank you so much

silver lintel
#

if i have a ms amount, how to see how many hours, or minute or seconds in it?

fluid basin
#

if you don't like calculating, use a library

#

conversion ratio is:
1s = 1000ms
1min = 60s
1hr = 60min

silver lintel
#

ok thanks

opaque seal
#
function timeConversion(millisec){
    let cd = 24 * 60 * 60 * 1000,
        ch = 60 * 60 * 1000,
        d = Math.floor(millisec / cd),
        h = Math.floor( (millisec - d * cd) / ch),
        m = Math.round( (millisec - d * cd - h * ch) / 60000),
        pad = function(n){ return n < 10 ? '0' + n : n; };
    if( m === 60 ){
        h++;
        m = 0;
    }
    if( h === 24 ){
        d++;
        h = 0;
    }
    return d +" days : "+ pad(h) +" hours : "+ pad(m) + " mins ";
}```
You can use this for example @silver lintel
silver lintel
#

i used

  convertMS: function(ms) {
    var d, h, m, s;
    s = Math.floor(ms / 1000);
    m = Math.floor(s / 60);
    s = s % 60;
    h = Math.floor(m / 60);
    m = m % 60;
    d = Math.floor(h / 24);
    h = h % 24;

    return {
      d: d,
      h: h,
      m: m,
      s: s
    };
  },
#

using modulus

leaden rover
#

How do I make a command (that only those with the manage_server ability can use) that can enable/disable a command or cog in a guild?

valid grotto
#
var x = message.guild.roles.cache.get('some-role-id')
console.log(x) //<- This is defined and fully returns an array
console.log(x.name) //<- For some reason this is undefined

Can anyone help?

slender thistle
#

Attach some sort of a list to your bot as a property, possibly make it a list of IDs. Using the @command.check decorator, simply return ctx.guild.id in (or not in) in bot.your_list_as_property

leaden rover
#

ok, what about a command? That's only IF its disabled

slender thistle
#

I mean, apply the deco to all your commands that you want to be enabled/disabled via a dynamic setting

leaden rover
#

ok

#

This is all I have:

    @commands.guild_only
    @commands.command(name="disable")
    @commands.cooldown(1, 10, commands.BucketType.user)
    @commands.has_guild_permissions(manage_server=True)
    async def disable(self, ctx, command):
        """Disables a command"""

    @commands.guild_only
    @commands.command(name="enable")
    @commands.cooldown(1, 10, commands.BucketType.user)
    @commands.has_guild_permissions(manage_server=True)
    async def enable(self, ctx, command):
        """Enables a command that was disabled already"""```
slender thistle
#

Isn't it manage_guild?

leaden rover
#

That's what I meant lol

slender thistle
#

also the guild_only deco should require parentheses unless that changed

#

Oh, that's how it works

#

huh, that'll be a harder one

valid grotto
#

Anyone that can help me with my problem?

opal plank
#

@valid grotto arrays dont have 'names', get some value in the array first[

#

im fairly certain it doesnt return an array btw

valid grotto
#

Oh or whatever it's called, a collection or whatever

#

It was working yesterday and it should've work like it normally would

#

but for some reason it isn't now

opal plank
#

its a collection

#

a Map, basically

valid grotto
opal plank
#

map also dont have .name

valid grotto
opal plank
#

OR

valid grotto
#

But it was working yesterday ๐Ÿค”

pale vessel
#

that's a role

#

wait nm

opal plank
#

thats not how it works though

pale vessel
opal plank
#

it either returns a role or not

pale vessel
#

member id for role?

opal plank
#

im fairly certain role name is required

pale vessel
#

shouldn't it be the role id?

opal plank
#

lemme double check rq

valid grotto
#

some-member-id is an actual ID

pale vessel
#

yes and is it a role id or a member id?

valid grotto
#

yes and is it a role id or a member id?
@pale vessel Oops role*

slender thistle
#

@leaden rover so, I think what would be appropriate is a dictionary (bot property, again) where key is guild ID and value is a list of command names. In the command.check function, check if command name is in that list

pale vessel
#

so it returns a role just fine but you can't access name?

leaden rover
#

ok

pale vessel
#

hm

valid grotto
#

so it returns a role just fine but you can't access name?
@pale vessel Yup, correct!

#

It was totally fine yesterday

opal plank
#

its not optional

#

its always there

modest smelt
#

How to do hyperlinks in python?

valid grotto
#

Might have something to do with my hosting maybe? Let me try local

pale vessel
#

you mean markdown hyperlinks for embeds?

slender thistle
opal plank
#

dont think theres anything related to that

slender thistle
#

works in embed descriptions and field values

opal plank
#

it either returns a value or undefined

#

period

#

if it returns a value, it always has a name

valid grotto
#

@opal plank I do have a check for that

modest smelt
#

text in strings
@slender thistle example pls?

opal plank
#

how are you checking it?

valid grotto
#

and it clearly returns a value as I showed on the screenshot

#

if(theRole == null) {

pale vessel
#

can you post the result somewhere?

opal plank
#

thats why you bork

pale vessel
#

the role itself

opal plank
#

i told you

#

either a role or UNDEFINED

#

not null

#

if(!theRole)

slender thistle
#

discord.Embed(description="[CLICK THIS TO GET FREE ROBUX](http://127.0.0.1/)")

pale vessel
#

but undefined == null is true

valid grotto
#

Its the same erwin

modest smelt
#

ok

valid grotto
#

Pretty sure it is

opal plank
#

check with falsey

pale vessel
#

since he's not using ===

modest smelt
#

thanks

valid grotto
#

The thing is it was working yesterday, if I throw an invalid role, it'll stop it from fetching the role

opal plank
valid grotto
#

๐Ÿค”

#

Mad confused right now ๐Ÿ˜‚

pale vessel
#

can you show your actual code?

opal plank
#

cuz it makes no sense

pale vessel
#

maybe there's something different

opal plank
#

its either returned or not. if it is, it always has a name

valid grotto
#

I'll dm you it hold on @pale vessel

opal plank
#

unless you are obfuscating i dont think this should dbe happening

modest smelt
#

@slender thistle u know how many places they have the invite thing on the bottom of the embed. How do they do that?

slender thistle
#

The bottom...

pale vessel
#

footer?

slender thistle
#

Mind giving an example?

modest smelt
#

like this

slender thistle
#

Footer doesn't allow hyperlinks

modest smelt
#

ill send screenshot

slender thistle
#

Sure

pale vessel
#

hyperlinks as text troll

modest smelt
#

how do they do that?

pale vessel
#

that's a field

modest smelt
#

oh

#

ok

pale vessel
#

but add a field instead of setting the description

valid grotto
#

I'll just show you here @pale vessel @opal plank

let theRole = message.guild.roles.cache.get(args[1]);
  if(theRole == null) {
    return message.channel.send(greenembed.setDescription(`Your role ID is invalid.`));
  } else {
  sql.query(`UPDATE xxxx SET roleid = ${theRole.id} WHERE gid = ${message.guild.id}`) // THIS RETURNS A VALUE
  message.channel.send(greenembed.setDescription(`${theRole.name}`)) // WHILE THIS DOESN'T
}}
pale vessel
#

that should work

valid grotto
#

Yeah exactly lol

pale vessel
#

by the way, use !theRole

#

it's a better practice

valid grotto
#

I'll keep that in mind

opal plank
#

spoonfeeding but whatever, try this

modest smelt
#

is that correct?

#

?

#

embed.add_field(name = "**Support Server**", value = "[Join the server!](server link)")

pale vessel
#

you had an invite url

#

that looks correct

opal plank
#

AH

#

i see why its erroring

#

your scope is borked

#

it doesnt return

#

@valid grotto

valid grotto
#

Oh lol wait let me try

opal plank
#
let theRole = message.guild.roles.cache.get(args[1]);
  if(!theRole) return message.channel.send(greenembed.setDescription(`Your role ID is invalid.`));
  sql.query(`UPDATE xxxx SET roleid = ${theRole.id} WHERE gid = ${message.guild.id}`) // THIS RETURNS A VALUE
  message.channel.send(greenembed.setDescription(`${theRole.name}`)) // WHILE THIS DOESN'T
#

@valid grotto

valid grotto
#

Yup trying

pale vessel
#

that wouldn't be a problem would it?

#

i don't think so

valid grotto
#

Still no luck @opal plank

#

What is going on smh

opal plank
#

howcome?

pale vessel
#

why would it work

opal plank
#

show me what you put on the code

valid grotto
#

The same as yours

opal plank
#

show the whole thing

#

including the error

#

if theres any

valid grotto
#
let theRole = message.guild.roles.cache.get(args[1]);
  if(!theRole) return message.channel.send(greenembed.setDescription(`Your role ID is invalid.`));
  sql.query(`UPDATE xxx SET roleid = ${theRole.id} WHERE gid = ${message.guild.id}`)
  message.channel.send(greenembed.setDescription(`Setting your Member Role ID to : **${theRole.name}**`))

Error :

UnhandledPromiseRejectionWarning: TypeError: theRole.name is not a function
``` @opal plank
opal plank
#

you dont have anything else ontop of your code?

abstract scarab
#

Try find instead of get

pale vessel
#

nah

opal plank
#

its a map

#

get is fine

#

as long as you check it for falsey

abstract scarab
#

I use find lolz

opal plank
#

you do you

pale vessel
opal plank
pale vessel
#

IT'S NOT A FUNCTION

valid grotto
#

you dont have anything else ontop of your code?
@opal plank Just some embeds

pale vessel
#

it's somewhere else

earnest phoenix
#

Hi

opal plank
#

^^

earnest phoenix
#

Any dev?

valid grotto
#

No it's on there line 26

opal plank
#

somewhere

pale vessel
earnest phoenix
#

Any android dev?

opal plank
#

ctrl + f your code and search for theRole.name()

valid grotto
earnest phoenix
#

Any android bot dev please help me I am a newbie

pale vessel
#

can you show the stack trace?

opal plank
#

wait what

#

oh

#

i see

pale vessel
#

hm

valid grotto
#

Stack trace?

opal plank
#
let theRole = message.guild.roles.cache.get(args[1]);
  if(!theRole) return message.channel.send(greenembed.setDescription(`Your role ID is invalid.`));
  sql.query(`UPDATE xxx SET roleid = ${theRole.id} WHERE gid = ${message.guild.id}`)
  greenembed.setDescription(`Setting your Member Role ID to : **${theRole.name}**`)
  message.channel.send(greenembed)
#

try that

valid grotto
#

Thank you for helping me though, first of all โค๏ธ @pale vessel @opal plank

#

Alright hold on

opal plank
earnest phoenix
#

Any android bot dev?

pale vessel
#

setDescription() returns this right?

#

shouldn't it work?

opal plank
#

what?

#

erm

#

lemme check

earnest phoenix
#

I want to develop a fully functional bot for free but on android

#

Anyone?

pale vessel
opal plank
#

yes it returns this

pale vessel
#

which is the embed itself

valid grotto
#

Still no luck :/

opal plank
#

same error?

earnest phoenix
#

I want to develop a fully functional bot for free but on android

valid grotto
#

Yup, same line and what not

pale vessel
#

can you show the full error?

earnest phoenix
#

Yup

onyx hare
#

Does the discord bot development work with py 3.8? (I do have 3.6 Aswel but Iโ€™m curious as I canโ€™t use pip i to add anything addons)

earnest phoenix
#

Yo anyone

opal plank
#

@earnest phoenix be patient

#

and stop spamming

earnest phoenix
#

@opal plank Ok

valid grotto
#

can you show the full error?
@pale vessel Yeah thats it ```js
UnhandledPromiseRejectionWarning: TypeError: theRole.name is not a function

opal plank
#

whole thing

#

thats half of it

#

wheres the trace?

pale vessel
#

1/4 even

opal plank
#

stack trace

#

anything more

#

preferably i'd like to see your line error too

pale vessel
#

Does the discord bot development work with py 3.8? (I do have 3.6 Aswel but Iโ€™m curious as I canโ€™t use pip i to add anything addons)
@onyx hare sure, it says there 3.5.3+

opal plank
#

if you can, provide the line count from your code too along with the trace

#

a screenshot would do

onyx hare
#

Hmm then itโ€™s my python acting up as I canโ€™t pip install dblpy

#

It returns โ€œpip is not a function/batchโ€

pale vessel
#

you might want to ask @slender thistle for that

terse parcel
#

Once my bot is improved, can I make the things I want it to do?

valid grotto
#

I'll PM you guys as it's going to be quite long

opal plank
#

just send a screenshot here

pale vessel
#

i'd be more comfortable helping here

valid grotto
#

Ah sure alright wait

pale vessel
#

so this is config.js line 26?

tulip yacht
#

:blobdance:

urban ridge
pale vessel
#

can you show line 26 of config.js in your editor?

#

just that one line

earnest phoenix
#

CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: TypeError: 'list' object is not callable

opal plank
#

where'd you get line 26?

earnest phoenix
#

What the fuck does it mean?

pale vessel
#

he sent me the stack trace

opal plank
#

oh that explains it

#

welp, since you helping them, imma go grab a drink

#

i do sometimes wonder how i can make such perfect code tbh

onyx hare
#

@earnest phoenix do you have it set up as โ€œfrom discord.ext import commandsโ€?

earnest phoenix
#

Yes @onyx hare

opal plank
#

sum is 983, skipping 1203

onyx hare
#

Hmm

opal plank
#

someone care to explain how i can get more channels that were originally passed?

onyx hare
#

Is it a permission based

opal plank
earnest phoenix
#

@opal plank Don't flex your math skills ๐Ÿฅบ I feel inferior

opal plank
#

luckily thats on the testing branch

#

its fucking up cuz my sharding

earnest phoenix
#

Is it a permission based
@onyx hare yes

#

@opal plank Bro I love that anime in your PFP

opal plank
#

ty

earnest phoenix
#

It's hot๐Ÿ˜Ž

#

||I guess it's not you ๐Ÿ˜‚||

pale vessel
#

it could be

valid grotto
#

What the fuck alright so before this, my code was like

  greenembed.setDescription(`Setting your Member Role ID to : **${theRole.name}**\n\nEnable by typing ``b!enable``)

And I fixed it by removing
\n\nEnable by typing ``b!enable

Any explanation @pale vessel @opal plank

earnest phoenix
#

read your code

#

Will anyone help me now?

opal plank
#

ask invalid-user

#

you sending HIM the logs

earnest phoenix
#

you start your string with a backtick and you have backticks in your string
so js thinks that you want to close the string, not have backticks inside of the string

onyx hare
#

Try โ€œfrom discord.ext.commands import has_permissions, CheckFailureโ€ then the bot you put under the @paper bluff.command is @has_permissions (administrators=True) if you want it to be admin only or ifs itโ€™s a purge command you add (administrators=True, mange_messages=True)
@earnest phoenix

opal plank
#

thats why i told ya to send the logs n stuff here

valid grotto
#

Ahh

pale vessel
onyx hare
#

10/10 to tht one guy who has bot in there name wotta tag

valid grotto
#

Thanks @opal plank @pale vessel . I really do appreciate it

lilac gale
#

How can I make my bot send the welcome message in the channel it gets invited to?

earnest phoenix
#

you can prevent that behaviour by escaping the backtick inside of the code

#
\`
valid grotto
#

@earnest phoenix Gotcha, thanks!

earnest phoenix
#

:sad:

pale vessel
#

what makes it think it's a function though

royal portal
#

hey guys. should I have restrequesttimeout on a high or low number. not sure whats best

opal plank
royal portal
#

most people have low

earnest phoenix
#

Anyone?

pale vessel
earnest phoenix
#

yo

opal plank
#

im gonna start banging my head on the wall for not noticing unescaped quotes

pale vessel
#

makes sense

earnest phoenix
#

im gonna start banging my head on the wall for not noticing unescaped quotes
@opal plank Lol

valid grotto
#

is this it?
@pale vessel Ahh it make sense

lilac gale
#

How can I make my bot send the welcome message in the channel it gets invited to?
@lilac gale

opal plank
#

@lilac gale can we not spam?

lilac gale
#

I sent it twice?

valid grotto
#

I must've put the backticks today hence why it was working yesterday ๐Ÿคฆโ€โ™‚๏ธ

opal plank
#

3 times

#

also you arent providing any info

#

which language?

sick fable
#

Try โ€œfrom discord.ext.commands import has_permissions, CheckFailureโ€ then the bot you put under the @paper bluff.command is @has_permissions (administrators=True) if you want it to be admin only or ifs itโ€™s a purge command you add (administrators=True, mange_messages=True)
@earnest phoenix
@onyx hare thanks brother. By the way Vodka is my alt

opal plank
#

which library?

lilac gale
#

Js.

#

node.js

#

Discord.js

opal plank
#

listen to guildJoin event

#

guildJoin

lilac gale
#

Yeah.

opal plank
#

actually

onyx hare
#

@sick fable np

opal plank
#

guildCreate

#

not guildJoin

lilac gale
#

But then I can't know what the names of the channels will be.

opal plank
#

it returns a guild

lilac gale
#

So I need it to send it in a random channel/ the channel the bot gets invited to.

opal plank
#

get the first channel that has @ everyone permission to SEND_MESSAGES

lilac gale
#

OMG yeah.

sick fable
#

Guys basically what happened to Members plus bot?

opal plank
#

i personally dislike using systemlog channels

#

cuz its stupid

lilac gale
#

Guys basically what happened to Members plus bot?
@sick fable I'm a senior support there.

sick fable
#

@sick fable I'm a senior support there.
@lilac gale can you help me wit it?

#

I just wanna know the reason of it. I wanna grew my server up

opal plank
#

you should ask in discord-devs

lilac gale
#

So, M+ is a J4J bot. And discord doesn't verify J4J bots so it won't be able to grow after 7 October.

opal plank
#

since its a upper decision

lilac gale
#

So it would be

opal plank
#

@sick fable

sick fable
#

So, M+ is a J4J bot. And discord doesn't verify J4J bots so it won't be able to grow after 7 October.
@lilac gale :(((

compact oriole
#

fuck invite 4 invite bots

opal plank
#

^^

pale vessel
#

only scummy people use them

sick fable
#

Lmaoo I only needed it to grow my server up๐Ÿ˜€

opal plank
#

anyhow, i need to get back making my sharding/clustering

lilac gale
#

Wait.

sick fable
#

Noice

lilac gale
#

How would I find the channels where everyone can send messages? @opal plank

sick fable
#

I am up to my gfx designing

earnest phoenix
#

that's a sign that your server is dry and boring, you don't have to persuade people into joining it

opal plank
#

pong

#

either filter or for loop

lilac gale
#

Ok.

sick fable
#

that's a sign that your server is dry and boring, you don't have to persuade people into joining it
@earnest phoenix mhmmmm, it's dey

#

Dry*

valid grotto
#

I'm pretty sure you're a helper on d.js discord right? @opal plank

earnest phoenix
#

how can i keep foreaching on a reaction over and over again until it finds someone who reacted with the same discriminator

pale vessel
#

you should use .find() if you want to find only one member and filter() for multiple assuming you're working with a collection

earnest phoenix
#

can i also filter it to see if they have similar elo in the db?

slender thistle
#

@onyx hare screenshot of the error please?

autumn aspen
#
const { MessageEmbed } = require("discord.js");

module.exports.config = {
    name: "report", 
    aliases: []
}
    
module.exports.run = async (client, message, args) => {
    if (!message.member.permissions.has("MANAGE_MESSAGES"))
    return message.channel.send(`No.`);
  let User = message.mentions.users.first() || null;

  if (User == null) {
    return message.channel.send(`You did not mention a user!`);
  } else {
    let Reason = message.content.slice(bot.prefix.length + 22 + 7) || null;
    if (Reason == null) {
      return message.channel.send(
        `You did not specify a reason for the report!`
      );
    }
    let Avatar = User.displayAvatarURL();
    let Channel = message.guild.channels.cache.find(
      (ch) => ch.name === "reports"
    );
    if (!Channel)
      return message.channel.send(
        `There is no channel in this guild which is called \`reports\``
      );
    let Embed = new MessageEmbed()
      .setTitle(`New report!`)
      .setDescription(
        `The moderator \`${message.author.tag}\` has reported the user \`${User.tag}\`! `
      )
      .setColor(`RED`)
      .setThumbnail(Avatar)
      .addFields(
        { name: "Mod ID", value: `${message.author.id}`, inline: true },
        { name: "Mod Tag", value: `${message.author.tag}`, inline: true },
        { name: "Reported ID", value: `${User.id}`, inline: true },
        { name: "Reported Tag", value: `${User.tag}`, inline: true },
        { name: "Reason", value: `\`${Reason.slice(1)}\``, inline: true },
        {
          name: "Date (M/D/Y)",
          value: `${new Intl.DateTimeFormat("en-US").format(Date.now())}`,
          inline: true,
        }
      );
    Channel.send(Embed);
  }
};

Why does it say bot is not defined am I blind?

#

oh fuck I forgot smth

pale vessel
#

doo doo

#

code wall

autumn aspen
#

yup

pale vessel
#

you haven't figured it out?

earnest phoenix
#

How do I access a variable outside of an foreach (js)

crisp vine
#

?

earnest phoenix
#

wdym?

#

so if i do js reaction.forEach(async u => { var user2 = u; }) console.log(user2)

pale vessel
#

like this maybe?```js
let foo = null;

collection.forEach(x => {
...code
foo = "something";
});

foo; // something```

#

var xd

earnest phoenix
pale vessel
#

you declare it outside, assign it in the inside

earnest phoenix
#

Don't mind me, im just bored.

pale vessel
#

that way you can access it outside of the forEach scope

earnest phoenix
#

@pale vessel yh but it just logs null

#

Will anyone help me now?

#

it doesnt log u

pale vessel
#

if you log it before the loop that is

#

you don't declare it inside the forEach

#

you have to declare it outside first:```js
let user2;

reaction.forEach(async u => {
user2 = u;
})

console.log(user2)```

earnest phoenix
pale vessel
#

async don't work in forEach

#

use a for loop for async

earnest phoenix
#

how

#

map?

pale vessel
#

map won't do either

#
for (const u of reaction.values()) {
    // here
}```
opal plank
#

Reminder for the future: DO NOT FORGET TO REMOVE DATABASE CALLS FROM THE SLAVE PROCESSES
specially when trying to run 70 of them

earnest phoenix
#

Who knows discordbot-script?

opal plank
patent geyser
#

heck

#

2020-10-04T10:32:39.138778+00:00 app[Worker.1]: at MessageCreateAction.handle (/app/node_modules/discord.js/src/client/actions/MessageCreate.js:31:14)
2020-10-04T10:32:39.138779+00:00 app[Worker.1]: at Object.module.exports [as MESSAGE_CREATE] (/app/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
2020-10-04T10:32:39.138780+00:00 app[Worker.1]: at WebSocketManager.handlePacket (/app/node_modules/discord.js/src/client/websocket/WebSocketManager.js:386:31)
2020-10-04T10:32:39.138780+00:00 app[Worker.1]: at WebSocketShard.onPacket (/app/node_modules/discord.js/src/client/websocket/WebSocketShard.js:436:22)
2020-10-04T10:32:39.138781+00:00 app[Worker.1]: at WebSocketShard.onMessage (/app/node_modules/discord.js/src/client/websocket/WebSocketShard.js:293:10)
2020-10-04T10:32:39.138781+00:00 app[Worker.1]: at WebSocket.onMessage (/app/node_modules/ws/lib/event-target.js:125:16)
2020-10-04T10:32:39.138782+00:00 app[Worker.1]: at WebSocket.emit (events.js:315:20)
2020-10-04T10:32:39.138783+00:00 app[Worker.1]: at Receiver.receiverOnMessage (/app/node_modules/ws/lib/websocket.js:797:20)
2020-10-04T10:32:39.210782+00:00 heroku[Worker.1]: Process exited with status 1
2020-10-04T10:32:39.257025+00:00 heroku[Worker.1]: State changed from up to crashed

opal plank
#

218% usage

unreal token
#

bruh

earnest phoenix
#

@pale vessel ok it works now, however if the if statement isnt true for all the reactions, how would u loop it again and again till it finally is true?

pale vessel
#

where do you get reaction?

#

from a collector?

earnest phoenix
#

messagereactionadd event

pale vessel
#

then it will keep on looping on every reaction

#

it won't stop until the collector stops

earnest phoenix
#

yh but i want it to keep looping till it finds someone not whenever someone reacts

pale vessel
#

i see

#

you can set a flag

#

but wait, do you want to stop the collector if that happens?

#

that would be simpler

earnest phoenix
#

wdym

pale vessel
#

you can close the reaction collector if it finds the match

earnest phoenix
#

yh

pale vessel
#

regardless of the given time

earnest phoenix
#

but would it close it for everyone else queuing ?

pale vessel
#

you can use collector.stop() if you find a match

#

yes, it will stop it completely

onyx hare
earnest phoenix
#

nvm then, dont stop the collector

#

i just need it to keep looping till it finds someone, and once it does it creates a channel witht hem

pale vessel
#

then you can do```js
let done = false;

collector.on("collect", () => {
if (!done) for (a of b) {
// something something
// if match
done = true;
}
});```

earnest phoenix
#

and that would keep looping until it finds one

pale vessel
#

it won't loop anymore if done is true

#

when do you want it to stop looping?

earnest phoenix
#

lemme explain 1s

pale vessel
#

you can also check if the variable is set, if not then you set it```js
// outside loop
let user1;

// in loop
if (!user1) user1 = something;```

#

that way it won't overwrite each other while still continuing the loop

earnest phoenix
#

when someone reacts, it will filter the reaction so they cant match against them self or the bot. it will keep looping through the reaction till it finds someone with similar elo in the db. it wont stop the for loop cuz it still need to match everyone else reacting if ygm

pale vessel
#

you can do the same with user2

#

and you can check if both users are set

#

if so, stop for example

earnest phoenix
#

scrap the stop collector idea

#

i dont want it to stop cuz it will end the queue for everyone once 1 game is found

winged abyss
#

I have a problem. I made my bot in discord.js but everytime i run a command it send three responds

narrow kettle
#

any idea how to arrange a queue from small to big without using .Orderby on c#

winged abyss
narrow kettle
#

or how to make this fucnction apply to all elements and not just one

public static Queue<int> arrange_big_small(Queue<int> q1)
        {
            Queue<int> q2 = new Queue<int>();
            int smallest = q1.Head();
            while (!q1.IsEmpty())
            {
                if (q1.Head() < smallest)
                {
                    smallest = q1.Head();
                }
                else
                {
                    q1.Remove();
                }
            }
            q2.Insert(smallest);
            return q2;
        }
pale vessel
#

@earnest phoenix

autumn aspen
#
const Discord = require("discord.js");

module.exports.config = {
    name: "poll", 
    aliases: []
}
    
module.exports.run = async (client, message, args) => {
    if (!message.member.permissions.has("BAN_MEMBERS"))
      return message.channel.send({embed: {color: "RED", description: `Error: not have enough permissions`}});
    const channel =
      message.mentions.channels.first() ||
      message.guild.channels.cache.get(args[0]);
    if (!channel) {
      return message.channel.send({embed: {color: "RED", description: `You did not mention / give the id of your channel!`}});
    }
    let question = message.content
      .split(`${client.prefix}poll ${channel} `)
      .join("");
    if (!question)
      return message.channel.send({embed: {color: "RED", description: `You did not specify your question!`}});
    const Embed = new Discord.MessageEmbed()
      .setTitle(`New poll!`)
      .setDescription(`${question}`)
      .setFooter(`${message.author.username} created this poll.`)
      .setColor(`RANDOM`);
    let msg = await client.channels.cache.get(channel.id).send(Embed);
    await msg.react("๐Ÿ‘");
    await msg.react("๐Ÿ‘Ž");
  };

when I type preix poll, channel and everything it sends the prefix, channel and the reason how can I fix?

#

So it dont send the prefix, command(poll). I just want it to send the reason

earnest phoenix
#

@narrow kettle just use linq's OrderByDescending

slender thistle
#

@onyx hare what's the command you use to run Python scripts with

earnest phoenix
#

Will anyone help me?

placid iron
earnest phoenix
#

I want to make a fully functional bot on android for free

#

@earnest phoenix

#

Read it again

pale vessel
earnest phoenix
#

you don't need to mention me i'm here

compact oriole
#

android...

earnest phoenix
#

K

pale vessel
#

android trolllaugh

earnest phoenix
#

Yup

pale vessel
#

are you using a bot maker?

earnest phoenix
#

so make it

#

How?

compact oriole
#

step 1. get a pc/laptop
step 2. code

earnest phoenix
#

Any app or anything? Beacuse I dont got PC and advance coding skills

#

android is actually capable of running native code (i.e. c#) if it's compiled for ARM
you can run bots on old android devices you don't use anymore

slender thistle
#

Discord Bot Designer is a thing

earnest phoenix
#

but you get no support for it here

#

Discord Bot Designer is a thing
@slender thistle Worst tried it already

slender thistle
#

Interesting

earnest phoenix
#

I have made a bot using botghost.com but I cant Buy premium and it doesn't full fill my requirements

narrow kettle
#

@narrow kettle just use linq's OrderByDescending
@earnest phoenix how do i use it? im using unit4 and it kinda cancels everything else

#

and yeah im forced to use unit4

earnest phoenix
#

thonk

#

Which language is Imp. for bot coding?

narrow kettle
#

using System.Linq; im using this if it helps but, no idea if that is what you mean

earnest phoenix
#

yeah it's located in the linq namespace

#

why are you ordering a queue in the first place though

#

a queue is, well, a queue

#

Can I code on android?

#

Which language is important?

#

How can I make Bot android?

compact oriole
#

coding on a mobile device is awful

narrow kettle
#

its a part of some question i got, trying to do it but im going nowhere

earnest phoenix
#

@compact oriole BUT I will try

narrow kettle
#

hitting a wall everytime i try something

earnest phoenix
#

I will be doing this also

#

anyways, you can find samples for OrderByDescending on ms docs

rain obsidian
#

please give me announcement code discord.js v12

earnest phoenix
#

no

rain obsidian
#

๐Ÿ˜ฆ

slender thistle
#

Rule 8, we don't give ready-to-use code

narrow kettle
#

ah shit

rain obsidian
#

ok sry

narrow kettle
#

its using System.Collections.Generic, and i cant use it sadly

#

cuz its either this or unit4 and im forced using unit4

earnest phoenix
narrow kettle
earnest phoenix
#

Can I fucking code on android? And make a bot with that code? ๐Ÿ˜ก

narrow kettle
#

you can

#

but its really no fun

earnest phoenix
#

I don't want fun

#

I just want to learn

narrow kettle
#

coding on mobile is hell

earnest phoenix
#

get a development machine

#

Thanks for helping me that fast

#

(laptop / pc / vps with a gpu)

#

@earnest phoenix I dont have money

compact oriole
#

get monie

earnest phoenix
#

that's a you problem

narrow kettle
#

program->make a bot->make money

earnest phoenix
#

I dont have that fucking piece of paper with a picture mad old man with circular glasses and Bald Head

pale vessel
#

tf

earnest phoenix
#

program->make a bot->make money
@narrow kettle not at all bro I will make free bot

#

are they referring to dollars

narrow kettle
#

basiclly you can make a bot on mobile

earnest phoenix
#

@earnest phoenix no

compact oriole
#

a free bot != you can't make money

earnest phoenix
#

@narrow kettle thanks

compact oriole
#

ads, premium, etc

earnest phoenix
#

a free bot != you can't make money
@compact oriole I know

narrow kettle
#

but it will be war harder than on pc or whatever

earnest phoenix
#

if you're 18 there's always OF mmLol

#

basiclly you can make a bot on mobile
@narrow kettle any app or anything any idea?

pale vessel
#

heh

narrow kettle
#

no idea

pale vessel
#

cry you got an af?

narrow kettle
#

never programmed my phone before

earnest phoenix
#

@narrow kettle lmao

compact oriole
#

if you're 18 there's always OF mmLol
facts

earnest phoenix
#

i'm opening one when i turn 18

pale vessel
#

that is hot

earnest phoenix
#

genuinely not kidding

pale vessel
#

that's completely fine

earnest phoenix
#

fucking androids

narrow kettle
#

if you're 18 there's always OF mmLol
@earnest phoenix smirk

autumn aspen
#

:awhat:
@earnest phoenix lmaoooo

earnest phoenix
#

this is painful ohmygod

android CAN be used as a development machine but not reliably. android is running on ARM and ARM isn't capable of what an x64/x86 CPU is capable of

there are bot makers out there for android but you'll get no support for it here because you don't have direct control over the code
if nothing suits you, well, that's a you problem; buy a development machine.

nothing is ever free

compact oriole
#

yea

#

same with free hosting

slender thistle
#

So hugs aren't free? :(

earnest phoenix
#

you get corona as a bonus mmLol

compact oriole
#

depends on who you hug with flushball

strong tundra
#

just compile for arm

#

like

fringe axle
#

An image has a transparent background and I want to fill the transparency with CSS.

strong tundra
#

it's that easy

slender thistle
#

background-color? ๐Ÿค”

earnest phoenix
#

^

misty sigil
#

background-color.

fringe axle
#

This one for example

#

Okay

earnest phoenix
#

make the image a child of a div element and set the background color

#

not sure if background-color is going to work directly on the image

misty sigil
#

try it and see ig

strong tundra
#

sir can i host discord bot on phone

misty sigil
#

If you try hard enough

strong tundra
#

lol

#

i might try compiling for arm

fringe axle
#

Okay, thanks

earnest phoenix
#

websockets are a mess on arm

strong tundra
#

not sure if it'll work

earnest phoenix
#

it's why a lot of libraries just straight up don't work

strong tundra
#

actually ofc it'll work

#

i know a ton of people that host their bots on pis

earnest phoenix
#

whats the issue

fringe axle
#

not sure if background-color is going to work directly on the image
@earnest phoenix no it isn't

earnest phoenix
#

Can someone help me do a command that restart the bot

misty sigil
#

process.exit(0) and have a process manager

earnest phoenix
#

start a new process
kill this one

#

๐Ÿง 

hearty wren
#

My js knowledge is alert("hello world")

pale vessel
#

good for you

strong tundra
#

is this java script

proven anvil
#

H

pale vessel
#

it's browser javascript

hearty wren
#

It is

earnest phoenix
#

well ok

hearty wren
#

Ik bit of node

strong tundra
#

if you use a process manager you can just exit and the manager will restart it for you

misty sigil
#

or for sharded D.js bots client.shard.respawnAll()

earnest phoenix
#

sharding in d.js seems like a mess

strong tundra
#

why do people use d.js

misty sigil
#

of course it is

earnest phoenix
#

usually a lib would internally make an array of clients and wrap it around with a container client

onyx hare
#

@slender thistle i used a batch file to startup my bot, or if I have it in the editor I f5 it to run

slender thistle
#

Try using python -m pip instead of pip

delicate shore
#

How to check if args is an int

earnest phoenix
#

isNaN("string") returns true if the string isnt parseable to a number

#

means isNaN(args[whatever])

opal plank
#

i recall having to parse it first

#

dont remember why though

earnest phoenix
#

you need to parse it if you want to use it as a number

fringe axle
#
            <% for(let i = 0; i < boats.length; i++) { %>
                <div class="row">
                    <% for(let j = 0; j < boats[i].length; j++) { %>
``` I have this. I want to order the boats length in the other way. The first bot that will be there on the code should be the last bot.
opal plank
#

not that

#

lemme check rq

#

i dont recall why, but i HAD to do this mess

delicate shore
#

I meant to use it for slowmode CMD

autumn aspen
#

if (message.flags[0] === "off") {
What does this mean?

earnest phoenix
#

where did you take that from

lucid wharf
opal plank
lucid wharf
#

Q_____Q

sudden geyser
#

It can take 5+ weeks.

#

You'll have to be patient.

compact oriole
#

rn 8 weeks

sudden geyser
#

yikes

#

almost a month and a half

lucid wharf
#

WHAT

#

rlly? XD Q_Q

compact oriole
#

almost a month and a half
@sudden geyser no

#

8 weeks is almost 2 months

#

a few days off

sudden geyser
#

Yeah around that

pale vessel
#

me waiting for verification

patent geyser
#

I've just realised

lucid wharf
#

How can I connect the bot on a web? ยฌยฌ

compact oriole
patent geyser
#

when create new commands, it doesn't let me use spaces.

#

like in the commands

#

i can't call a command something with a space in it

compact oriole
#

what are you using? js?

patent geyser
#

yeah

compact oriole
#

well you need to code it in

#

but generally you should have commands with spaces

patent geyser
#

yh

compact oriole
#

replace space with _

#

ยฏ_(ใƒ„)_/ยฏ

patent geyser
#

most of my commands are just one word untill now

#

lmao

opal plank
#

you are likely just getting the first word

#

and you havent even showed us how you call the commands

#

we cant guess what you are doing unless you show it so we can help

flat pelican
#

how to connect discord bot to my microwave?

opal plank
#

bot hosted on smart fridge when?

earnest phoenix
#

How can I change a data

Sample:
database.push("data",{data1:"hi",data2:"hello"})
How can I do "data1" to "five"?

opal plank
#

huh?

sudden geyser
#

overwrite it?

earnest phoenix
#

I tried very hard but couldn't .c

lucid wharf
#

how to connect discord bot to my microwave?
@flat pelican ยฌยฌ

opal plank
#

you talking of an ACTUAL database or thats just a dummy foo name?

earnest phoenix
#

@opal plank not actula

lucid wharf
#

put the project on USB and put USB on microwave @flat pelican askakskas

patent geyser
#

how to connect discord bot to my microwave?
@flat pelican It's really simple.... do you even know how to code ๐Ÿ™„ ๐Ÿ™„

earnest phoenix
#

npm quick.db

opal plank
#

yeah, im not familiar with quickdb

earnest phoenix
#

sad

opal plank
#

though i guess you can retrieve the old value data, change it on js, then delete data and push the new one data1

strong tundra
#

does anyone know what "foo bar" is

#

i see it a lot

opal plank
#

dummy variable names

strong tundra
#

oh it comes from the chinese

opal plank
#

When i get rich one day by selling discord botus imma buy a smart fridge just to host a discord bot on it.
Why? pure flexing.

strong tundra
#

interesting

#

no

leaden rover
#

How do I make it so in my botinfo command, it would show the python and discord.py versions?

pale vessel
#

use version from the sys module for python version and discord.__version__ for discord.py version

slender thistle
#
>>> a = sys.version_info
>>> f"{a.major}.{a.minor}.{a.micro}"
'3.8.3'
``` :p
#

version outputs rather a big string and I don't think you want that

earnest phoenix
#

Will this work?

function runFunction(args) { return "test"; };

runFunction(args).then(result => { console.log(result) }); //Should log "test" to console
#

Or does it not work like that?

pale vessel
#

it should work

earnest phoenix
#

Oh okay good

pale vessel
#

no

#

aiuhssf

#

i should read first

earnest phoenix
#

lol

pale vessel
#

it's not an async function so .then() wouldn't work

earnest phoenix
#

ah right

finite bough
#

wait what

#

async/await and .then()/.catch() are different

carmine summit
#

hm

#

who even uses .then() this days?

fringe axle
pale vessel
#

you can use await on non async functions

#

but not then()

carmine summit
#

its better to use await i think

ionic dawn
#

JDA is ugly

umbral zealot
#

thingies

#

use getThingies()

#

If that doesn't work, fetch the thingamabobs from the watchamacallit

pale vessel
#

read docs

#

what library are you using?

#

what library?

pale vessel
#

the package, i guess?

carmine summit
#

axios.get('http://api.icndb.com/jokes/random').then(data => {data.data})
This don't work??

finite bough
#

is it

#

discord.js

#

or

carmine summit
#

js

pale vessel
#

which?

#

there's eris, detritus, etc

carmine summit
#

returns a promise

pale vessel
#

aw frick not you

#

@hoary hill hello

finite bough
#

lmao

pale vessel
#

ah nice

finite bough
carmine summit
#

axios.get('http://api.icndb.com/jokes/random').then(data => {data.data})
This don't work??
Why this return promise?

finite bough
#

as

#

u are not doing anything with that data

#

try console.log(data.data)

carmine summit
#

uh

#

returns promise

#

if i console it

pale vessel
#

show code

carmine summit
#

axios.get('http://api.icndb.com/jokes/random').then(data => {console.log(data.data)})

#

help

compact oriole
#

with what

autumn aspen
#
client.on("message", async message => {
  if (message.author.client) return;

  if(!message.member.hasPermission("ADMINISTRATOR")) {

    let confirm = false;
   
    var i;
    for(i = 0;i < badwords.length; i++) {

      if(message.content.toLowerCase().includes(badwords[i].toLowerCase()))
        confirm = true;
      
    }

    if(confirm) {
        message.delete()
        return message.channel.send("You are not allowed to send badwords here")
    }
    


}

Guys I have 1 problem it says, its a bracket problem where tho?

pale vessel
#

is that the whole code?

compact oriole
#

learn to calculate laugh

autumn aspen
#

yes

pale vessel
#

if so, close the event ๐Ÿ˜ณ

autumn aspen
#

learn to calculate :laugh:
@compact oriole stfu

compact oriole
pale vessel
#

add another }) in a new line

#

you need to fix your indentation

compact oriole
#

yea

#

it makes it hella hard

#

and so many empty lines

autumn aspen
#

you need to fix your indentation
@pale vessel that didnt work it gave me same problem

compact oriole
#

bro trying to flex with line count but half of lines empty

autumn aspen
#

to tell delete it

#

no lol

compact oriole
#

@pale vessel he has the correct count of {} (the empty lines are just shit)

#

he should add a ) to the end

pale vessel
#

i don't think so

#

hm

compact oriole
#

and ; as noobs leave them out

#

look there's a for loop

pale vessel
#

he needs to close the event

compact oriole
#

wait yea

#

indentation is shit and calculation

autumn aspen
#

its okk now it was }});

#

I fixed it

pale vessel
#

well good job

autumn aspen
#

lol

#

thx

pale vessel
#

fix your indentation though

#

please

#

if this was python you would've failed already xd

earnest phoenix
#
CREATE TABLE "Blacklist" {
       "UserID" INTEGER,
       PRIMARY KEY("UserID")
};```
anyone know if i'm actually doing this correctly ? ๐Ÿ˜‚
slender thistle
#

INTERGER?

earnest phoenix
#

wouldn't it be int?

ionic dawn
#

Integer

earnest phoenix
#

fuk

#

you saw nothing...

ionic dawn
#

Its okay w_elonlaugh

earnest phoenix
slender thistle
#

Ask your question here

earnest phoenix
#

How do I get a bot developer bage

dark kestrel
#

what does ctx mean in py ?

slender thistle
#

you want the command to be only usable in DMs?

#

Sure

midnight quarry
#

How to start a bot when i be in discord developer create bot then how to do that pkease help

dark kestrel
#

i don't understand ur english : /

midnight quarry
#

How to code the,first step that get online

ionic dawn
#

How do I get a bot developer bage
@earnest phoenix you cant

earnest phoenix
#

How do I get a bot developer badge
@earnest phoenix you are unable to get the Badge now unless you submitted your Application before August 19th

sudden geyser
#

Toxico do you know a programming language

earnest phoenix
#

Getting banned F'd me ๐Ÿ˜ญ now they wont give me it.

ionic dawn
#

You still get the verified tho

#

And your bot still need it to be online in +75 guilds

earnest phoenix
#

^

#

with Databases is it { } or ( )

compact oriole
#

wdym

midnight quarry
#

Not many i go in a informatik scool not many

earnest phoenix
#

How to fix

#

:(

compact oriole
#

read it

#

"description is too short"

#

make it longer

earnest phoenix
#

Idk where

compact oriole
midnight quarry
#

Can domeone send me the start of coding

earnest phoenix
#
CREATE TABLE "Blacklist" (
       "UserID" INTEGER,
       PRIMARY KEY("UserID")
);```

is it { } or ( )
compact oriole
#

for sql it is ()

earnest phoenix
#

thank you

compact oriole
#

but other dbs it might be different

compact oriole
#

your description is too short

#

again

#

also your website is wrong

midnight quarry
#

Hi

compact oriole
#

also your invite is wrong

thin turret
#

Smol brane ๐Ÿง 

earnest phoenix
#

-op

compact oriole
#

also your servers this bot is on is wrong

earnest phoenix
#

-ping

pliant gorgeBOT
#

dslWaddle I'm alive!!!

earnest phoenix
#

Someone help me

#

Someone help me
@earnest phoenix ?

compact oriole
#

your bot invite link is wrong

earnest phoenix
#

@earnest phoenix yes

#

But

boreal iron
#

and reading that description you shouldn't add your "bot"

earnest phoenix
#

DM to help

compact oriole
#

@earnest phoenix here is a list of problems in your application

  • your bot invite link is wrong
  • also your servers this bot is on is wrong
  • also your invite is wrong
  • also your website is wrong
  • your description is too short
earnest phoenix
#

My brain is a peanut

#

Send me STUFF TO HELP AND HELP MEEEE

compact oriole
#

you filled ONE of them right

boreal iron
compact oriole
#

don't send a friend req

#

I won't accept

thin turret
#

Be self dependant

earnest phoenix
#

welp

#

Send me the stuff to do

#

:(((((((((((

compact oriole
#

I just pinged you with the list

earnest phoenix
compact oriole
#

also, how did you make a bot if you can't even fill that in?

earnest phoenix
#

i do not acccept

#

man

#

sorry

compact oriole
#

he sent a req to me too...

earnest phoenix
#

Someone help

#

Plz

#

I'ma give up on my dream

thin turret
#

How they program bot

#

If they dont know what a proper url is

compact oriole
#

yea

boreal iron
#

troll

earnest phoenix
#

that is not a url

still merlin
#

BIXXER your invite link is wrong, the field already has discord.gg/ so you need to put your server code, a example would be discord.gg/dbl (dont use this as its the invite for this server)

earnest phoenix
umbral zealot
#

Literally everything is wrong on that form

compact oriole
#

except one

#

the other owner

earnest phoenix
#

hh

boreal iron
#

that ID doesn't exist

compact oriole
#

maybe not on the server

#

but still

#

it looks somewhat correct?

earnest phoenix
#

hi

umbral zealot
boreal iron
#

that ID doesn't exist

autumn aspen
#

So ehm Im tryna do a corona command and I got an err that const track = new NovelCovid();

const discord = require("discord.js")
const { NovelCovid } = require("novelcovid");
const track = new NovelCovid();

const Discord = require("discord.js");

module.exports.config = {
    name: "corona", 
    aliases: []
}
    
module.exports.run = async (client, message, args) => {
    if(!args.length) {
        return message.channel.send("Please give the name of country")
      }
      
      if(args.join(" ") === "all") {
        let corona = await track.all() //it will give global cases
        
        let embed = new discord.MessageEmbed()
        .setTitle("Global Cases")
        .setColor("#ff2050")
        .setDescription("Sometimes cases number may differ from small amount.")
        .addField("Total Cases", corona.cases, true)
        .addField("Total Deaths", corona.deaths, true)
        .addField("Total Recovered", corona.recovered, true)
        .addField("Today's Cases", corona.todayCases, true)
        .addField("Today's Deaths", corona.todayDeaths, true)
        .addField("Active Cases", corona.active, true);
        
        return message.channel.send(embed)
        
        
        
      } else {
        let corona = await track.countries(args.join(" ")) //change it to countries
        
        let embed = new discord.MessageEmbed()
        .setTitle(`${corona.country}`)
        .setColor("#ff2050")
        .setDescription("Sometimes cases number may differ from small amount.")
        .addField("Total Cases", corona.cases, true)
        .addField("Total Deaths", corona.deaths, true)
        .addField("Total Recovered", corona.recovered, true)
        .addField("Today's Cases", corona.todayCases, true)
        .addField("Today's Deaths", corona.todayDeaths, true)
        .addField("Active Cases", corona.active, true);
        
        return message.channel.send(embed)
        
        
      }
      
      
};
thin turret
#

Scary error

umbral zealot
#

Error: const track = new NovelCovid(); ๐Ÿ˜‚

autumn aspen
#
TypeError: NovelCovid is not a constructor
#

@umbral zealot

#

error

umbral zealot
#

Man after over a week of being a help vampire you'd think you'd at least learn to describe your damn errors right

#

Well, NovelCovid isn't a constructor, so...

autumn aspen
#

lol

#

hm what is it then?

thin turret
#

Error is English

umbral zealot
#

how the hell are we supposed to know

autumn aspen
#

^^

umbral zealot
still merlin
#

Endph try just const normalName =

earnest phoenix
#

I just want a bot ๐Ÿ˜ญ

umbral zealot
#

@earnest phoenix dude stop trying to FR everyone

#

ffs

earnest phoenix
#

IM NOT U BITCH