#development

1 messages ยท Page 504 of 1

earnest phoenix
#

@quartz kindle do you use vscode

#

if you do when its autocompleting it shows a list of them

#

wait actually

#

what is your warnings.json supposed to do

#

one

#

use hastebin

#

or

#

what do you actually need help with

#

do you know how to make a json file

#

use a database

frank forge
#

I need help

earnest phoenix
#

but its just a json file

#

are you legit copypasting it

frank forge
#

How do I make my bot stop responding to other bots.

#

/?*

earnest phoenix
#

ok

#

what lib

#

@earnest phoenix first make a file

#

what lib

#

@frank forge

frank forge
#

Discord.js

earnest phoenix
#

ok

#

inside the json

#

if(msg.author.bot) return

frank forge
#

Where?

junior hornet
#

@frank forge send me a link to your code i might be able to help'

earnest phoenix
#

in the on message

#

add if (msg.author.bot) return;

#

@earnest phoenix inside the .json file put {}

#

and next time

#

just learn to code

#

and use a database

#

^

#

since you don't know how to do this

#

I'm going to assume your stealing code

#

yes

#

200%

#

yes you are

#

yes

#

just admit it

#

is it that person who you're paying $50 a week

#

whats the friends name

#

also

#

lmfao

#

you pay $50 a week for that garbage?

#

nope

#

if your friend even exist why can't he make the json file for you

queen sentinel
#

kids

#

Let's keep things civil

earnest phoenix
#

jonny

#

this guy

#

you are paying $50 a week for not even a bot with a database?

#

yeah and

#

sir

#

ok pays $50 a week for a json run bot

#

you are getting scammed

#

im not being a dick

#

lmfao

#

i would pay $1 max a week

queen sentinel
#

I shall abstain for the time being

earnest phoenix
#

i can redirect to you to an JavaScript tutorial

#

im breaking OMEGALUL of the rules

#

Its just that

bright spear
#

tfw the hoister is saying others are being dicks bloblul

queen sentinel
#

Disclaimer - don't bully

earnest phoenix
#

jonny

#

yes no bullying is happening

quartz kindle
#

nope @earnest phoenix i use sublimetext, but thanks for the list

queen sentinel
#

now let's not discriminate

earnest phoenix
#

kk

#

sublime trash btw

#

i tried it for a day

#

it was shit

queen sentinel
#

$50 seems steep

earnest phoenix
#

he says he had his friend making it

#

^

#

but

bright spear
#

honestly if you want a bot make it yourself

earnest phoenix
#

$1 a week is what i would pay max

quartz kindle
#

i like because plugins and auto sftp uploads

earnest phoenix
#

git >>

#

$0 just because these are basic functions

#

lmfao

#

are you like stacked

queen sentinel
#

sure hope so

earnest phoenix
#

thats like $150 a month

#

for a discord bot

queen sentinel
#

wait

earnest phoenix
#

also bet he's hosting on glitch.com

queen sentinel
#

if you weren't friends, how much would he charge you

earnest phoenix
#

i wish i was Doctor and had some really gullible friends

queen sentinel
#

Surely you aren't making anything back though if it's $50 a week

earnest phoenix
#

but like

queen sentinel
#

ohdear

earnest phoenix
queen sentinel
#

I work for Oliy yet recieve no pay sad

earnest phoenix
#

cant make a json file
is web dev

queen sentinel
#

um

earnest phoenix
#

what are you good at in website @earnest phoenix

queen sentinel
#

you both work for him and pay him

earnest phoenix
#

ew

queen sentinel
earnest phoenix
#

html

#

anybody can use html

#

you should be getting paid silly

queen sentinel
#

there are things I want to say but my status does not permit it

wicked summit
#

Hey guys i don't know what event for update avatar in discord.js

earnest phoenix
#

LMFAO

queen sentinel
#

but

earnest phoenix
#

$200 A WEEK FOR A DISCORD BOT

queen sentinel
#

ohmy

earnest phoenix
#

LOL

#

$600 a month

#

holy fuck

queen sentinel
#

that's not even worth it unless he's paying you back more than that

earnest phoenix
#

its a discord bot

#

are you retarded

queen sentinel
#

๐Ÿคฆ

#

I'm gonna have to ask you to calm down

#

else mute

quartz kindle
#

200 a week for hosting? wtf

earnest phoenix
#

very

queen sentinel
#

lool

quartz kindle
#

even with 50 a week

#

thats 200 a month

queen sentinel
#

don't think that's a good thing

quartz kindle
#

which is enough for 40 bots

queen sentinel
#

^

#

the things I could buy with $200 a month

quartz kindle
#

even more, because you can easily run multiple bots in a single 5$ vps

queen sentinel
#

I'm running 5 bots on my pc

earnest phoenix
#

@earnest phoenix you have 21 bot?

#

doubt

queen sentinel
#

double doubt

earnest phoenix
#

"i have 20 more bots"
doesn't know how to make a json file

queen sentinel
#

stand back boys

earnest phoenix
#

k

queen sentinel
#

our little HTML hero is on the case

#

I should think so

#

