#development

1 messages Β· Page 330 of 1

earnest phoenix
#
:x: IMMORTAL | ERROR

Insufficient Permissions
You dont have permissions to use this command.

sinful meadow
#

xDDD

worldly steeple
#

aw

cerulean zinc
#

lol

sinful meadow
#

Make him say this

cerulean zinc
#

/kick @earnest phoenix

#

:3

sinful meadow
#

shit

#

did he get kicked?

cerulean zinc
#

Lol did I kick him?

sinful meadow
#

Lmfao

#

he is muted

#

ahahahhaa

cerulean zinc
#

Oh no

#

I wanted to have fun

earnest phoenix
#

when did they join?

cerulean zinc
#

Idk but dms work XD

sinful meadow
#

xDD

cerulean zinc
#

They lives

sinful meadow
#

lels

#

LMAFO @cerulean zinc

cerulean zinc
sinful meadow
#

Ahahhahha

keen anvil
#
let db = JSON.stringify(await Memer.db.getAllEffs())
let result = db.map(function (a) { return a.effs; });
msg.channel.createMessage(result)
#

db returns an array of objects

#

so shouldn't maping it work fine?

sinful meadow
#

Uh? @keen anvil

#

Js?

keen anvil
#

yes

sinful meadow
#

And what are you trying to take

#

or store

#

all members?

keen anvil
#

No.

#
[{"effs":1,"guildID":"281482896265707520","id":"89d961b2-e93b-4f47-9e2d-06b14f3ad424","userID":"279121701000708098"},{"effs":1,"guildID":"281482896265707520","id":"ca32c82a-c25c-4ac0-9401-603aae6109d2","userID":"214382760826109953"}]
#

thats what db returns

#

I want to show effs

sinful meadow
#

wym by effs?

keen anvil
#

doesn't matter, it's just a value

sinful meadow
#

i have no clue

#

what you are trying to do

keen anvil
#

lol

#

db returns that ^ okay?

earnest phoenix
#

doot

sinful meadow
#

I understand that

#

But like

keen anvil
#

I want to send 1, 1

sinful meadow
#

wtf is Memer.db.getAllEffs()

keen anvil
#

just the effs

#

that has nothing to do with the question

sinful meadow
#

It kinda does since if i dont understand the code i cant help

keen anvil
#

It kinda doesn't because I told you exactly what db returns. It's a call to rethink.

sinful meadow
#

also

#

why are you doing createMessage??

#

why not .send(result)

keen anvil
#

Because I'm using Eris, not d.js blobderpy

sinful meadow
#

Well rip

#

i cant help

#

lmao

keen anvil
#

k

restive olive
#

oo

#

Eris

sinful meadow
#

!!dm 172571295077105664 lelz totally a advertising dm haha

restive olive
#

not using it

sinful meadow
#

πŸ˜‰

keen anvil
#

has nothing to do with my function or the lib, just asking for general js help lol

restive olive
#

but i remember a few things

sinful meadow
#

i still dont understand it

#

lmao

restive olive
#

wut is it?

restive olive
#

kay so is there an error or?

keen anvil
#

yes db.map is not a function

#

but I'm 99% sure mapping should work here

restive olive
#

uhuh

#

it should

#

buttt

#

huh

#

ill fix it hold

karmic parcel
#

It returned an array of objects, but you made it a string using stringify, no?

keen anvil
#

πŸ‘€

restive olive
#

woot woot

keen anvil
#

I don't wanna talk about it

karmic parcel
#

Lol

keen anvil
#

go away now angery

karmic parcel
#

It's okee bb

restive olive
#

i completely missed that

#

wow

#

im dumb

#

GJ

#

im autistic actually

karmic parcel
#

you could have asked me in our secret dev chat tho

restive olive
#

im out before i get roasted

languid dragon
#

me with coding

restive olive
#

WOOT WOOT

#

since i helped

#

i know want my bot to have

#

full conclosures

#

@onyx hinge EY

#

she's still here

#

lol

cinder oriole
earnest phoenix
#

<@&304313580025544704> Sorry for the tag, Please may you mute my bot - GameBot - I need it to tell everyone that iit has changed its prefix when they type - and i dont want spam.

#

Thanks ^^

#

Not sure why i posted the msg here tbh sorry lol

#

Cheers

#

@earnest phoenix did another mod take care of it?

bitter sundial
#

yes

earnest phoenix
#

Awesome

#

@earnest phoenix ping anyone one of us and we will be glad to unmute when you are ready

sinful meadow
#

<@&364144633451773953> Mind muting my bot if you can its named @reef nexus

bitter sundial
#

-bots @sinful meadow

gilded plankBOT
#
︎︎︎#8363
Bots

@atomic sierra
@reef nexus

sinful meadow
#

πŸ˜›

#

Mind muting it for me?

bitter sundial
#

arraying did

sinful meadow
#

Thanks @scenic crest

scenic crest
#

np

#

ytho if I may ask

sinful meadow
#

It has leveling

#

and auto leveling message

#

and people get triggerd over it

#

lmao

scenic crest
#

fair enough

trim steppe
#

ree

sinful meadow
#

lel

shrewd field
#

Hey how can i make a command like the -botinfo @bot comnand

sinful meadow
#

Be dank

scenic crest
#

you'd probs need to use le api

sinful meadow
#

Thats also

#

That

floral stump
#

anyone knows how i could send a message to all server owners that have my bot using js?

uncut slate
#

client.guilds.forEach(g => g.owner.send(message)), assuming discord.js

floral stump
#

awesome tanks

trim steppe
#

Try not to annoy people with it

floral stump
#

its an announcment that the prefix is changing

umbral pelican
#

poor oliy bloblul

round solstice
#

:)

prime cliff
#

inb4 Oliy gets 50 welcome messages from bots

strange yew
#

