#development

1 messages · Page 325 of 1

jagged plume
#

setgame was broken so most people use setpresence now

restive silo
#

wow

#

its already fixed

#

in D.js Version 11.2.1

jagged plume
#

i wouldnt know that because i moved to eris mmLol

restive silo
#

eww

#

eris

#

no OOP

jagged plume
#

eris isnt bad

restive silo
#

its functional

#

but

jagged plume
#

what do you mean

restive silo
#

eris is d.js V8 a.k.a functional programming instead object oriented programming

jagged plume
#

d.js is ram hog tho GWbowsuBlobThinkOwO

restive silo
#

you can disable events you dont need

jagged plume
#

didnt help with ram usage for me

restive silo
#

hmm

#

mine never goes above 200 mb

jagged plume
#

moving to eris got me from 1000mb after 5 days of uptime on d.js to 200mb after 5 days of uptime with eris

#

owo

restive silo
#

are you sure you disabled every uneeded event?

#

also

#

you can adjust the CacheLifetime

#

A.K.A when it is sweeping cached stuff

#

like messages

jagged plume
#

i dont really care, moving to eris was better for me- music is sounding a lot better too which is what 80% of my servers use it for kek

#

¯_(ツ)_/¯

restive silo
#

well

#

your decision

jagged plume
#

also I thought eris was using object oriented programming

#

unless i am mis understanding what that means

restive silo
#

tzzzz

#

not really

#

bot.createMessage(id, content) isn't OOP at all

jagged plume
#

you dont have to do that

restive silo
#

👀

jagged plume
#

<Message>.channel.createMessage is a thing

#

kek

restive silo
#

hmm

#

never saw that

jagged plume
#

look at the git repo ¯_(ツ)_/¯

restive silo
#

i dont use eris

#

so i dunno

#

but eris is ripped of D.js V8

#

since hydar and abal were working togheter

jagged plume
#

yes i know that

#

and i prefer it

#

¯_(ツ)_/¯

restive silo
#

your choice, i prefer d.js

#

and JDA

#

JDA is ❤

jagged plume
#

i used to use java for a lot of things but stopped when i learnt javascript

restive silo
#

well Java is way better than JS

#

but JS is more comfortable/easy

jagged plume
#

how is java better GWbowsuBlobThinkOwO

restive silo
#

Typings, better scaling when using a lot of files, cleaner

#

also Lavaplayer is lewd2

#

why npm dont have Lavaplayer KonataCry

jagged plume
#

what is lavaplayer 🤔

restive silo
#

a Music LIbary what gives you the Stream from Soundcloud/Youtube/vid.me videos

#

also information

#

etc.

#

you just need to provide any Resolvable like an id or Link

#

i doubt you are creating a YTDL Libary for node.js

#

you dont even need any api key for Soundcloud KonataCry

jagged plume
#

I've just added soundcloud support on mine

restive silo
#

well my api key request was declined

jagged plume
#

rip

restive silo
#

yep

#

thats why i love Lavaplayer you dont need shit

#

ytdl-core as example crashed because of like everything

#

what is annoying af

jagged plume
#

never had issues with it when i was testing it

restive silo
#

to many redericts here, Error 403 there

#

so many shit

jagged plume
#

lmao

restive silo
#

and the best part is that instead passing an error in the callback miniget (what is used by ytdl-core for the requests) is throwing it in the lib so you can't catch it

#

i just hate ytdl-core so much

jagged plume
#

kek

restive silo
#

i mean its working fine but crashes my bot every 12-24 h

jagged plume
#

You can catch all process errors

#

i use it and it never crashes

restive silo
#

oh

#

wait

#

you can Thonk

jagged plume
#