it'd be a travesty otherwise

earnest phoenix
#

thats still html

queen sentinel
#

what am I even reading anymore

earnest phoenix
#

how good are you at html

bright spear
#

lmao

zealous veldt
#

There are lot html of coding guys

earnest phoenix
#

like

#

how good

queen sentinel
#

not CSS - just exclusively HTML mmLol

#

yowhat

zealous veldt
#

I can write a mean body tag

#

Family recipe

bright spear
#

what do these elements do:

  • pre
  • details
  • summary
  • picture
  • link
  • script
  • main
    no searching
earnest phoenix
#

@earnest phoenix your website must look really basic then

queen sentinel
#

summary offence is the least serious offence in UK law and is a type of case heard in the Magistrates' court

earnest phoenix
#

reakky

#

haha

bright spear
#

no its not @earnest phoenix

earnest phoenix
#

no

bright spear
#

no

zealous veldt
#

Who needs css when you can do a ton of 1 pixel img tags to get the look you want

bright spear
#

whats the a tag

earnest phoenix
#

what is the style tag

bright spear
#

no

#

ur an idiot

#

thats not html

earnest phoenix
#

thats not even proper html

zealous veldt
#

<link>dhdjdjdj<link> guys I'm an hipper text markdown language programmer

bright spear
#

thats not how you use link

#

and theres no text element

#

u obv dont know html

zealous veldt
#

Lmao

bright spear
#

u r idiot

queen sentinel
#

@earnest phoenix I'm gonna have to ask you to calm down once more

zealous veldt
#

Lelelel

bright spear
#

stop claiming to know html lmao

queen sentinel
earnest phoenix
#

this guy is autistic?

#

jonny

#

like at that code

queen sentinel
#

are text tags a thing

bright spear
#

nope

earnest phoenix
#

i dont think so

bright spear
#

i googled it

queen sentinel
#

ohmy

bright spear
#

its not

earnest phoenix
#

<h1></h1>

#

<p></p>

bright spear
#

and thats not even how you use link

queen sentinel
#

it's headers and paragraphs right

earnest phoenix
#

yeah

queen sentinel
#

where's text coming from???

earnest phoenix
#

isnt it <a href=""></a>

zealous veldt
#

<p>

earnest phoenix
#

"i'm really good at html"
not even proper html

bright spear
#

lol

earnest phoenix
#

theres not any text or link right

bright spear
#

doesnt even know basic html

zealous veldt
#

<p>hey nice text</p>

earnest phoenix
#

wait no

bright spear
#

link is an element but completely unrelated to "links"

earnest phoenix
#

link is for stylesheet

queen sentinel
#

yea

zealous veldt
#

Link pills in a stylesheet lol

bright spear
#

yeah

earnest phoenix
#

<link rel ="stylesheet" href="">

queen sentinel
#

^

earnest phoenix
#

@earnest phoenix do you have a website?

queen sentinel
#

and <a href="lmaorekt"> is for actual links right

bright spear
#

jonny can u just mute the hoisted lol

#

and yup

zealous veldt
#

Yeah

queen sentinel
#

if he offends again

#

or if he's attacking you in DMs

bright spear
#

@earnest phoenix spam my dms pls

queen sentinel
#

I mean

zealous veldt
#

Ffs

earnest phoenix
bright spear
#

we can actually code unlock u lol

queen sentinel
#

@earnest phoenix that might count as ads, I'd hide it quick ๐Ÿ‘€

earnest phoenix
#

ok

#

hide it

#

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

queen sentinel
#

big

earnest phoenix
#

i deleted it

zealous veldt
#

Pls

earnest phoenix
#

is that even proper html

zealous veldt
#

Meme

queen sentinel
#

well the paragraph tags are for text

bright spear
#

lmao did u copy that from the internet

queen sentinel
#

ez clap

bright spear
#

that doesnt actually do anything since theres no text

#

git rekt

earnest phoenix
#

yeah section isnt caps dumbass

zealous veldt
#

it's html 5

#

Next level shit right here

earnest phoenix
bright spear
#

i mean it should be case insensitive

#

lmao

earnest phoenix
#

im not some html expert pls

#

<abbr>

#

i know some html

queen sentinel
#

that's on par with

<BigText></BigText>
    <SmallerText></SmallerText>