so on discordbots.org it shows my bot as offline even though it's online, any reason why it would say that?

prime cliff
#

Thats just a website bug nothing to worry about

strange yew
#

ok, thanks

bitter sundial
#

it was probably just added?

strange yew
#

it was

bitter sundial
#

yeah

#

it should start showing up soon

#

but I have no idea why tho

toxic oracle
#

Does sharding fuck with the posting servercount or anything? Since I sent my sharded value, shard id and shard count. But when I went onto the site my server count had doubled

#

So I made it divide by shard count

#

And now its completely off

#

and now its 311

#

like what the fuck

#

My bot has 251

restive silo
#

if you use d.js there is an example for sharded bot server count with snekfetch in #312614469819826177

#

(from me blobowo)

bitter sundial
#

@toxic oracle do you even have shards? You shouldn't at 251 servers

karmic parcel
restive silo
#

true

pale light
karmic parcel
#

@neon pasture what's your issue bby?

neon pasture
#

Using windows rn

karmic parcel
#

It's literally a Linux module

#

it says

neon pasture
#

o lol

karmic parcel
#

Works on OSX, Linux, SmartOS and Solaris

neon pasture
#

So I can run it on ubuntu?

karmic parcel
#

yes

neon pasture
#

Going to try it on my vps then

earnest phoenix
#

@neon pasture I need help

#
client.on('ready', () => {
  client.user.setGame("--help");
  console.log('I am ready!');
});
neon pasture
#

Someone is asking help to me!

earnest phoenix
#

Any idea why my bot wont show its game

neon pasture
#

client.user.setGame('pepe help | pepebot.pw');

median lintel
#

outdated

neon pasture
#

Use .setgame

#

You already did that

median lintel
#

use .setPresence

grand plume
#

or update djs

earnest phoenix
#

Thats for Idle, Onlline, DND and offline tho right?

grand plume
#

.setPresence is for the full presence status

neon pasture
#

If I was you I would update discord.js

grand plume
#

^

earnest phoenix
#

Im used to this one, im fine lol

grand plume
#

v11.2 has lots of bug fixes, it has no breaking changes

#

its always recommended to update to latest stable

earnest phoenix
#

@neon pasture The bot still doesnt have the game status 😦

neon pasture
#

What version are you using?

earnest phoenix
#

node.js 6.10.2

neon pasture
#

I mean discord.js version

earnest phoenix
#

idk

#

How do i check?

lethal sun
#

@SKILL SHOTZZZ#1716 u can see it in ur package.json file

#

the discord.js version

neon pasture
#

Do you have this: const client = new Discord.Client(); or this: const bot = new Discord.Client();

median lintel
#

use this pls

earnest phoenix
#
const Discord = require('discord.js');
const client = new Discord.Client();

client.on('ready', () => {
  client.user.setPresence("--help");
  console.log('I am ready!');
});

#

yep

lethal sun
#

depends

#

i use const client

median lintel
#

i use var bot = new Discord.Client()

neon pasture
#

okay

#

const client is fine to

earnest phoenix
#

lol

lethal sun
#

mhm never tried that

#

ye

neon pasture
#

client.user.setGame("use !help");

median lintel
#

@earnest phoenix eval Discord.version;

neon pasture
#

Turn your bot off, then wait to show it is offline

#

and then start it back up

median lintel
lethal sun
#

yeh

earnest phoenix
#

Will give that a 2nd go

#

Will give that a 2nd go

neon pasture
#

did it work?

lethal sun
#

what hosts are you guys using?

neon pasture
#

OVH

earnest phoenix
#

My PC πŸ˜‚

sinful meadow
#

Spare laptop

median lintel
#

same

lethal sun
#

lol

neon pasture
#

@earnest phoenix and?

earnest phoenix
#

Saving up donations i get for a Raspberry Pi M3 odel B

lethal sun
#

heroku is good

sinful meadow
#

...

lethal sun
#

cool

earnest phoenix
#

*3 Moder B

neon pasture
#

Did it work?

earnest phoenix
#

Model*

#

ffs

median lintel
#

dont use heroku

sinful meadow
#

They dont allow fs

median lintel
#

heroku = bad

inner jewel
#

don't host bots on an RPi

#

they can't handle it

lethal sun
#

heroku works for me

earnest phoenix
#

😦

lethal sun
#

lol

sinful meadow
#

They can just not music bots @inner jewel

inner jewel
#

i used to host my old bot on a pi 3 b

#

worked well until 200 guilds

#

then it couldn't handle at all

lethal sun
#

listen wut genji said

earnest phoenix
#

@neon pasture Nope

sinful meadow
#

#cluster

neon pasture
#

Yeah sorry, I need to sleep

earnest phoenix
#

@inner jewel can you unmute my bot now please, I req it cos it would spam. Its fixed now...

#

GameBot

inner jewel
#

@broken zenith

lethal sun
#

@<o/

#

damn

earnest phoenix
#

Yes

cerulean zinc
#

Anyone got an idea for what i can add to my bot? I keep blanking on what to add

trim steppe
#

slang

median lintel
#

custom prefix

#

hangman

uncut slate
#

@cerulean zinc A few things I feel like are good additions to any bot, if you don't have them already:

Per-command help system
Custom prefixes
Mention as a prefix
Multiple language support
DM support wherever applicable

cerulean zinc
#

crossed out are completed

Per-command help system
Custom prefixes
~~Mention as a prefix ~~
Multiple language support soontm
DM support wherever applicable

uncut slate
#

Oof. Custom prefixes are really useful and pretty simple to add, I would look into that asap.

cerulean zinc
#

I tried the otherday, but the dhelp stayed

uncut slate
#

What language is the bot in?

cerulean zinc
#

C# (D#+)

uncut slate
#

🀷

cerulean zinc
#

Ive got an idea

uncut slate
#