process.on('error', // do ur stuff)

#

process.on('unhandledRejection', // more stuff)

restive silo
#

that will catch it when you throw smth in your code?

jagged plume
#

yep

#

always

restive silo
#

second is for Promises and i use that already

#

OwO

#

i will test later

#

since im not home atm

#

but if that is working i would cry

jagged plume
#

lmao

restive silo
#

its just annoying af

#

why cant it just pass an Error instead throwing shit in the libary src

shrewd field
#

How to make a title for a embed

#

Example

restive silo
#

i guess you are using D.js?

#

then <RichEmbed>.setTitle('title here')

earnest phoenix
#

i coded a bot on js and added it to your bots page, its online, thats good, but it doesnt do anything, all was fine when VisualStudio Code was opened

shrewd field
#

hey does anyone know how to make a bot send u a dm

#

example:

#

@remote steppe

#

if u do

#

b!help

#

a dm message is sent to you

#

even @wintry spire has it

gaunt dune
#

message.author.sendMessage(...)

#

@shrewd field

#

*if using discord.js

tawny lava
#

sendMessage is depricated, use send

gaunt dune
#

oh yeah

#

that's a thing

#

too lazy to update my bot

#

🙃

earnest phoenix
#

Bruh

tawny lava
#

lol

shrewd field
#

huh

#

guys

#

anyone do

#

b!help

#

@tawny lava

tawny lava
#

?

shrewd field
#

do

#

b!help

tawny lava
shrewd field
#

what did u get

#

u got a message dmed to you with commands from @wintry spire BOT

#

right

#

my question is how to do that

tawny lava
#

smh

#

message.author.send('stuff')

shrewd field
#

it wont send it via dms

#

ok i will try

#

@tawny lava thanks it worked

languid dragon
#

👀

shrewd field
#

@languid dragon

languid dragon
#

?

#

Why the ping

shrewd field
#

how can i make the message.author.send("stuff");

#

be a embed

languid dragon
#

That is a dm

shrewd field
#

embed

languid dragon
shrewd field
#

ok

languid dragon
#

Do some research

shrewd field
#

what about discord.js

languid dragon
#

Go to documentation

#

Look up embeds

shrewd field
#

yes

languid dragon
#

Google embed visualizer

shrewd field
#

i know how to write embeds

#

what to do with embed visualizer

languid dragon
#

Then youre asking questions you "know" the answer to?

#

Why ask if you know?

tawny lava
#

the same way you would send it to a channel

shrewd field
#

ok

#

thanks

#

it says

#
Parsing error: Identifier 'embed' has already been declared (Fatal)```
#

i have already an embed command

#

how can i make two

languid dragon
#

???? Show ur dm code

#

Or ur embed code

shrewd field
#

ok

umbral pelican
#

🤦

languid dragon
#

Same

tawny lava
#

the error is written right there

shrewd field
#

where

languid dragon
#

There.

shrewd field
#

ok how can i make two different embeds

#

with4

earnest phoenix
tawny lava
#

change the name? Thonk

shrewd field
#

RichEmbed Builder

#

name of what

tawny lava
#

Idk

shrewd field
#

why did u say change the name

umbral pelican
gaunt dune
#

show us the code of the thing you're making

tawny lava
shrewd field
#

ok

#

here

#
const embed = new Discord.RichEmbed()
    .setTitle("Embed test")
    .setAuthor("Deni","https://pbs.twimg.com/profile_images/443395572783800322/nXTuit5o.jpeg")
    /*
     * Alternatively, use "#00AE86", [0, 174, 134] or an integer number.
     */
    .setColor(0x00AE86)
    .setDescription("This is the main body of text, it can hold 2048 characters.")
    .setFooter(":wink: © CF", "https://pbs.twimg.com/profile_images/443395572783800322/nXTuit5o.jpeg")
    .setImage("https://pbs.twimg.com/profile_images/443395572783800322/nXTuit5o.jpeg")
    .setThumbnail("https://pbs.twimg.com/profile_images/443395572783800322/nXTuit5o.jpeg")
    /*
     * Takes a Date object, defaults to current date.
     */
    .setTimestamp()
    .setURL("https://discord.js.org/#/docs/main/indev/class/RichEmbed")
    .addField("This is a field title, it can hold 256 characters",
      "This is a field value, it can hold 2048 characters.")
    /*
     * Inline fields may not display as inline if the thumbnail and/or image is too big.
     */
    .addField("Inline Field", "They can also be inline.", true)
    /*
     * Blank field, useful to create some space.
     */
    .addBlankField(true)
    .addField("Inline Field 3", "You can have a maximum of 25 fields.", true);
#

i have this code

gaunt dune
#

mmhhmm

earnest phoenix
#

you're not sending it

shrewd field
#
client.on("message", message => {
    if (message.content.startsWith(prefix + "sssss")) {
      message.channel.send({embed});
    }
  });```
#

with this

gaunt dune
#

change const to var if you want to change it

tawny lava
#

what

shrewd field
#

i want to make an embed commands

umbral pelican
#

get out

shrewd field
#

who

#

what

tawny lava
#

no

umbral pelican
#

change const to var

#

eww

shrewd field
#

why

tawny lava
#

don't fuckin change const to var

#

lol

shrewd field
#

i know

#

i wont

#

it is for python

#

var

#

variable

earnest phoenix
#

lol

umbral pelican
#

wut

tawny lava
#

legit just fuckin const ANYTHINGTHATSNOTCALLEDEMBED = new Discord.RichEmbed()

#

pls

shrewd field
#

ok

gaunt dune
#
Parsing error: Identifier 'embed' has already been declared (Fatal)

'embed' has already been declared

already declared
shrewd field
#

ok thanks

#

guys

#

when i changed embed to

#

ttt

#

it said it is assigned a value but never used

earnest phoenix
#

what are you trying to send

languid dragon
earnest phoenix
#

are you sending an embed called ttt

#

lol

shrewd field
#

then

#

someone said i change the name

#

object lizard

earnest phoenix
#

yes, then send an embed called ttt

shrewd field
#

legit just fuckin const ANYTHINGTHATSNOTCALLEDEMBED = new Discord.RichEmbed()
pls

earnest phoenix
#

Then send an embed called ANYTHINGTHATSNOTCALLEDEMBED

shrewd field
#

how do i send it

languid dragon
#

Omg

earnest phoenix
#

U read the docs...

shrewd field
#

here is part of the code

earnest phoenix
#

lol no

shrewd field
#

where

umbral pelican
#

ohmy

languid dragon
#

I told u wat to do

tawny lava
#

so much wrong in that one image

languid dragon
#

Yep

gaunt dune
#

put the const ttt = new [...] shit in the command

shrewd field
#

errro

languid dragon
#

👀

gaunt dune
#

put your bot's correct token into where it connects

tawny lava
#

it's writen in plain english gg

#

"an invalid token was provided"

languid dragon
#

Uh

shrewd field
#

i have my correct token

gaunt dune
#

suuuUUUuuure about that??

languid dragon
#

Token dont mean bot token

#

Pretty sure he just has a curly boi where he shouldn't be

umbral pelican
#

considering there was red lines on that screenshot bloblul

shrewd field
#

hey

gaunt dune
#

hi

shrewd field
#

does the bot token get changed automatically

gaunt dune
#

no

shrewd field
#

cause it just did

#

i was working with my bot and it changed

#

what does that mean

gaunt dune
#

maybe there's an error making the token different

umbral pelican
#

only if you login 1000 times in 12 hours or summin

shrewd field
#

idk

#

i changed the token now

#

i will see if the error is still there

#

how

#

it is still with the error

gaunt dune
#

then it's sommin' else

languid dragon
#

Token dont mean bot token but dw about my comments amirite

shrewd field
#

doesnt mean bot token

#

then waht does it mean

languid dragon
#

Sigh

#

Im sleeping now, pce

shrewd field
#

ok

#

nvm

#

just found it out

#

typo

gaunt dune
#

knew it

shrewd field
#

hey

#

error

#

developers

gaunt dune
#

you're an error developer 👈 😏 👈

shrewd field
#

huh

#

help me

#

i get await is reserved

#

but have it one time

#

written

#

in the command above

#

#vscoderepresent

trim cosmos
#

if you're using async, shouldn't all api calls in your case, all .reply(...) calls have await?

async function ping() {
    return await message.reply('pong');
}
await ping();```
#

??

#

unless you aren't using an async function, if that's the case remove await from member.kick

rapid musk
#
sql.open("./gconfig.sqlite");
exports.run = (msg, args) => {
  const srole = args.slice(0).join(' ');
  if(!msg.author.id == msg.guild.owner.id) return msg.channel.send("This command is only avalible to the guild owner and people who he/she adds to a list")
  if(!srole) return msg.channel.send("Please provide a role you would like to have set has the mod role")
  sql.get(`SELECT * FROM gconfig WHERE guildID = "${msg.guild.id}"`).then(row => {
    if (!row) {
      sql.run("INSERT INTO gconfig (guildID,srole) VALUES (?, ?)", [msg.guild.id,`${srole}`]);
    } else {
      sql.run(`UPDATE gconfig SET srole = ${srole} WHERE guildID = ${msg.guild.id}`);
    }
  }).catch(() => {
    console.error;
    sql.run("CREATE TABLE IF NOT EXISTS gconfig (guildID TEXT,srole TEXT )").then(() => {
      sql.run("INSERT INTO gconfig (guildID,srole) VALUES (?, ?)", [msg.guild.id,`${srole}`]);
  });
})
sql.get(`SELECT * FROM gconfig WHERE guildID ="${msg.guild.id}"`).then(row => {
     if (!row) return msg.reply("No mod role is set");
     msg.reply(`**${row.srole}** is now the mod role for this server`);
   });
}
``` How come if run another time in a guild where its already been ran once it doesnt change the set srole
#

isnt sql.run(`UPDATE gconfig SET srole = ${srole} WHERE guildID = ${msg.guild.id}`); suppost to change it?

pulsar cairn
#

we are not ur coding helpers

trim steppe
#

Have you tried looking into using rethonk db

abstract mango
#

re thonkku

wanton nova
#

ok

quartz valley
#

@earnest phoenix can you make me a bot?

earnest phoenix
#

no

jagged plume
#

lmao

earnest phoenix
#

lmfao

#

what a meme

quartz valley
#

Wow

jagged plume
#

do it urself

#

or go back to using dyno and mee6 ¯_(ツ)_/¯

umbral pelican
#

@earnest phoenix can you make me one?

earnest phoenix
#

eh.

#

no

umbral pelican
#

:O

jagged plume
#

good job

#

also the nickname bloblul

umbral pelican
#

lmao

quartz valley
#

@jagged plume I am on mobile not PC

jagged plume
#

get pc then

quartz valley
#

You think I have the money?

jagged plume
#

you dont even have a laptop

#

what phone do you have

quartz valley
#

A Motorola

#

And no

dry fulcrum
tawny lava
#

why not both

dry fulcrum
#

🤔

neat falcon
#

probably both

round solstice
#

Ye wuzzah

frail terrace
#

what is a good method to obtain a bot's ping?

#

i have a timer that measures one message's time and then says that

topaz fjord
#

@frail terrace are you using d.js

frail terrace
topaz fjord
#

Oh then idk

frail terrace
#

I should probably update discord.net to 1.0 and see if there’s new methods

topaz fjord
#

anyone know how to count reactions on a message

loud verge
#

Pretty easy

#

That's 1 reaction

topaz fjord
#

using a bot

loud verge
#

That's 2

#

Lmao I know

#

Idk

frail terrace
abstract mango
#

yeah

#

you didn't expect a jump to 1.0 would be major? :p

frail terrace
#

lel

#

i don't have time atm to update all the code

topaz fjord
#

guys

jagged plume
#

i sexually identify as a female

topaz fjord
#

how do i mask a link in text

#

like a regular text

jagged plume
topaz fjord
#

@jagged plume

#

i did this but it doesnt work

#
message.channel.send("[Click Me for TurtleBot!](http://discordapp.com/oauth2/authorize?client_id=361657857223163925&permissions=7863423&scope=bot)")
jagged plume
#

You cant mask normal chat

languid dragon
#

I think thats only able im embeds

restive silo
#

it is only aviable where markdown works

#

in embeds

#

iirc

jagged plume
#

yes, not normal chat

uncut slate
#

markdown works in normal messages too, to some degree

jolly zodiac
#

I don’t get why it’s not fully supported.

prime cliff
#

Using Website Name is only supported in embeds and the rest of the markdown works for normal chat

#

Using Website Name is only supported in embeds and the rest of the markdown works for normal chat

#

Urm discord rip

restive silo
#

yea

jolly zodiac
#

test heading

#

test heading

#

nope

#

test quote

#

nope

#
  • test
  • list
#

nope

languid dragon
#

???

jolly zodiac
#

It’s more than just links that doesn’t work.

languid dragon
#

its not that they dont work, its just that there is only some markdown

jolly zodiac
#

Sure.

#

But I don’t see why the Discord developers didn’t include that.

#

I mean

#

for headings, I understand that.

karmic parcel
#

maybe you should work for Discord and change it

carmine berry
#

you arent a mod anymore 🤔

karmic parcel
#

tbh, deal with it

languid dragon
#

I think the only reason all of that isn't actually included in discord is because it would just clutter the chat and make things a lot more complicated than it actually needs t obe

karmic parcel
#

It's a chat application, not a Markdown messenger

jolly zodiac
#

Of course. But there are things like quotes and lists that wouldn’t really hurt anyone but could get quite handy.

#

They did implement formatted code, even with syntax highlighting. So why not that?

languid dragon
#

Seems unneccessary if you ask me

jolly zodiac
#

None of the given markdown commands Discord implements atm are really necessary.

languid dragon
#

you kinda just disproved that with your emphasis on really

prime cliff
#

Ronin are you okay to tell us why you left mod or nah?

jolly zodiac
#

… no I didn’t.

languid dragon
#

lmao okay

jolly zodiac
#

I just tried to emphasize that they are nice to have – and nothing more. As would the rest of Markdown be.

languid dragon
#

regardless, i do believe #development isn't for open debate 👀

#

if that's an issue why dont you complain directly to discord support, they take suggestions.

#

complaining here isn't giving you anyone nor discord any benefit

jolly zodiac
#

I know that they take suggestions, thank you.

languid dragon
#

👍

earnest phoenix
#

@karmic parcel it’s weird seeing your name green and not red

prime cliff
#

Lol

karmic parcel
topaz fjord
#

How would I make a random color geb

shrewd field
#

Hey

#

How can I make my bot say playing in 3 guilds

#

And what is a guild

#

Devs

round solstice
#

A) Guild = Server
B) Check the docs: I don't even know your library