<EndOfPage>```
earnest phoenix
#

more than the idiot hoister

#

have i disgusted yall

zealous veldt
#

Ew

earnest phoenix
#

omg

#

yes

#

light

#

pls

zealous veldt
#

Yes

bright spear
#

yes

zealous veldt
#

Very much

earnest phoenix
#

@earnest phoenix

#

show me some work you've done

#

moose i thot your gif was a toggle for a sec

#

goes offline

#

blew my mind

#

till it repeated

zealous veldt
#

Lol

#

It's pretty seem less th

earnest phoenix
#

what

queen sentinel
#

ohmy

#

is that

earnest phoenix
#

thats basic

#

you didnt open

queen sentinel
#

BOILERPLATE

zealous veldt
#

Ffs

earnest phoenix
#

or close

#

html

#

does anyone even use <!DOCTYPE html>

#

no

#

yea

bright spear
#

yes

zealous veldt
#

No

earnest phoenix
#

its not needed

queen sentinel
#

He's a pro guys, he's using Boilerplate code

earnest phoenix
#

its not needed

#

but

#

helps the browser

zealous veldt
#

Shitty boilerplate at that

earnest phoenix
#

like give me a link of a site you've made @earnest phoenix

#

handlebars & a node BE > raw hmtl

#

goes offline

#

my site is best site

#

2018

#

im starting to learn some react

zealous veldt
#

My site is shit

earnest phoenix
#

react

#

eww

#

heck off

#

begon

#

tho

#

react good

#

lmfao

#

angular

zealous veldt
#

Hmm

earnest phoenix
#

im just used to angular

zealous veldt
#

Really

earnest phoenix
#

so you've never made a site before that

#

OY

#

some pro amirite

#

ill neck ya

zealous veldt
#

Do you even know how to sign a contract

earnest phoenix
#

so you're not a master coder

queen sentinel
#

@earnest phoenix OI

bright spear
#

ree discird us glitching soo much

queen sentinel
#

It's spelt

#

you're*

earnest phoenix
#

yes

bright spear
#

ow my eyes

queen sentinel
#

thank you kindly

bright spear
#

gonna cmd r

earnest phoenix
#

@queen sentinel convince oliy to add a grammar nazi bot

bright spear
#

there its fixed now

earnest phoenix
#

ill light your specky fukin beard on fire ya coont

queen sentinel
#

lamo

zealous veldt
#

Lol

queen sentinel
#

hold on

zealous veldt
#

Lol

queen sentinel
#

so you code ONLY in html

earnest phoenix
#

no css?

#

no js?

#

some webdev amirite

#

nope

queen sentinel
#

what kinda pages are made then? ๐Ÿค”

earnest phoenix
#

inline css HYPER_ANGER

#

so your friend pays you $150 a week for that

#

holy fuck

grim elk
#

Nice.

earnest phoenix
#

i think he might be 10

#

ah

grim elk
#

Run it through some tests before you add your bot to the list.

earnest phoenix
#

unit test ftw

#

@earnest phoenix add to dbl then thanks

#

yes ping

queen sentinel
#

gonna get into webdevelopment if it's that easy to make money

grim elk
#

Most important thing is make sure your help command works.

zealous veldt
#

I'm 14 and now I'm ashamed to have something in common with you

earnest phoenix
#

lol

#

ikr

grim elk
#

If not, back to the drawing table.

earnest phoenix
#

yes ping

#

same lmfao

#

imma go onto fiver

#

150 a week for raw html? imagine what i could be making with a socketio, express, handlebars setup

#

charge $150 a week

#

millions

#

ez

zealous veldt
#

Ilr

grim elk
#

And now, time for me to do what I generally never want to do:

Use Visual Studio.

earnest phoenix
#

its bad

#

vs code best

queen sentinel
#

wait

zealous veldt
#

Lol

queen sentinel
#

if he codes in html

#

then how did he make a bot?

zealous veldt
#

vim is nice but ok

earnest phoenix
#

@earnest phoenix do you edit your html in notepad?

#

RAW HTML BOT

queen sentinel
#

LOL

earnest phoenix
#

do you

queen sentinel
#

no

zealous veldt
#

I need to learn more vim stuff

queen sentinel
#

don't tell me you can

earnest phoenix
#

no you can't

queen sentinel
#

you cannot

earnest phoenix
#

you really cant

queen sentinel
#

even I know that

earnest phoenix
#

but

#

do you

grim elk
#

You can also code a Discord bot in C++.

#

But that's if you want to make your head explode.

earnest phoenix
#

or do you use notepad ++

#

this channel scares me

queen sentinel
#

but html is markup

earnest phoenix
#

mhm

queen sentinel
#

bots are not pages

earnest phoenix
#

html isn't a programming language you can code a bot in

grim elk
#

Anyone who says otherwise does not know what a programming language is.

earnest phoenix
#

isnt there d.js web

#

nor a programming language at all

#

if you can make a call to an external page

#

you can make a bot

zealous veldt
#

It's not a programming language, it's a markup language

grim elk
#

Or they're new to the scene.

earnest phoenix
#

it is a programming language

#

now

zealous veldt
#

So learn it

earnest phoenix
#

yeah but aren't you paying money to this dude

#

so how did you make a bot

zealous veldt
#

Lmfao

grim elk
#

No

earnest phoenix
#

paying money for some guy to make it for you !== learning js

grim elk
#

Don't leave

zealous veldt
#

How old are you?

grim elk
#

Because then you can't add your bot to DBL.

earnest phoenix
#

youngsters these days

#

this is funny

#

noe

queen sentinel
#

he did it

grim elk
#

Youngsters these days (in America) would crash if they went to school in Vietnam.

earnest phoenix
#

noe

queen sentinel
#

he ended bullying

#

across the world

earnest phoenix
#

haha yes

#

wait pull up the gif

zealous veldt
#

What a hero

queen sentinel
earnest phoenix
#

clap and a half for this man

zealous veldt
#

Clap and three quarters

#

O he's back

grim elk
#

To who?

queen sentinel
#

to whom* @grim elk

earnest phoenix
#

gross

zealous veldt
#

Lol

earnest phoenix
#

yes

#

i want to help

queen sentinel
earnest phoenix
grim elk
#

Probably not.

earnest phoenix
#

i also

bright spear
#

@earnest phoenix did u use discord bot maker

earnest phoenix
#

let me help

#

test

queen sentinel
#

loool DBM

earnest phoenix
#

bro its what you use

#

dumbass

grim elk
#

There's a bot maker too?

bright spear
#

a program on steam that makes a bot for u

earnest phoenix
#

yeah

grim elk
#

So are most of us the only people who made a bot the old-fashioned way?

bright spear
#

DBM on discord store whenโ„ข

earnest phoenix
#

no

#

like no one uses dbm

#

its $10 too btw

grim elk
#

$10?

zealous veldt
#

Yes

grim elk
#

Seems like a scam.

earnest phoenix
#

yep

queen sentinel
#

no

earnest phoenix
#

its for basic bots

zealous veldt
#

Yes

#

Very

earnest phoenix
#

have fun adding a database

queen sentinel
#

$50 a week sounds like a scam

bright spear
#

lol

earnest phoenix
#

$200 a week sounds like a scam

queen sentinel
#

indeed it is

earnest phoenix
#

getting paid $150 for basic html sounds like a scam

grim elk
#

I'll pull up Visual Studio on Dingus 10 and make one in C++ because at least then I'll have something that probably won't suck

bright spear
#

$5 a week sounds like a scam

grim elk
earnest phoenix
#

nah

#

this is shitpostv2โ„ข

bright spear
#

lol

grim elk
#

I really need to pay attention to what channel I'm in.

queen sentinel
#

alright kids

earnest phoenix
#

it really is because of these people who cant readthedocs

queen sentinel
#

you've had your fun can we go back on topic kthanks

zealous veldt
#

K

earnest phoenix
#

hey if you dont call it shitpost im not going

zealous veldt
earnest phoenix
#

rip shitpost

grim elk
#

Ok

earnest phoenix
#

i dont know where to go anymore

#

haha yes

#

i made my own discord client with a hardcoded button for shitpost

grim elk
#

Quick question: Does DBL have an API in C#?

earnest phoenix
#

probs

#

if not

bright spear
#

@grim elk its a HTTP API, but there is a C# library for it

grim elk
#

Now to do something that will teach me a lot of C# (and give me a headache):

osu!lazer on mobile.

zealous veldt
#

Lol

#

C# is awesome

visual surge
#

Getting the shard (JS)
(guild_id >> 22) % shard_count
correct?

sick cloud
#

thats not js

#

@visual surge use client.shard

visual surge
#

Oh alright can't do that

#

How is that not js tho

#

guild_id bitshift 22 modulo shard_count

#

@sick cloud

sick cloud
#

that looked like python

visual surge
#

Nah. I'm trying to get a shard for another bot based on the guild id provided

wheat marten
#

Ah

sick cloud
#

use broadcastEval

#

to find the shard the guilds on

gilded blaze
#

That code can be used in many languages and you will most likely get the same output.

fossil thicket
#

where do i report bugs

visual surge
#

Yeah I can't use the eval. I've seen multiple people say the shard can be calculated like that

fossil thicket
#

o nvm

gilded blaze
#

What library are you using? @visual surge

fossil thicket
#

There's this bug in the discordapp login

#

it keeps logging me as this different Xevious yet on my phone it logs me as me

earnest phoenix
#

logout in browser

fossil thicket
#

i did tho

sick cloud
#

bug blobLUL

#

your logged into the wrong account

fossil thicket
#

bruh idk who's Xevious#0537

#

it keeps auto signing me at the different guy

earnest phoenix
fossil thicket
#

thanks fam im dum

pastel oar
#

If a bot's status on dbl is ???, does that mean that the bot is not in this server?

midnight widget
pastel oar
#

Ah got it thanks

wheat apex
midnight widget
earnest phoenix
#

@sick cloud

wicked summit
#

Are someone using enmap for economy database ?

midnight widget
wicked summit
#

:(

uncut delta
#

@wicked summit me

wicked summit
#

Helpme @uncut delta

uncut delta
#

What help you need

wicked summit
#

leveling system in event message

#

Like the xp grow

#

And level up

#

Im forgot about all that stuff because json lmao

uncut delta
#

Hmm

#

So level up system

#

There is already an example in the an idiot guide and it's easy

#

You just need to set data then getProp the current data + random xp growth

#

Then setProp

earnest phoenix
#

enma points topkek

uncut delta
#

The set level + 1 when your xp reaches at certain number

wicked summit
#

I'm really confused

#

๐Ÿค”

earnest phoenix
#

sad when somebody on another shard tries to get their points

midnight widget
#

yes

uncut delta
#

@earnest phoenix i use enmap-mongo

earnest phoenix
#

why not just use a database instead of enmap aka scuffed sqlite wrapper

wicked summit
#

Give me the link from anidiots guides

uncut delta
#

No shit sharding problems

wicked summit
#

Im will learn it

uncut delta
#

Ok

earnest phoenix
#

yeah except if somebody wants points on 2 shards, it will store it on each shard ant not update, unless you .fetch() every time

#

in which case there is no point in enmap

wicked summit
midnight widget
#

Shards just make everything more complex

heady zinc
#

enmap isn't a sqlite wrapper tho

earnest phoenix
#

its actually is exclusively since enmap 4 iirc

wicked summit
earnest phoenix
#

they dropped other providers cos evie couldnt be bothered

heady zinc
#

really

earnest phoenix
#

so now its just old versions which are mostly broken

#

especially enmap mongo (only one worth using)

#

so u have to fork it

heady zinc
#

why would you drop the only good providers

wicked summit
#

Im not really know about english language

earnest phoenix
#

because evie is smartโ„ข

wicked summit
#

My english so bad

midnight widget
#

Practice.

wicked summit
#

Always do that

heady zinc
#

tho

#

internal sharding

midnight widget
heady zinc
#

โ„ข

midnight widget
wicked summit
#

Just some easy english language i can

earnest phoenix
#

enmap mongo with changefeeds awesmart

uncut delta
#

Lol dude

#

Tom you know nothing

wicked summit
#

@uncut delta where the links ?

earnest phoenix
#

thanks

uncut delta
#

I using version 3

#

So no issues

#

xDDD

heady zinc
#

ya enmap with changefeeds was the shit

#

but then again, you should be fine with internal sharding

earnest phoenix
#

"no issues with version 3"

#

"you know nothing"

#
  fetch(key) {
    return this.db.get(key);
}
#

fetch doesnt even work Omegaroll

heady zinc
#

and you can use internal sharding until around 10 shards sooo

earnest phoenix
#

are u dumb

uncut delta
#

Well i don't use shading yet

earnest phoenix
#

no shit

uncut delta
#

My bot isn't even yet in 1500 servers

#

๐Ÿ˜‚

earnest phoenix
#

not to mention it uses deprecated methods for all the db operations

uncut delta
#

Huh ok

heady zinc
#

but tom

#

you can just use outdated mongo version

uncut delta
#

I will shift to something else if it cause problems

heady zinc
#

works 100% very gud

earnest phoenix
uncut delta
#

Well tom is just laughing around

heady zinc
#

well uh

#

in short enmap is trash use a real database directly

wicked summit
#

In evie tutorial she using enmap.ensure

uncut delta
#

Huh whatever

wicked summit
#

Im really don't know about that

uncut delta
#

Well learn it

#

xDDD

heady zinc
#

tho it should probably work at small scale such as yours

uncut delta
#

Or try real database

wicked summit
#

My code

#

But not working

uncut delta
#

Use getProp

#

xD

#

And setProp

#

At last

wicked summit
#

Humm iwill try it soon

uncut delta
#

Make sure to put it in message event

bitter sundial
#

is there a known workaround for reaction events not firing on messages that aren't cached

heady zinc
#

yeah, give me a sec to find it back

#
client.on("raw", packet => {
    if (packet.t === "MESSAGE_REACTION_ADD") {
        //ur code baka
    }
});```
earnest phoenix
#