Find someone who can help you, I guess.

#

Or look at some open sourced code and learn from it.

cerulean zinc
#

Sometimes my English Locale crashes VS :/

uncut slate
#

f

#

I wouldn't know anything about C# but I haven't heard great things about VS

cerulean zinc
#

VS is great

#

Only had problems with large locales

#

VSC is... is something else

uncut slate
#

Mm

#

I use VSC :c

#

well, not for C#

cerulean zinc
#

Lang?

#

VSC seems to be only good in JS

uncut slate
#

js, HTML, CSS, basic shit

cerulean zinc
#

HTML and CSS are prob fine, because they are fine in Notepad++

uncut slate
#

heh

#

yeah

earnest phoenix
#
~~~Custom prefixes~~~
Mention as a prefix - Can't, I use mentions for my custom smart bot
Multiple language support 
~~~DM support wherever applicable~~~ p!contact
north fog
#

Per-command help system
Custom prefixes
~~Mention as a prefix ~~
Multiple language support (to lazy)
DM support wherever applicable (soon probably)

earnest phoenix
#

discord.js?

neon pasture
#

yes

#

message.channel.send(....);

earnest phoenix
#

if you are wanting the channel that the message came from, use this:

msg.channel.send

neon pasture
#

I wanna send a message to a channel, but I only have the id

earnest phoenix
#

or you can use this to send to a specific channel:

bot.channels.get(channelID).send()

#

^

sinful meadow
#

message.guild.channels.get('ID').then(e => e.send())

#

@neon pasture

earnest phoenix
#

.get isn't a promise

#

no

#

Don't use that

neon pasture
#

okay

sinful meadow
#

.....

#

Get js for ids....

#

Is*

neon pasture
#

Is?

earnest phoenix
#

Yes, we know, but .get() does not return a promise, so that won't work

sinful meadow
#

It would hahha

#

Try it

tawny lava
#

.get().then() Thonk

earnest phoenix
#

no

#

it doesn't

#

it would throw an error

tawny lava
#

hmm

sinful meadow
#

How?

tawny lava
#

cuz it's not a promise

#

lul

earnest phoenix
#

^

sinful meadow
#

Im on phone sooo im not the best

earnest phoenix
#

Uncaught Error: .then is not a function

#

usually

#

or something like that

tawny lava
earnest phoenix
#

^

neon pasture
#

It worked

earnest phoenix
#

not a promise

neon pasture
#

bot.channels.get(channelID).send()

earnest phoenix
#

good swepy

#

yup

sinful meadow
#

Yea

tawny lava
#

ye that works

earnest phoenix
#

mhm

neon pasture
#

Thank you πŸ˜ƒ

sinful meadow
#

I was used to fetchMember

#

Thats why

earnest phoenix
#

oh

tawny lava
#

hmm

earnest phoenix
#

@neon pasture remember that if your bot is sharded, then that won't work it the channel you are trying to send to is on a different shard

sinful meadow
#

You have to .then a fetxh member

#

fetched

earnest phoenix
#

k gtg now

neon pasture
#

o

tawny lava
#

bai