shrewd field
#

I am

#

D.js

#

Ok

round solstice
#

Ask on the API Server

shrewd field
#

Does the guild increase if the bot is

round solstice
#

Maybe they can help u

shrewd field
#

On many servers

round solstice
#

Ye

shrewd field
#

And I can't ask in api

#

I am banned

round solstice
#

lol create new bot/account?

shrewd field
#

I did

#

But

#

Ip ban

round solstice
#

What the heck did you do

shrewd field
#

Just give evidence

#

To a mod

round solstice
#

😂

shrewd field
#

Of something that I wasn't guilty of

#

So

#

Can u ask

#

For me

#

Plz

round solstice
#

Lol wot xD

#

Shall I link your account too? 😂

shrewd field
#

No

#

Hello

#

What is an endpoint

keen nest
#

If don't know it then u shouldnt apply.for that role

prime cliff
#

@shrewd field If you dont even know what an endpoint is then you clearly havent been in this community long enought to be mod

keen nest
#

@upbeat bronze what is the frontend made in?

bitter sundial
#

mm yes alt ping

earnest phoenix
#

HTML duh

#

CSS

#

JS

keen nest
#

Fuck

#

JS

earnest phoenix
#

lul

keen nest
#

That's wat I'm focusing on

#

Angular, jQuery. React. Vue