listen for raw

heady zinc
#

there

earnest phoenix
#

or that lol

bitter sundial
#

tu log le truc, ya l'id du message dedans mais je sait plus c'est quoi le truc exact

heady zinc
#

raw not documented anymore lul

earnest phoenix
#

rip

bitter sundial
#

ok

#

djs is a big meme

heady zinc
#

it is

bitter sundial
pale skiff
#

Hi, I have a question on putting my bot online

#

For some reason it doesnt want to find my file? even tho its there

#

(sorry if this is the wrong channel, im new)

uncut delta
#

Make sure that path is correct

pale skiff
#

it is

uncut delta
#

Also it's the right place

pale skiff
#

C:\Users\ziggy\Desktop\DiscordBot

#

thats literally the place where the file isi

#

and as u see in my cmd its the same

uncut delta
#

Make sure bot.js exists

#

xD

#

There is no js

pale skiff
uncut delta
#

File

#

xD

#

No js file

topaz fjord
#

You do not have bot.js

uncut delta
#

It's json

topaz fjord
#

You have bot.json

uncut delta
pale skiff
#

? isnt it the same?

topaz fjord
#

json != js

uncut delta
#

json and js aren't same

pale skiff
#

so I should save my json file as a .js instead?

uncut delta
#

Make sure it's js first