neon pasture
#
  client.channels.get('365473116937519116').send(GuildMember.displayName + "joined")
});```
#

So this won't work anymore then?

sinful meadow
#

It will

earnest phoenix
#

Depends

sinful meadow
#

I think

earnest phoenix
#

if your bot is not sharded, then it will

neon pasture
#

But then it's sharded not?

earnest phoenix
#

If it's sharded with more than one shard, there is a 50/50 chance of it working

#

It depends on what shard the channel is ok

#

on*

neon pasture
#

How can I make it working 100% of the time then?

earnest phoenix
#

.fetchChannel

#

If that's a thing

#

ask in the d.js server

sinful meadow
#

Dont think soo

earnest phoenix
#

hm

tawny lava
#

lol no don't ask in the d.js server

neon pasture
#

There are only dickheads in the d.js server

sinful meadow
tawny lava
#

also fetchChannel isn't a thing

sinful meadow
#

And yea they are complete dickheads @neon pasture

neon pasture
#

umm

#

How is welcomer doing it then?

earnest phoenix
#

bot.shard.broadcastEval("this.channels.get('" + channelID + "') && this.channels.get('" + channelID + "').send('" + content + "')")

#

Kinda sketchy but eh

sinful meadow
#

Tf

earnest phoenix
#

that works for me

#

100% of the time

neon pasture
#

can I use that without shards?

sinful meadow
#

No

neon pasture
#

okay, thanks

earnest phoenix
#

yea, no work without shards

inner jewel
#

lol

umbral pelican
#

why would you be sending a message outside the guild on member join though GWbowsuBlobThonkeng

tawny lava
#

reasonsβ„’

neon pasture
#

Why is this not working?

#

client.on('guildMemberAdd', GuildMember => {

#

.setThumbnail(GuildMember.avatarURL)

#

It says undefined.

languid dragon
#

.displayAvatarURL

neon pasture
#

Thank you

#

nah, is not working

languid dragon
#

d.js?

#

try GuildMember.user.displayAvatarURL

neon pasture
#

yeah, d.js

umbral pelican
#

that capital G is triggering me GWlgbtqZoomeyes

neon pasture
#

That is working! thank you

languid dragon
#

no problem my dude

weak parrot
#

Lmao

earnest phoenix
#

How do I make a hyperlink but with custom text? So like the Invite link at the bottom of @gilded plank when using -botinfo

#

-botinfo

gilded plankBOT
#

Please include a bot mention

earnest phoenix
umbral pelican
#

or (link)[text] GWbowsuBlobThonkeng can never remember which

prime cliff
#

1st one

#

It only works in embeds

earnest phoenix
#

lol

#

In the brackets too?

prime cliff
#

Yea

earnest phoenix
#

Kk thanks πŸ˜ƒ

prime cliff
earnest phoenix
#

I can has Invite Font cant I or does it have to be nrmal?

#

no

prime cliff
#

No normal

earnest phoenix
prime cliff
earnest phoenix
#

Oh okay lol

prime cliff
#

Lol

#

Thx google

umbral pelican
#

happy birthday Fridtjof

#

πŸŽ‰

fickle solstice
#

I need help with a shardinfo command how can i do? i will type -shardinfo and it sends shard 1: Online 2: Online how can i do that? D.js

sinful meadow
#

dont know sadly

fickle solstice
#

😦

fickle solstice
#

or another way to do?

fringe flame
#

i liked the host

#

very much

strange lintel
uncut slate
#

πŸ€”

faint cedar
#

@fossil oxide Why 403? ```js
snekfetch
.post(https://discordbots.org/api/bots/${client.id}/stats)
.set({ Authorization: dBotsORG })
.send({ shard_id: client.shard.id, shard_count: client.shard.count, server_count: count })
.then(() => {
client.console.log('[DBOTSORG] Successfully posted to Discord Bots Org.');
})
.catch((err) => {
client.console.error([DBOTSORG] Failed to post to Discord Bots Org. ${err});
});

#

I am literally dying because of this issue

bitter sundial
faint cedar
#

🀦

bitter sundial
#

can't help you with that

strange lintel
#

lol more like dont want to help you with that Kappa

earnest phoenix
#
//------------------------------------------------------------------------------
//PROGRAM! PROGRAM! PROGRAM! PROGRAM! PROGRAM! PROGRAM! PROGRAM! PROGRAM! PROGRAM! PROGRAM! PROGRAM! PROGRAM! PROGRAM! PROGRAM! PROGRAM! PROGRAM! PROGRAM! PROGRAM! PROGRAM! PROGRAM! PROGRAM! PROGRAM!

if(message.content==="--help") {
  message.author.send({embed: {
    color: 3447003,
    author: {
      name: client.user.username,
      icon_url: client.user.avatarURL
    },
    title: "Command List",
    description: `__**Sponsored Servers**__ - *Click to Donate to get your server featured! ->* [Donate](https://www.paypal.me/SKILLSHOTZZZGB)\n[Ancient Greece]()\n\n__**Bot Owner Commands:**__\n*Stop, Reload, Leave, AddRestrictGuild, RemRestrictGuild, Servercount, Shutdown, BotLockdown, DisableCommands*\n\n__**Other Commands:**__\n*Stafflist, Apply, Invite, Support, Donate, Donators.*\n\n__**NSFW:**__\n*Boobs, *\n\n__**Commands:**__\n*Marry, Laugh, Cry, Angry, Cena, Jeff, Pepe, Thonk, Lovecalc, Chance, Assumesex, Echo, Sleep, Cartoon, Beep, Boop, Rick, Sneeze, Burp, Fart, Cowsay, Chickensay, KFC, Pumpkin, RIP, Flirt, Pat, Say, Avatar, Embed, Choose, Wall, Fame, Punch, Shoot, Rob, Smack, Stab, 8Ball, Fish, Randnumber, Randletter, Yomomma, Joke, Insult, Add, Subtract, Divide, Multiply, Slot, Megaslot, Dice, Coin, Guessgame, Lenny, Greentext, Marco, Polo, Cat, Meme, Reverse, NSFW, Card, Yodify, RPS, Cookie, Milk, Lotw, High5, Bump, Poke, Hug, Sparta, China, Compliment, Remindme, Crime.*\n\n**DONT WORRY THERE ARE STILL PLENTY MORE TO COME!**\n\n[[Support]()] [[PayPal](https://www.paypal.me/SKILLSHOTZZZGB)] [[Website](https://gamebot.webstarts.com)]`,
    timestamp: new Date(),
    footer: {
      icon_url: client.user.avatarURL,
      text: `Β© ${client.guilds.size} Servers. ${client.users.size} Users.`
    }
  }
})
}

#

Anyone please?!?!?! It needs fixing ASAP

#

All my other commands work but this on

#

e

#

@strange lintel

strange lintel
#

hmm

#

well im more of a python person

earnest phoenix
#

Js

strange lintel
#

ik

earnest phoenix
#

😒

#

Anyone know JS?

strange lintel
#

you should probably ask someone else

earnest phoenix
#

Like who?

#

😒

#

My bot cant send the help message for some unknow reason

#

@inner jewel You kniw JS Right?

#

know*

#

?????

inner jewel
#

a bit of the syntax

#

but not about any libs

earnest phoenix
#

😦

#

Do you know where the syntax error is? I dont see it

inner jewel
#

there's no syntax error

earnest phoenix
#

?

#

Im confused lel

neon pasture
#

Your message is to long

earnest phoenix
#

Oh

#

Its not that @neon pasture

#

?

#

:''''''(

#

@earnest phoenix

#

?

#

Any ideas?

#

?

#

Ideas for?

#

my error?

#
//------------------------------------------------------------------------------
//PROGRAM! PROGRAM! PROGRAM! PROGRAM! PROGRAM! PROGRAM! PROGRAM! PROGRAM! PROGRAM! PROGRAM! PROGRAM! PROGRAM! PROGRAM! PROGRAM! PROGRAM! PROGRAM! PROGRAM! PROGRAM! PROGRAM! PROGRAM! PROGRAM! PROGRAM!

if(message.content==="--help") {
  message.author.send({embed: {
    color: 3447003,
    author: {
      name: client.user.username,
      icon_url: client.user.avatarURL
    },
    title: "Command List",
    description: `__**Sponsored Servers**__ - *Click to Donate to get your server featured! ->* [Donate](https://www.paypal.me/SKILLSHOTZZZGB)\n[Ancient Greece]()\n\n__**Bot Owner Commands:**__\n*Stop, Reload, Leave, AddRestrictGuild, RemRestrictGuild, Servercount, Shutdown, BotLockdown, DisableCommands*\n\n__**Other Commands:**__\n*Stafflist, Apply, Invite, Support, Donate, Donators.*\n\n__**NSFW:**__\n*Boobs, *\n\n__**Commands:**__\n*Marry, Laugh, Cry, Angry, Cena, Jeff, Pepe, Thonk, Lovecalc, Chance, Assumesex, Echo, Sleep, Cartoon, Beep, Boop, Rick, Sneeze, Burp, Fart, Cowsay, Chickensay, KFC, Pumpkin, RIP, Flirt, Pat, Say, Avatar, Embed, Choose, Wall, Fame, Punch, Shoot, Rob, Smack, Stab, 8Ball, Fish, Randnumber, Randletter, Yomomma, Joke, Insult, Add, Subtract, Divide, Multiply, Slot, Megaslot, Dice, Coin, Guessgame, Lenny, Greentext, Marco, Polo, Cat, Meme, Reverse, NSFW, Card, Yodify, RPS, Cookie, Milk, Lotw, High5, Bump, Poke, Hug, Sparta, China, Compliment, Remindme, Crime.*\n\n**DONT WORRY THERE ARE STILL PLENTY MORE TO COME!**\n\n[[Support]()] [[PayPal](https://www.paypal.me/SKILLSHOTZZZGB)] [[Website](https://gamebot.webstarts.com)]`,
    timestamp: new Date(),
    footer: {
      icon_url: client.user.avatarURL,
      text: `Β© ${client.guilds.size} Servers. ${client.users.size} Users.`
    }
  }
})
}

#

?

umbral pelican
earnest phoenix
#

Gimme a sec

#

I have two errors apparently

#

When i catch the error

#

@umbral pelican

umbral pelican
#

wat, it's still the same error though - and the code you sent works

#

so it's something else that's borked

earnest phoenix
#

😦

#

Idk what tho

#

it only seems to be when i use the --help

#

😒

#

Ill sort it out tomorrow I CBA rn im annoyed at this noww!

#

=bots

topaz fjord
#

-bots

gilded plankBOT
#
TurtleGamingFTW#4822
Bots

@grave sonnet

pale light
#

tb!help

earnest phoenix
wanton plover
#

Anybody know of a website where I can put strings to translate and people can help translate it? My google fu is failing me. No need of automatic things.

karmic parcel
#

You could just make it a Hacktoberfest issue

#

I'm sure people would do it

wanton plover
#

meh, it would be long-term thingy.

karmic parcel
#

Well I'm sure you'll need somewhere to start

rain tendon
#

so question

#

how tf do I send my server count to the API?

languid dragon
rain tendon
#

thank you

earnest phoenix
#

Is there a way to make a user react to a message?

jagged plume
#

ask them to react to it

#

unless you mean code

earnest phoenix
#

I mean code

jagged plume
#

unless you have their token, no

#

or rpc access

#

which u have to apply for

rain tendon
#

is this allowed πŸ˜‚

jagged plume
#

nice meme

#

"If"

cosmic plover
#

not obligatory tm

rain tendon
#

won't let me submit unless I add something

cosmic plover
#

I just put the GH page

rain tendon
#

lmao

jagged plume
#

n/a

bitter sundial
#

you could type in like N/A but

#

website is recommended

rain tendon
#

can I change it later

#

cuz

cosmic plover
#

mantaro.site is a meme

rain tendon
#

website in progress

#

but

cosmic plover
#

I legit prefer the GH page

#

xS

rain tendon
#

bot website done

#

has more documentation than anything else atm

#

fuck it I'll use it, I'll switch it out once the website is fully done for it

bitter sundial
jagged plume
#

owo

rain tendon
#

@bitter sundial

#

you should get on it

jagged plume
#

ok

bitter sundial
#

I dont do them

jagged plume
#

no he doesnt do them

#

lol

rain tendon
#

lmao

#

who do

bitter sundial
#

Oliy's the only one rn

jagged plume
#

don't ping oily

#

pls

rain tendon
#

damn

#

alright

jagged plume
#

if you ping him he will just deny it

#

i probably would

#

just have to be patient with that

rain tendon
#

oh well

bitter sundial
#

certification applications are checked quite infrequently 😦

rain tendon
#

aweeeeeeee

#

shiiiiiiit

jagged plume
#

ye was atleast 1-2 months and then i got accepted

rain tendon
#

oh my god

bitter sundial
#

well thats long

rain tendon
#

tell him to hire someone to do it

bitter sundial
#

lul

jagged plume
#

was worth the wait tho

prime cliff
#

Hire b1nzy :3

jagged plume
#

lotsa servers

languid dragon
#

whats that real simple code where if its true or false it returns "stringOne" : "stringTwo" or something like that

jagged plume
#

boolean ? "true" : "false"

rain tendon
#

yea

languid dragon
#

o thonx

bitter sundial
#

condition ? onTrue : onFalse

jagged plume
#

You aRe So tEcHnICAl

rain tendon
#

someone should put in a good word for me

bitter sundial
#

called ternary operator

languid dragon
#

work

jagged plume
#

yes

rain tendon
#

^

languid dragon
#

thanku lads

#

if(i=0; (can i put an or statement here); i++)

#

if(i=0;10>i || something.length>i; i++)

bitter sundial
#

I think so

#

but it will stop if it ever gets a false

languid dragon
#

yeah thats good, i have a top ten leaderboards and i know straight away there wont be more than 10 people on the top, so having a users.length>i
would prevent any nulls showing on the boards
heh

languid dragon
#

<@3242...> tags a user correct?

stone kiln
#

yeah

languid dragon
#

how would you tag a role within a node.js string

stone kiln
#

hmmm

#

let me check

languid dragon
#

actually just thought of a solution, nvm x

uncut slate
#

<&

languid dragon
#

oop ty

#

do i need to do \<&

median lintel
#

\@role

uncut slate
#

If you want the ID, send \@role

#

If you wanna ping, send <&roleID>

languid dragon
#

thanku dude x

earnest phoenix
#

nope

#

it's <@&roleID>

languid dragon
#

eh i just did it the long way

earnest phoenix
#

Β―_(ツ)_/Β―

lethal sun
#

So my bot is hosted on Heroku... And I want to setup the server thing on the discordbots page... Do I need to upload my node_modules folder to my GitHub repo to get the servers thing alive?
My bot just went off so I guess it do...
Just making sure.

earnest phoenix
#

@lethal sun don't push node_modules ever

#

security issue. and it's a nightmare

#

and git may reject your commit because of a 412

wanton plover
#

Heroku will run your package.json to install the dependencies

#

If you are on the free tier, if there's no activity (like web activity) it sleeps after 30 minutes

keen nest
#

g-help

lethal sun
#

@wanton plover thanks it worked ❀

keen nest
#

^plugins list

#

^plugin lis

#

^halp

#

Oh sorry

#

Wrong chat

lethal sun
#

lol

torpid herald
#

trying to request voters for my bot but says i need to pass an authorization token, how would i go about doing that when using the request module in node.js?

elder badge
languid dragon
#

message.member

#

also you dont need the other if statement

elder badge
#

o

languid dragon
#

if( one == true || two == true ) then ...

elder badge
#

okay

languid dragon
#

also

#

are you using D.js?

elder badge
#

yea

languid dragon
#

i dont think hasRole() exists

elder badge
#

it does

languid dragon
#

does it?

elder badge
#

it's on the doc

restive silo
#

Its deprecated

elder badge
#

yea

languid dragon
#

yeah it doesn't exist

elder badge
#

o

#

idk

#

must be trippin

languid dragon
#

instead do message.member.roles.find("name","roleName") == null

elder badge
#

okay

languid dragon
#

if the role doesn't exist it'll be null

#

if it does it wont be null

#

thats probably not the right way to do it, but it works for me :--)

elder badge
#

okay

#

thank you

languid dragon
#

anytime dude

elder badge
#

πŸ˜›

languid dragon
#

im pretty good with D.JS so if you need any extra help, feel free to DM me

elder badge
#

fair enough okay

torpid herald
#

wait why am i a dunce

#

just looking for help with using the api for the website

elder badge
#

i'll hit you up if i need help @languid dragon

languid dragon
#

sure !

#

side note => i wont actually be awake for very long, its almost 00:00 for me

elder badge
#

o

#

okay

restive silo
#

Wat dont do that use ```js
<guildMember>.roles.has("id")

Or ```js
<GuildMember>.roles.exists("Property", "value")```
elder badge
#

well gn @languid dragon have a nice sleep, thanks for the help again i'll test it in a sec

restive silo
#

Mobile writing sucks blobsweats

languid dragon
#

forgot about exists lmfao

restive silo
#

Tfw

#

Yea using that is better since it return an boolean and you dont need to compare anything

#

Also == is a lie

#

=== is the way to go :p

languid dragon
#

shit gets complicated

restive silo
#

Strict conparing is ❀

torpid herald
#

Can anyone help?trying to request voters for my bot but says i need to pass an authorization token, how would i go about doing that when using the request module in node.js?

inner jewel
#

send the token on the Authorization header

torpid herald
#

like what does that look like

restive silo
#

Look the usage of the request module up

neon pasture
#
  "1",
  "2",
  "3",
  "4",
  "5",
  "6"
];
var number = roll[Math.floor(Math.random() * roll.length)]
var number2 = roll[Math.floor(Math.random() * roll.length)]
var numbers = number + number2;```
#

How can I add up number and number2? So the output will be 2-12

elder badge
#

any1 know how to get the user by id?

earnest phoenix
#

360860120609193997

elder badge
#

cuz message.member == "360860120609193997" doesn't work :/

#

@uncut slate you know or you sleepin now?

earnest phoenix
#

ok

uncut slate
#

client.users.get(id)

elder badge
#

o

#

okay

#

ty

#

πŸ˜›

#

if(message.member.roles.find("name", "ClientMod Permissons" || client.users.get(botSettings.owner))){

uncut slate
#

that's not how js works

elder badge
#

well fuck

uncut slate
#
if ( message.member.roles.find("name", "ClientMod Permissons") || client.users.get(botSettings.owner) ) {
elder badge
#

do i have to put my id?

#

o

#

k

#

thanks! it worked

uncut slate
#

but you realize that will always trigger, right

elder badge
#

yea

uncut slate
#

mk

elder badge
#

i'm dumb when it comes to roles and ids so thanks

#

@uncut slate i tested it with an other user and it's letting them warn without having the role or being me?

uncut slate
#

ya

#

I literally asked you but you realize that will always trigger, right and you said yea

elder badge
#

o

#

i'm dumb

#

lmao

#

brb

#

it worked with my old bot well hmm

#

i shouldn't of quit lmao

earnest phoenix
#

U guys using discord.js or something different

uncut slate
#

most of the userbase uses discord.js, yes

earnest phoenix
#

^

#

K

#

I use it

#

It's bR

#

bae*

#

bit that mem usage tho

#

but*

#

IPhone pls

#

Do u know a fun command

#

connect 4

#

Im hosting my bot from androidnit strted to lag like i ran battlefield 1 with low end pc

#

how do you host bots?

#

you start it

#

Node bot.js

#

^

#

ez

#

pm2 start bot.js --name MyBoat

#

i mean, i have a bot but i want somewhere to host it so it can stay online

#

Buy a VPS

#

No one is gonna host for free

#

Or use youe phonw

uncut slate
#

..no

earnest phoenix
#

And place it near the router

uncut slate
#

....no.

earnest phoenix
#

W/ screeen on

uncut slate
#

no.

earnest phoenix
#

Why no lol

uncut slate
#

hosting a bot intended to be public on a phone is one of the dumbest things i've heard in a very long time

earnest phoenix
#

lmfao

#

so VPS will make my bot stay online? how?

inner jewel
#

^

earnest phoenix
#

yes it will

#

it runs the bot

inner jewel
#

because a VPS is a machine thats online all the time unless you shut it down

earnest phoenix
#

i see ok, thanks

#

^

inner jewel
#

also it costs less than selfhosting

earnest phoenix
#

It may be stupid but its the only way if u have to shut off ur pc

inner jewel
#

you can use a vps

earnest phoenix
#

It's not stupid

inner jewel
#

also hosting on a phone will slowly damage the battery

earnest phoenix
#

wait

#

The VPS or phone?

inner jewel
#

phone

earnest phoenix
#

Ikr phones are trash

#

and yes battery damage

#

and nah

#

Dpes that mean less capacity

#

installs Linux on iPhone

#

Ok

#

But does that "battery damage" means less battery capacity?

uncut slate
#

yes

inner jewel
#

with time yes

uncut slate
#

and more

#

also, there's way better solutions out there

earnest phoenix
#

Hosting via vps is a good idea but it costs money

uncut slate
#

not necessarily

#

google cloud and digital ocean are pretty great

#

aws and heroku I've never tried and can be annoying but they are definitely better than hosting on a fucking phone

earnest phoenix
#

Is google cloud free

uncut slate
#

yes

earnest phoenix
#

Does it support node 8

prime cliff
#

You only get $300 free though

uncut slate
#

^

#

and it's a full fledged VPS you can do with it what you want

#

it supports any version of node you can manage to install with that amount of brain cells mmLol

earnest phoenix
#

I tried on heroku once it does not support node 8

weak parrot
#

Local hosting bloblul

uncut slate
#

heroku might not

lethal sun
#

i use heroku... its pretty good.

earnest phoenix
#

How did u get it to work

lethal sun
#

lol

#

discord.js

#

if so

#

just go to yt and search for how to host your discord bot on heroku 24/7 discord.js

#

then click the first vid

#

im on phone so i cant type guuud

earnest phoenix
#

I hate virtual keyboards

lethal sun
#

me too... especially when they lag

rain tendon
#

@earnest phoenix it does support node 8

#

My bot I host on heroku uses node 8.6 and npm 5.4.2

#

Make sure you specify those in your package.json

#

I'll send example

#
"engines": {
    "node": ">=8.0",
    "npm": ">=5.0"
  }
#

That's what I use

#

Put that in your package.json

#

Then deploy on heroku

#

Should work fine

#

@earnest phoenix

earnest phoenix
#

you mentioned him twice @rain tendon 🀦

rain tendon
#

He didn't respond the first time

#

I should @him again

earnest phoenix
#

Banne

#

K

#

I didnt respond firr time cuz i was away

rain tendon
#

Makes sensr

#

Sense

#

I'd suggest instead of doing what I did and just getting versions newer than a certain build to just enter in an exact version

#

So like node 8.6 or npm 5.4.2

#

Whatever you're using to develop it

#

Cuz then it won't install like the latest build of npm or node and that might break your code ya feel

#

So just be specific on the versions

earnest phoenix
#

Ill try and and see if it works on heroku

#

How long does the bot stay on heroku?

sinful meadow
#

Bots will stay on heroku untill you shut it down @earnest phoenix

#

But id rather give you some information on why heroku sucks dick

earnest phoenix
#

Ok why does it suck

sinful meadow
#
  1. Discord might even deny connection from heroku
  2. They dont allow FS or any file system modules
  3. They are just trash ask anyone
earnest phoenix
#

Im guessing its just better to host it off your computer or local

sinful meadow
#

Yep

#

Or if you are cool enough

#

Have a spare craptop

inner jewel
#

or just use the google cloud always free plan

#

Β―_(ツ)_/Β―

earnest phoenix
#

I have 2 of em, one has a broken powee button but does work, the othet one has a faulty hard drive

sinful meadow
#

@earnest phoenix

#

Take the hard drive out of one

#

and put it in the one that works

#

then DAB

median lintel
#

wew

#

wrong channel

#

ok bye

rain tendon
#

@sinful meadow I use fs on my bot on heroku and it works fine

sinful meadow
#

Then they have been changing shit

rain tendon
#

Tbh hosting locally is way better than hosting anywhere online

sinful meadow
#

^^^^^

#

True

rain tendon
#

As long as you have a reliable internet connection and devot like a min of 500 mb

#

Of ram

#

Personally I think the best hosting option would be a raspberry pi

#

Too bad I don't own one 😞

sinful meadow
#

i own one

#

but its a old one

karmic parcel
#

I have one

#

And host my bot on it

sinful meadow
#

1, 2 or 3 @karmic parcel

karmic parcel
#

3

cosmic plover
karmic parcel
#

that's not true for bigger bots

sinful meadow
#

^^^^^

fleet epoch
#

Any way I can make a DM logger? When someone dms my bot it gets sent to a channel?

sinful meadow
#

language?

fleet epoch
#

js

sinful meadow
#

try

#

if(message.channel.type === 'dm'

#

or something

fleet epoch
#

if(message.channel.type === 'dm' {
client.channels.get("id goes here").send(message)
}
Or something like this

sinful meadow
#

maybe idk

#

i think

#

but ive never done it

fleet epoch
#

Oh

sinful meadow
#

ive always ignored dms

fleet epoch
#

Ik but I have a control center where suggestions from the suggestion command go and I want the DM logger there also

earnest phoenix
#

@sinful meadow tbh if you don't know how to do something, don't try helping someone else, because you'll end up giving them the wrong answer

#

also, do you even JS

sinful meadow
#

I do lmfao @earnest phoenix

earnest phoenix
#

you missed a )

sinful meadow
#

And that isnt the wrong answer

#

Ik

#

Im not fucking spoon feeding

earnest phoenix
#

I know, but you said "i think"

#

If you think you're wrong, don't purposefully give wrong answers

#

;-;

sinful meadow
#

Ive never done DM logger

#

Thats why i said i think

earnest phoenix
#

mhm, sure

#

kek

sinful meadow
#

Send a piece of code here

#

and ill fix it

#

To show that i know

earnest phoenix
#

mobile

sinful meadow
#

function Jazz(id,jazz){
return message.guild.channels.get(id).send(jazz)
}

#

Good enough

#

@earnest phoenix

earnest phoenix
#

what

#

why ping

sinful meadow
#

Because

earnest phoenix
#

because no

sinful meadow
#

Because so

earnest phoenix
#

because block

sinful meadow
#

because cock

#

wait what lmao

earnest phoenix
#

uh

#

#nsfw-testing

sinful meadow
#

lel

earnest phoenix
#

wtf is this shitposting?

sinful meadow
#

its not

earnest phoenix
#

yes mute him

#

he's shitposting

sinful meadow
#

he said i couldnt code and i showed him i can @earnest phoenix

earnest phoenix
#

irrelevant

#

in a very shitposty way

#

mute him

#

;-;

#

you're both shitposting

#

please stop

#

;/

round solstice
#

And this is supposed to be the dev channel? Go to #265156361791209475 .
And now lets get back to the serios stuff.

craggy cave
#

Does anyone know the piece of python (discord.py) code that goes at the top that stop's the bot listening to other bots

fringe flame
#

<@&304313580025544704> why alexa bot is muted?

scenic crest
#

aa mass ping

#

disocrd has a built in search function for a reason

#

and @craggy cave in the command executor:

  • get the user object
  • is the bot boolean true?
    -> ignore command
  • no?
    -> continue with whatever
uncut slate
#

@fringe flame Please just ping a single mod (or in this case the mod who muted your bot) instead of the whole mod team. Failure to comply will result in a mute.

fringe flame
#

Ok, but I can't found.

uncut slate
#

Then look harder. Not my issue. Go to #mod-logs and find your bot's mute case.

fringe flame
#

How i found.

#

Is blocked level up '-'

scenic crest
fringe flame
#

So, i will rempve...

#

remove*

scenic crest
#

you don't neccessarily need to remove it

#

just make a per guild toggle

#

that's off by default

#

so if guilds wanna use it, they can simply enable it for their guild

fringe flame
#

ok

#

a question... the bot can be desmuted?

scenic crest
#

once it's fixed yes

fringe flame
#

so i will fix it

shrewd field
#

hello

#

i have this error

#

in a richembed

keen anvil
#

guilds

shrewd field
#

so

keen anvil
#

not guild

fringe flame
#

@shrewd field is: client.users.size

tawny lava
#

guilds, not guild

keen anvil
#

client.guilds.size

scenic crest
#

the error message is there to help you

#

undefined most likely means it doesn't exist

shrewd field
#

ok

tawny lava
#

probably didn't even read it

scenic crest
#

so that a) you typed it wrong, b) your code logic is rip

shrewd field
#

what is client.users.size used for

scenic crest
#

Think about it

tawny lava
#

guess

shrewd field
#

typed it wrong

scenic crest
#

users is a collection of all users

shrewd field
#

users in a guild

scenic crest
#

so then what could size do?

#

no

shrewd field
#

users of the bot

scenic crest
#

"client"

#

yep

shrewd field
#

ok

scenic crest
#

.size is the amount of them

shrewd field
#

ok thanks

fringe flame
#

I solve it.

#

solved*

#

now level up is off in this guild

scenic crest
#

can you mention the bot for me?

fringe flame
#

@stuck fjord

scenic crest
#

πŸ‘

fringe flame
#

if don't work, i will solve that of other way

#

but i think is working

#

yes

#

no working here

#

and the command too

#

100% fixed πŸ˜ƒ

scenic crest
#

πŸ˜ƒ

shrewd field
#

guys what do i do i have this

#

plz help

#

idk where to make it

#

and how

neon pasture
#

Library?

scenic crest
#

discord.js

neon pasture
#

Never saw that before.

earnest phoenix
#

@shrewd field multiple same events?

shrewd field
#

yes

#

think so

earnest phoenix
#

remove that

karmic parcel
#

it means you are creating a shitload of listeners

scenic crest
#

"how"

shrewd field
#

no

tawny lava
#

I never really understood why people do that Thonk

umbral pelican
#

probably has on message for every command GWfroggyLUL

inner jewel
#
Oct 12 17:23:31 scw-bafacf java[9171]: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
Oct 12 17:23:31 scw-bafacf java[9171]: SLF4J: Defaulting to no-operation (NOP) logger implementation
Oct 12 17:23:31 scw-bafacf java[9171]: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.```~~hey how do i fix this?~~
#

:^)

shrewd field
#

ihave 3

scenic crest
#

easy

tawny lava
#

1 is enough

earnest phoenix
#

@shrewd field jesus
1 is enough

scenic crest
#

I'm gonna presume you're not serious

#

so

shrewd field
#

for ready

scenic crest
#

fix it yourself natan

shrewd field
#

and guild add

#

so u cant help

#

ya

inner jewel
#

System.setOut(new DevNullPrintStream()) ?

#

:^)

scenic crest
#

why do you have a listener in guild add

uncut slate
#

@scenic crest this guy has had multiple messageEvent listeners on his bot, as in one for every single fucking command

tawny lava
#

hmm

inner jewel
#

lul

scenic crest
#

yeah I know