#

Didn't see any sense of React

#

Or angular

earnest phoenix
#

No React or Angular

inner jewel
#

electron

keen nest
#

So my guess jQuery or Vue (not familiar with Vue Dom)

earnest phoenix
#

jQuery

keen nest
#

That doesn't answer it

earnest phoenix
#

What did you mean by your question then?

keen nest
#

Semantic requires it

earnest phoenix
#

Front end = HTML, CSS, JS

#

Back end = any other language

keen nest
#

The JS part is wat in asking

earnest phoenix
#

Yes, it uses JS

keen nest
#

Ugh

earnest phoenix
#

No Angular, No React, Yes jQuery

keen nest
#

@bitter sundial

earnest phoenix
#

I don't get your question

#

We already answered it

keen nest
#

I'm asking if they used any front end libs or raw jQuery/js

earnest phoenix
#

The site uses jQuery

keen nest
#

The existence of jquery doesn't mean much. Since semantic requires I believe

#

Unless u deved the site ...?

inner jewel
#

lolwat

earnest phoenix
keen nest
#

(not sarcasm)

earnest phoenix
#

jQuery

shrewd field
#

Hey

earnest phoenix
#

No

shrewd field
#

What is a shard

bitter sundial
#

i hate oliy for using a bit of jquery

earnest phoenix
#

@shrewd field google it

keen nest
#

Ahah

#

Same.

bitter sundial
#

otherwise no

shrewd field
#

Tonkku

keen nest
#

No for ..?

inner jewel
shrewd field
#

When will it be checked

earnest phoenix
#

Be patient

#

yours must be 0

shrewd field
#

0 what

earnest phoenix
#

or howver u spell

#

on the app

umbral pelican
earnest phoenix
#

0 patience

keen nest
#

If it's raw JS Dom maniplution I would get impressed. Site it good.

shrewd field
#

No

#

I said 10

keen nest
#

Is*

shrewd field
#

I am patient

umbral pelican
#

patients

shrewd field
#

Actually

keen nest
#

Lol my site has jquery even doe it's react 😂