#

Yeah if it works

#

but js and json are different thing

topaz fjord
#

I say you learn how to code

uncut delta
#

๐Ÿ˜‚๐Ÿ˜‚๐Ÿ˜‚

pale skiff
#

haha laughing with people who are trying to learn internetheroes

west raptor
#

What

uncut delta
#

U wot

bitter sundial
#

is MESSAGE_REACTION_REMOVE_ALL valid

west raptor
#

Lemme see

bitter sundial
#

I could just console log and test but eh

west raptor
#

Fuck all my bots are down

heady zinc
#

it is

earnest phoenix
#

guys

#

this is important

#

how

prime cliff
#

Apache GWqlabsYaoLUL

earnest phoenix
#

not the time for a joke

#

pal

bitter sundial
#

.htaccess

earnest phoenix
#

oh

#

any idea on where the config file of apatche2 on linux?

#

thanks

wicked summit
#

Are someone know how to make when some user update their avatar i can log it ? In discord.js

shell blade
#

Anyone know how to fix this error?

- UnhandledPromiseRejectionWarning: TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type object
#
const { Util, RichEmbed } = require('discord.js'),
      { get } = require('snekfetch'),
      { Canvas } = require('canvas-constructor');

module.exports = {
    name: 'emote',
    description: 'Make the bot say anything!',
    aliases: ['None.'],
    usage: '{prefix}emote <server name> | <invite link> | <description> | <emojis>',
    cooldown: { time: 3, users: [] },
    async execute(message, args, bot, prefix) {
    if (args == '') return message.channel.send(':info: Command usage:``' + prefix + this.usage.slice(8) + '``');
    args = args.join(' ').split(' | ');
    
    if (!args[1]) return message.channel.send('You need to give me an invite link to the server.');
    if (!args[2]) return message.channel.send('You need to give me a description of the server (or "none").');
    if (!args[3]) return message.channel.send('You need to give me at leasat 1 global emoji.');
    
    var emotes = args[3].slice(1).split(' '), urls = [];
    
    for (let i = 0; i < emotes.length; i++) {
        emotes[i] = emotes[i].replace(/</g,'').replace(/>/g,'').replace(/ /g,'');
        await urls.push(`https://cdn.discordapp.com/emojis/${await Util.parseEmoji(String(emotes[i])).id}.png`);
    }
    
    var ems = await new Canvas(Number(250*urls.length), 250), width = 0, emoji;

    for (let i = 0; i < urls.length; i++) {
      emoji = await get(urls[i]).then(res => res.body);
      ems.addImage(emoji, 0, 0, 250, 250);
    }
    
    ems.toBufferAsync();
    message.channel.send(new RichEmbed().addField('Guild Name', args[0], true).addField('Invite Link', args[1], true).addField('Description', '``' + args[2] + '``').setColor());
    message.channel.send('', { files: [{ attachment: Buffer(ems), name: 'emojis.jpg' }] });
    }
};

This is the code I'm using.

smoky spire
#

@wicked summit use the userUpdate event

earnest phoenix
#

Can anyone tell me please how to add a command to my bot so I can see what servers invited him and also on the website to show me how many servers my bot is on?

topaz fjord
#

To show server count on the website, use the dbl api

#

To find what servers your bot is in, check your libs docs

earnest phoenix
#

don't understand nothing

#

eh

#

Idk how to make them work

earnest phoenix
#

why this not woring :(:(

const discord = require('discord.js')
const Discord = require('discord.js')

const {prefix, PREFIX, footer, owner, ownerID} = require('../../settings/config.json')

exports.run = async (message, args) => {
  const client = new Discord.Client({disableEveryone: false, autoReconnect: true});

  if (message.author.id !== ownerID) return message.channel.send("You are not authorized to use this command.");   
  message.delete();

  let announce = new discord.RichEmbed()
      .setAuthor("Announcement From ")
      .setTitle("Callumok2004")
      .setDescription(args.join(" "))
      .setFooter(footer)
  client.guilds.get("497153287779516417").channels.get("501467078172082176").send("@everyone", { embed: announce })

  message.delete();



}

error

(node:16) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'id' of undefined
fierce thorn
#

๐Ÿค”

#

Looks like message doesn't have author

earnest phoenix
#

well, its a command

#

of course it does

fierce thorn
#

hmmm

earnest phoenix
#

error occurs wehn command is run

fierce thorn
#

Client, message, args

smoky spire
#

Seems like a case of not properly passing the message object into the command

fierce thorn
#

That is what i was thinking about

earnest phoenix
#

but it was working until i added client to a const instead of async

#

and added this

  client.guilds.get("497153287779516417").channels.get("501467078172082176").send("@everyone", { embed: announce })
fierce thorn
#

wait

const client = new Discord.Client()
}```
#

Client in command

earnest phoenix
#

ye, it didnt work outside of it either

fierce thorn
#

You use command handler?

earnest phoenix
#

ye

fierce thorn
#

why not just use


}```
#

Idk what command handler you use

earnest phoenix
#

i have my reasons

fierce thorn
#

Show me code where you run command in message event

earnest phoenix
#

it is set for client in async but for a reason i aint doing that

#

im not sayin y

#

@earnest phoenix please don't tell me you're creating a new client on each command

#

no, im npt

#

just dis 1

fierce thorn
#

But why god?

earnest phoenix
#

Still why

#

You only need to create it once

#

meh, i was testing something, doesnt matter

#

Lol. It does matter

#

Creating two clients will give unexpected behavior

fierce thorn
#

Also if you're making new client in command

#

You need to .login

#

It too

#

And you need to have smth like this


}```
#

cause message in code you sent is actually client

earnest phoenix
#

i had new client so the bot could ping @everyone but it cant

#

@fierce thorn

#

how can i make that work^^

glacial sentinel
#
  1. it needs to have permission
  2. const client = new Discord.Client({disableEveryone: false});
earnest phoenix
#

now u see why i had a new client

#

no

#

we don't

fierce thorn
#

It needs administrator permission

#

Also you can make it as this

#

<@&guildid>

earnest phoenix
#

i could always ping everyone before

fierce thorn
#

Well he needs administrator permission if everyone ping is disabled

earnest phoenix
#

yes i know that dad

manic badger
#

yess

#

my bot is woooooooooooooorking

#

CATS CATS CATS

#

CAAAAAAAAAAAAAAAAATS

earnest phoenix
topaz fjord
#

Giving bots admin permission is stupid

spare swallow
west raptor
#

no

earnest phoenix
#

Hey i have a problem with my code , it make an error like this : ```TypeError: Cannot read property 'name' of undefined