earnest phoenix
#

um

#

do you even know what jQuery is

keen nest
#

Yes..

earnest phoenix
#

you're acting like you dont know

keen nest
#

I do web development.

earnest phoenix
#

same

keen nest
#

I'm proving the point that the existence of it doesn't prove that's wat the devs made it in. (The source snippit u did post did prove it however)

earnest phoenix
#

The site uses jQuery. What else do you want to know?

#

Yes, it uses jQuery for Semantic and it's custom scripts

keen nest
#

Uses != Made in. Was wondering wat was developed in

earnest phoenix
#

It was made with jQuery

#

All of it

#

The custom scripts were made using jQuery

keen nest
#

Wait.

earnest phoenix
#

waiting

keen nest
#

Not all 😂

#

"i hate oliy for using a bit of jquery"

#

Watever

#

Got my answer. No front end libs

earnest phoenix
#

jQuery is a front end lib

#

So is Semantic

keen nest
#

I don't count ittt

#

I meant react / Vue / angular etc.

earnest phoenix
#

How are you a web dev? 🤔

keen nest
#

I mean ik they are libs

#

But I mean framework. Shit my bad.

earnest phoenix
#

Semantic is the framework, which requires jQuery (lib)

keen nest
#

Yes

earnest phoenix
#

jQuery is a lib and framework

#

it's both really

keen nest
#

I meant if they used react / Vue / angular one of those.

bitter sundial
#

he said 9

#

huge lie

#

smh

earnest phoenix
#

As I've said, no React, no Vue, No Angular

#

you can always just Inspect element

keen nest
#

I did

#

But I want sure about vue

earnest phoenix
#

k

#

Then find it for yourself

keen nest
#

Idk wat it builds to

earnest phoenix
#

what

#

How long does it take my bot to get reviewed

keen nest
#

I did for react

earnest phoenix
#

10 hours + (Amount of bots before you in queue * 10 mins) + (Times asked to approve * 1 hour)

#

@earnest phoenix ^

keen nest
#

I mean they export raw html js right...? But usually u can tell. React / angular export has certain tags

earnest phoenix
#

nuu

#

Hmm

keen nest
#

At least react and I think some angular. I mostly do React

earnest phoenix
#

Oh

keen nest
#

And wasn't sure Vue did that same.

earnest phoenix
#

Yeah, no angular/react/vue

keen nest
#

That's why I knew the site wasn't react

earnest phoenix
#

Just jQuery and semnatic is mostly it

#

How do i make a bot server count on "playing"?

keen nest
#

Weird it's a damn good site 😂

#

My jquery skill was shit tbh

earnest phoenix
#

and it's made with JS

keen nest
#

🤷

earnest phoenix
#

the whole site

#

made in JS

keen nest
#

I hate web dev

earnest phoenix
#

then quit.

keen nest
#

I do it and learned out of nessitity

#

It's growing on me doe.

earnest phoenix
#

This site actually uses Express which is a javascript library for web hosting

keen nest
#

Yea

earnest phoenix
#

Yea

keen nest
#

Express bae

earnest phoenix
#

Yup

keen nest
#

Ironic since now I'm focusing on web development

#

😂

earnest phoenix
#

mhm

#

gtg

keen nest
#

Like wise

#

Best of luck on mod role

#

And thx for the convo.

slow folio
#

Can someone help me getting the list of voters in java using Unirest

inner jewel
#

don't use unirest

#

it's abandoned

slow folio
#

What should I use then?

#

It is working great for posting server count

inner jewel
#

okhttp

slow folio
#

Okay, and could you guide me a bit on how to do the get request

#

I'm quite new to rest apis

inner jewel
#

you need to do a get on that

#

and give the token on the Authorization header

slow folio
#

Ok

#

Thanks a lot

#

@inner jewel When I have the response object, how do I read all the returned objects?

inner jewel
#

ResponseBody#string() and then you need to parse the JSON

slow folio
#

Thanks a lot man :)'

inner jewel
#

idk about discord4j or javacord, but on JDA you already have org.json on the classpath

slow folio
#

Yeah with discord4j aswell

#

Last thing (I promise), how do I add 'onlyids' to the queryparams to the request, I knew how to do it with unirest, but can't find it on okhttp

#

nvm, got it

fleet epoch
#

ooo i was sent here

median lintel
#

what is the whole code

fleet epoch
#

const Discord = require("discord.js")
const help = require("../help.json")
const settings = require("../settings.json")
module.exports.run = (client, message, args) => {
if (message.author.id == "205479482902052864") {
message.reply("You just shut down " + client.user.username)
console.log(client.user.username + " was just shutdown by " + message.author.username).then(process => {
process.exit(2000)
});
}
}
module.exports.help = {
name: "shutdown"
}

//this shuts down the bot, only the owner can do this!
#

using a command handler

median lintel
#

ok

umbral pelican
median lintel
#

maybe make it exit first then make it send the message

fleet epoch
#

i dont think that will work tbh

#

yea dident say anything after the shutdown

median lintel
#

ok

#

well idk

#

sorry

#

😦

fleet epoch
#

it fine

#

it wont be cool like i thought

#

but i have it sent through console that someone shut down the bot

#

its also like a check cause only i can use the command rn

#

so if anyone else does it then im in trouble

#

cause i also have the eval command in here