#

my code:

#
if(message.content.startsWith(prefix + "userinfo")) {
    const user = message.mentions.users.first() || message.author;
    const embed = new Discord.RichEmbed()
    .setTitle(`Informations about`)
    .setDescription(`${user.username}` + "#" + `${user.discriminator}`)
    .setThumbnail(user.displayAvatarURL)
    .setColor('RANDOM')
    .addField('ID', user.id, true)
    .addField('Username', user.username, true)
    .addField('Discrim', user.discriminator, true)
    .addField('Status', user.presence.status, true)
    .addField('Bot', user.bot, true)
    .addField('Game', user.presence.activity.name, true)
    message.channel.send(embed)
}
west raptor
#

What's the all the files contents

earnest phoenix
#

wich files

west raptor
#

The file this code to gave is in

fierce thorn
#

It's the thing with presence (Game)

earnest phoenix
#

yes

west raptor
#

Oh

earnest phoenix
west raptor
#

Yea

earnest phoenix
#

that's the problem

west raptor
#

It's its undefined just display no game

earnest phoenix
#

ik

#

but all file not work bcs of this

#

all code*

west raptor
#

So user.presence.activity ? user.presence.activity.name : 'No game'

#

Iirc

earnest phoenix
#

yes

west raptor
#

On master it is

earnest phoenix
#

but hes not on master

#

hes on stable

west raptor
#

Oh

earnest phoenix
west raptor
#

Huh

earnest phoenix
#

because isn't rich embed for stable? @west raptor

west raptor
#

Yea

#

On master it's MessageEmbed

earnest phoenix
#

@earnest phoenix pls refer to this https://discord.js.org/#/docs/main/stable/class/User?scrollTo=presence as .activity.name is not a function

#

ik

#

but how

#

do you know how to eead the docs?

#

yes

#

then whay would you say how

#

if you know how

alpine plover
#

oh lord, that embed.

earnest phoenix
#

"but how"

#

to make good code to see the game

#

..

#

5 sec later

#

yes

#

..

#

ok so are you saying you do know how to make game thing

west raptor
#

learn javascript

earnest phoenix
#

no

#

don't know

west raptor
#

lol

alpine plover
#

I'd improve the embed before trying to make it work.

earnest phoenix
#

@earnest phoenix if you're not going to learn what's the point of even addressing the problem

#

this

#

user.presence.activity.name

vernal rivet
#

That embed has too many characters in it that if someone with a lot of roles or a long name will return an error and won't send cause it excess the 1024 charatecer mark

earnest phoenix
#

so

#

what i can make for don't have the error

#

and don't excess 1024

#

charatecer

#

and make my code work

vernal rivet
#

Well one you don't need a ton of information in a single embed

earnest phoenix
#

ik

#

but

#

how to make a better embed

#

for excess

vernal rivet
#

Then why have this much information on that embed?

earnest phoenix
#

1024

#

for make good userinfo

#

so

#

its not really good if you put all the same info teice

#

code

#

ik

#

but how make better embed?

vernal rivet
#

You don't need to know if that person is a bot if the person will have a bot tag on their name in the member list

earnest phoenix
#

i make all info i want

#

not all

#

but

#

more

vernal rivet
#

You have two joined servers field, which could mean that you copied and pasted it

earnest phoenix
#

not my bot

vernal rivet
#

You don't need created at field

#

Status isn't need cause you will know if you look in the member list

earnest phoenix
#

i want

#

it

vernal rivet
#

Guild based in isn't need

earnest phoenix
#

ye

vernal rivet
#

User info isn't needed either

earnest phoenix
#

i want only that

#
    .setTitle(`Informations about`)
    .setDescription(`${user.username}` + "#" + `${user.discriminator}`)
    .setThumbnail(user.displayAvatarURL)
    .setColor('RANDOM')
    .addField('ID', user.id, true)
    .addField('Username', user.username, true)
    .addField('Discrim', user.discriminator, true)
    .addField('Status', user.presence.status, true)
    .addField('Bot', user.bot, true)
    .addField('Game', user.presence.activity.name, true)```
#

but

#

name is undefined

vernal rivet
#

Why would you include a person I'd?

earnest phoenix
#

for

#

see

#

more info

vernal rivet
#

Well yeah, cause it can't read an undefined function

earnest phoenix
#

on the person

#

user.presence.activity.name

#

this is the problem

vernal rivet
#

It only works if the user is doing something

earnest phoenix
#

no

#

in the screen i show to you i play no game and its work

#

game: None

vernal rivet
#

Yes

#

Game none

#

But it's really not need

earnest phoenix
#

i want

#

so

vernal rivet
#

Your embed isn't a good embed, I would encourage you to make a new one using less information, I bet everyone here would agree with me on that

earnest phoenix
#

not me

#

i want to have this info and not less

#

so

#

how to make superior embed

#

better embed*

#

i rly need

lost scarab
earnest phoenix
#

that stolen code tho

#

and yes that works

lost scarab
#

ehm not stolen

#

๐Ÿค”

#

its from source code

earnest phoenix
#

if its not stolen why are you asking if it works

lost scarab
#

its there cuz people submmit it

#

not stealing

earnest phoenix
#

also just because its from the souce code doesn't mean your not stealing it

glacial sentinel
#

why wont my iframe thing work
<iframe src="http://www.donohook.com/" width="100%" height="100%"></iframe>

west raptor
earnest phoenix
#

i don't believe the long desc supports iframe tbh

west raptor
#

that bothers me so much

earnest phoenix
#

also that stolen code dream

west raptor
#

yea its obviously stolen

#

const ownerID = 'your discord id'

#

sa

topaz fjord
#

@earnest phoenix it does

#

@glacial sentinel site must be https

#

to embed in dbots

glacial sentinel
#

RIP

astral quail
#

CloudFlare ๐Ÿ™Œ

earnest phoenix
#

@topaz fjord k thx

next onyx
#

So with my bot when I try to run my commands it says it needs to be at the top of the server role but yet it already is

quartz kindle
#

did you code it to check that?

next onyx
#

Yes

quartz kindle
#

then maybe your code is the problem

earnest phoenix
#

does anyone know how to fix this

#

prolly delete the sqlite module and then reinstall

#

ill check sec

haughty barn
#

probably reinstall

earnest phoenix
#

its annoying cause it worked like 20 mins ago

#

i just restarted my box

#

omfg this is so annoying

#

now its saying fucking permission denied even with sudo

west raptor
#

thats a oof

#

wait what os?

earnest phoenix
#

debian 9

west raptor
#

thats strange sudo should work

earnest phoenix
#

ffs lmao

#

failed at the sqlite3@4.0.2 install script

manic badger
#

oof

mild quarry
#

Can someone explain this error? discord.errors.HTTPException: BAD REQUEST (status code: 400)

autumn nacelle
#

Idk

bright spear
earnest phoenix
#

@mild quarry

waxen quest
#

Are there any tutorials that tells me how I may connect my bot to my website and get like server stats?

earnest phoenix
#

@waxen quest you can get the server stats from discord bot list

#

Bro

#

And put it in your html

waxen quest
#

"you can" does not really tell me how to do it

quartz kindle
#

what language is your website in?

waxen quest
#

html, css, js

earnest phoenix
#

@quartz kindle the usual (html/php, css, js)

#

See

quartz kindle
#

does your bot have a database you can get the stats from?

earnest phoenix
#

I want to connect my bot to my website too so that it shows the state

quartz kindle
#

you can open your database to external connections, or you can code a simple api inside your bot

#

and have your website get data from it with php

earnest phoenix
#

Does it have to be php

#

:(

#

Because we don't know php

waxen quest
#

Thanks I'll take a look at it later today

earnest phoenix
#

@waxen quest if you fine anything let me know , I will let you know if I find anything

waxen quest
#

Alright ๐Ÿค 

earnest phoenix
#

websocket to ur bot

amber junco
earnest phoenix
#

or write stats to db and display on website

sick cloud
#

build website into bot

#

use bots guilds.size directly

earnest phoenix
#

i need help
in python i want to add command help
but it is already registered so how am i gonna add it?

sand roost
#

What u using?

earnest phoenix
#

python

#

3.6

#

i got

ruby dust
#

<Client>.remove_command('help')

#

and then define the new help command

earnest phoenix
#

this my new

#

๐Ÿ˜ƒ

#

api abuse mmLol

inland pulsar
#

Hey

earnest phoenix
#

hey

inland pulsar
#

do you know a good text uploader ?

#

hastebin doesn't work for me anymore idk why

earnest phoenix
#

host ur own hastebin

inland pulsar
#

oh is it opensource xd

#

nice

#

gonna do that

earnest phoenix
#

or make ur own

#

would be like a 1 view deal i express

inland pulsar
#

I still have a lot to do :/

#

Don't have time for that atm

earnest phoenix
#

rippers

inland pulsar
earnest phoenix
#

How i make Website for my bot to add it "Discord Bots"

inland pulsar
#

??

#

I don't understand your question

earnest phoenix