earnest phoenix
#
const Discord = require('discord.js')
exports.run = (client, message, args) => {
    let channel = member.guild.channels.find('name', 'suggestions');
    let embed = new Discord.RichEmbed()

    .setTitle('Suggest Command')
    .setDescription('Thank you for your suggestion, I will add it if possible.')
    .setColor('')
    .addField('Suggestion', message.content);

    channel.send(embed)
}
#

what did i fail at

#

xD

umbral pelican
#

error message being wat?

earnest phoenix
#

@umbral pelican .setTitle('Bot-Invite')
^

TypeError: member.guild.channels.find(...).send(...).setTitle is not a function
at Object.exports.run (C:\Users\JBeda\Desktop\SpadeBot\events\message.js:6:6)
at Client.client.on.args (C:\Users\JBeda\Desktop\SpadeBot\index.js:14:53)
at emitOne (events.js:120:20)
at Client.emit (events.js:210:7)
at MessageCreateHandler.handle (C:\Users\JBeda\Desktop\SpadeBot\node_modules\discord.js\src\client\websocket\packets\handlers\MessageCreate.js:9:34)
at WebSocketPacketManager.handle (C:\Users\JBeda\Desktop\SpadeBot\node_modules\discord.js\src\client\websocket\packets\WebSocketPacketManager.js:103:65)
at WebSocketConnection.onPacket (C:\Users\JBeda\Desktop\SpadeBot\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:330:35)
at WebSocketConnection.onMessage (C:\Users\JBeda\Desktop\SpadeBot\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:293:17)
at WebSocket.onMessage (C:\Users\JBeda\Desktop\SpadeBot\node_modules\ws\lib\EventTarget.js:99:16)
at emitOne (events.js:115:13)

umbral pelican
#

uh, you've got member. but member isn't defined anywhere

earnest phoenix
#

can i define it as guild.member

umbral pelican
#

why not just change it to message.guild.channels.find.....

wanton nova
#

oh

earnest phoenix
#

@umbral pelican

umbral pelican
#

mmLol what

keen nest
#

Ew

#

DJS

jagged plume
#

What are you using then

#

"""custom"""

keen nest
#

Yes 😂

#

DJS DIO Eris Disnode all ew in their special ways ❤️

jagged plume
#

k

inner jewel
#

JDA >>>>>> all

keen nest
#

Java just ew

#

Custom doe is least controlling the ew to where u need it 😂

#

Need CPU ew. Lowlevel ew. Memory ew. Ur choice

#

I made a new high-level API. It's super easy to use!

jagged plume
#

ads

#

no

inner jewel
#

what

keen nest
#
require('discord-bot');
#

That's all the code u nesd

jagged plume
#

lol

keen nest
#

It's amazing

#

(how I see DJs)

jagged plume
#

no

keen nest
#

Oh don't ask about custom tokens or commands

#

Those are too low level

#

No one needs those

jagged plume
#

what r u on about

keen nest
#

I don't even know.

jagged plume
#

you need to code events for all of those Thonk

keen nest
#

Nope

jagged plume
#

yes

keen nest
#

That's too complicated

jagged plume
#

._.

keen nest
#

XD

jagged plume
#

have you even tried using these before shitting on them

keen nest
#

Yea

#

Used DJS and DIO

jagged plume
#

Without their command handlers

keen nest
#

Eris doe I'm meaning to try

jagged plume
#

all lib command handlers are bad

keen nest
#

They have command handlers??

jagged plume
#

yes djs has commando

keen nest
#

I never used them

jagged plume
#

eris has eris something

keen nest
#

Wrote my own lol from the start

jagged plume
#

ye same

inner jewel
#
public class MyAutoRegisteredCommand {
    @Command(
        name = "name",
        description = "description",
        usage = "usage",
        permission = CommandPermission.SOMETHING,
        category = CommandCategory.SOMETHING_ELSE
    )
    public static void whateverthemethodnameisthecommandhandlerdoesntgiveafuck(@Argument("channel") TextChannel channel) {
        channel.sendMessage("Hello World").queue();
    }
}```
#

:^)

keen nest
#

DJs was too circular for me

#

Dio had some memory issues

inner jewel
#

and help gets auto generated based on that

keen nest
#

Psh

inner jewel
#

invocation takes a few microseconds

#

memory usage is almost zero

#

:^)

keen nest
#

Someday I'll finish my lib and not make it shit for everyone but me

#

And finish it's caching settings.

inner jewel
#

kek

keen nest
#

And make @trail wing not as janky

#

Wait is it even up.

#

Per guild plugins 😏

jagged plume
#

why not just have it come with features to begin with

keen nest
#

Some guilds don't want to

#

Let the guilds decide

jagged plume
#

i don't see why you don't want a bot to come with features

keen nest
#

U just want a mod bot. Download mod plugins.

#

We have bots that are specialized

#

Disnode bot just is the pluginable one

jagged plume
#

pluginable?

keen nest
#

We make bots that are Disnode with preloaded plugins and disable downloading more

#

IE @timber jungle

#

If I wanted a mod bot just copy Disnode bot. Throw in mod plugins. Release.

inner jewel
#

minecraft forge but for discord bots

jagged plume
#

you do you, but i would prefer a bot with all features added in to begin with

inner jewel
#

make features, add option to disable

#

¯_(ツ)_/¯

jagged plume
#

yeah

inner jewel
#

way simpler and way harder to have exploits

earnest phoenix
#

@umbral pelican still saying error

keen nest
#

I mean

#

Adding default features is literally drag and drop for me if I wish

#

I may add a disable thing but workkkk

#

Just drag and drop wat ever plugins I want into the global server folder and wala

#

That's how help and information commands work

inner jewel
#
{"op":0,"s":3,"t":"VOICE_STATE_UPDATE","d":{"self_deaf":false,"user_id":"182245310024777728","guild_id":"310856262235586570","deaf":false,"session_id":"5bdfc0f4071729a9489808a99224f7b2","mute":false,"suppress":false,"self_video":false,"self_mute":true,"channel_id":null}}```
#

self_video

keen nest
#

And Casino

inner jewel
keen nest
#

Plugins acrose all downloaded from our site cuz why not

#

^plugins add eight-ball

#

All u need bb

#

Not the most popular approach or most loved but it's was a fun challenge to code. And makes it unique

#

Plus makes adding new functionality quick.

prime cliff
#

Development is always about fun challenges

keen nest
#

Can make a "normal" bot easily and non would be the wiser it was a plugin system running it

#

Hell that's the plan

#

For plugins like Cards Against humanity release it on our plugin repo. And drop it in own standalone bot too .

#

Makes popping out bots ez

prime cliff
#

Victoryforphil be poppin 😛

keen nest
#

And makes hosting them uniform

jagged plume
#

still not a fan but some people might find it useful

keen nest
#

For some guilds

#

For ur kind that's why we have dedicated bots

#

I mean one command doe

#

To add a plugin

prime cliff
#

"ur kind"

keen nest
#

Not too much work.

#

Weeb

#

U do know @timber jungle = @trail wing right 😛

prime cliff
#

I already knew that

keen nest
#

Just + CasinoPlugin - Pluginmanager

#

It's fun

#

Combing and rearranging

#

I may do that

#

Add mod plugins and make a mod bot

#

Just make different combos of bots

#

Like a nornie bot with the fun plugins

#

Music bot

#

Mod bot

#

Like war casino and cah are gonna do just not as focussed around one plugin

#

Hm

#

@jagged plume thx for the idea

#

-bots

gilded plankBOT
#
VictoryForPhil#4759
Bots

@timber jungle
@trail wing

keen nest
#

Is about to grow.

jagged plume
#

thanks for what idea

keen nest
#

Making more normally formed bots to fit people who share ur opinion

#

Combo bots.

jagged plume
#

dont see how its an idea

#

its how most bots operate

#

lol

fleet epoch
#

here is my start code, this is in my index

shrewd field
#

hey guys i get an error await is reserved

languid dragon
#

show us your logs

shrewd field
#

logs

languid dragon
#

error logs

shrewd field
#

ok

earnest phoenix
#

Anybody got server count not sharded for node.js???

shrewd field
#

here is the logs

#

ken

languid dragon
#

can you show me the function

shrewd field
#

should i show the code

languid dragon
#

thats what i mean

shrewd field
#

ok

#

here

languid dragon
#

putting async before message => { should do the trick if my memory is working right

shrewd field
#

before

#

ok i will try

languid dragon
shrewd field
#

ok

languid dragon
#

also

shrewd field
#

eslint error

#

Parsing error: Unexpected token message (Fatal)

topaz fjord
#

You can't have await without async

shrewd field
#

unexpected identifier

topaz fjord
#

What node v

shrewd field
#

node v

languid dragon
#

sry try async (message) => {

topaz fjord
#

Node version

shrewd field
#

8.5.0

topaz fjord
#

Replace

shrewd field
#

replace

#

what

#

ken

#

where do u mean

#

ken when i did

languid dragon
#

async (message) => {

shrewd field
#

async (message) => {

#

igot

topaz fjord
#

client.on("message", async (message) => {

shrewd field
#

Parsing error: Unexpected token => (Fatal)

#

thats what i did

#

that error

languid dragon
#

1 sec

topaz fjord
#

Take out the () around message

#

@shrewd field

languid dragon
#

shouldn't matter either way

shrewd field
#

ok

topaz fjord
#

I believe it does

shrewd field
#

still same error

languid dragon
#

i believe it doesn't

topaz fjord
#

How did you write it

shrewd field
#

i wrote it

#

(message)

languid dragon
#

wheres the other one of this

#

im probably just blind and cant find it

topaz fjord
#

You didn't put the fucking async

#

We've been telling you this

shrewd field
#

up next to the =>

#

i did

#

this is old code

languid dragon
#

write async (message) and resend us a screenshot of your code

topaz fjord
#

I wanna see how you wrote it noe

shrewd field
#

that ken has

topaz fjord
#

Now

shrewd field
#

ok

#

was like this

#

now

languid dragon
#

right, what happens if you remove async AND await before kicking the user

shrewd field
#

ok i will try

#

Parsing error: Unexpected token } (Fatal)

#

this

languid dragon
#

remove the } i circled earlier

shrewd field
#

ok

#

so many errors

languid dragon
#

right

#

first of all and most of all

#

you dont have the variable args

#

there is no args in your message event

faint delta
#

int 3.8

earnest phoenix
#

holy moly use a screenshot

languid dragon
#

lel

earnest phoenix
#

I dont have discord on my PC

#

It dont work

#

wut

#

lol

#

School pc?

#

It just say 'Could not run app check with the developer to get the version'

#

And no its my personal PC

keen anvil
#

google stuff pls

#

cc @earnest phoenix had the same issue

earnest phoenix
#

rsv2 errors killed me when I got them

#

but yea console log all ur shit

tawny lava
#

I wonder what’s wrong

#

{} hint hint

topaz fjord
#

Lol

#

How did we not see that

tawny lava
#

Cuz you’re blind

topaz fjord
#

Yes yes we are

tawny lava
#

Smh

languid dragon
#

👀

earnest phoenix
#

@earnest phoenix npm i uws

#

then restart bot

wanton nova
#

oh

supple shale
#

ikr

earnest phoenix
#

a

#

a

#

a

frail terrace
#

i don't get this at all

#

it's legit the exact same stuff

#

nvm fixed it

#

apparently the method name was invalid oops

tepid dune
#

Help I can't vc bc I'm using safari can yall change it so I can use safari

umbral pelican
#

lol

tepid dune
#

Plz I need help

prime cliff
#

Wut Thonk

earnest phoenix
#

@tepid dune I know how to fix it

tepid dune
#

Plz help if u know how

topaz fjord
#

could someone help me

graceful hedge
#

my embed is fine on mobile but messed up on PC

fleet epoch
#

it's normal

#

How is it broken?

#

@graceful hedge

graceful hedge
#

looks like that

#

but on Mobile its all straight

fleet epoch
#

It's part of the mobile for discord, you can't control it

graceful hedge
#

oh

#

so i cant get it organized?

fleet epoch
#

Not really for mobile

#

Entail they totally fix embed for mobile it will be like that

graceful hedge
#

and will discord patch it soon? do u think?

fleet epoch
#

You would have to ask them

graceful hedge
#

thanks 4 your help

fleet epoch
#

Np

tepid dune
fleet epoch
#

It's a unsupported browser

tepid dune
fleet epoch
#

It happends, download the discord app or try a diffrent browser

earnest phoenix
earnest phoenix
#
288817163039670273
#

oop

#
const request = require('snekfetch');
exports.run = async (client, message, args) => {
const response = await request('https://random.dog/woof.json', (e,r,b) => {
  var imageURL = JSON.parse(b).url
  var embed = new Discord.RichEmbed()
  .setImage(imageURL)
  .setTitle('Random Dog')
  message.channel.send({embed})

})}
#

i need help

#

:2

fleet epoch
#

how can i catch a mission permissions error

earnest phoenix
#

missing

fleet epoch
#

???

frail terrace
#

does anyone have an idea of why my bot won't work in this server now?
it works in my server

earnest phoenix
#

Hey @graceful hedge at least you can embed -_- when u try it just crashes my PC

#

You're not embedding right

#

I cant

#

Embed crashes my PC

prime cliff
#

Embeds dont just crash your pc for nothing

earnest phoenix
#

Show us the code

#

Talk is cheap, show me the code

#

When i put it in it will always so 'Unexpected token' and when its fixed... THE WHOLE CODE IS GONE

prime cliff
#

?

earnest phoenix
#

show me the code

#

How do i make my bot log a message in console when someone executed a command

topaz fjord
#

Wth

#

Just do in every command console.log

prime cliff
#

Thats like basic stuff ;-;

earnest phoenix
#

k

fleet epoch
#

Lol

#

after the command is ran, console.log("command was just used");

fleet epoch
#

How would I make a cooldown?

earnest phoenix
#

I have ${member.user} as a leave message mention how do i made it say the name no @ mention it???

#

@earnest phoenix How about you read the docs

fleet epoch
#

xD

fickle solstice
#

@earnest phoenix ${member.user.tag}

jagged plume
#

SpOoNfEeDeR

wet geyser
#

how could i post my server count to the website in python?

tawny lava
surreal peak
#

@frail terrace did you update your library?

#

this server has categories

#

all libs needed an update else bots wouldn't work in guilds with categories

scenic crest
#

depending on the lib they might ^

surreal peak
#

well i know most of them do

timber cape
#

yeah eris lib needs update otherwise it crashes when you delete a catagory

surreal peak
#

some bots crash, others ignore the guild

scenic crest
#

I think JDA just threw 8 billion errors in another thread for me

#

and Discordgo hasn't been updated in a bit and it worked fine for me

surreal peak
#

.NET wouldn't do anything in guilds with categories most of the time

scenic crest
#

.NET hasn't been updated yet .w.

surreal peak
#

It has

#

1.0.2 and 2.0.0-alpha both have a fix for categories

scenic crest
#

ahhh I was looking at the master branch like yesterday

#

wasn't there

surreal peak
#

mmm

scenic crest
#

-bots abbyclaw100

gilded plankBOT
#
abbyclaw100#9716
Bots

@gray vine

scenic crest
#

-botinfo @gray vine

gilded plankBOT
#
Bot info
ID

342414375920861189

Username

Boneless Pizza

Discriminator

8788

Short Description

A simple Discord bot with a variety of commands. ;cmds lets you see them all.

Library
Prefix

;

Upvotes

1

Server Count

No server count

Owner(s)

@frail terrace

Links
scenic crest
#

ah .NET

next path
#

lol the bot avatar is the same as the owner's avatar

#

lmao

scenic crest
#

I mean who cares lol

#

I nearly set my avatar to my bot's avatar

next path
#

yeah but it doesnt support gif

#

rip

scenic crest
#

OH LMAO

frail terrace
#

@surreal peak yes, I did

#

It’s not the latest discord.net because I couldn’t resolve this one error with conflicting assembly references

#

two different assembly versions of the same thing were referenced by discord.net and discord.net.commands

#

wow the update worked this time

#

thank you @surreal peak

#

😄

surreal peak
#

np ^^

shrewd field
#

hello

#

i get the error args is not defined

frail terrace
#

what library

shrewd field
#

js

tawny lava
#

@shrewd field then define it

shrewd field
tawny lava
#

define your args