#development

1 messages ยท Page 578 of 1

upbeat solstice
#

No

bright spear
#

it says u have an indent where u shouldnt

upbeat solstice
#

Here, I'll send the codes.

sick cloud
#

in python indentation is like, key

upbeat solstice
#

That's what I coded.

hybrid pecan
#

it looks like you are missing a colon

upbeat solstice
#

Oh I am?

dusky steeple
#

and you might want to get a new bot token now also

upbeat solstice
#

Alright

#

But where is the missing colon?

dusky steeple
#

don't ever post your token's anywhere

upbeat solstice
#

Ok

hybrid pecan
#

when you are defining your mute command there isn't one at the end

upbeat solstice
#

Oh

#

Okay thanks.

hybrid pecan
#

np

upbeat solstice
#

It showed an error again.

#

-w-

#

Is there any other ways to fix it ;-;

earnest phoenix
#

anyone how to downloads packets

#

what packets do i need to download t coad in python

coral hedge
#

your mute command doesn't have a colon

upbeat solstice
#

Where

#

.w.

coral hedge
earnest phoenix
#

can u guys help me

upbeat solstice
#

Oh-

coral hedge
#

I mean, this is for bot development shouty.

earnest phoenix
#

moderator told me to ask in here

upbeat solstice
#

It still said it was an error

#

.-.

#

My coder is Pydroid 3

#

;-;

coral hedge
#

Oh, you appear to have closed off your mute function too early. Your args aren't properly in it

upbeat solstice
#

Oh

#

I never saw that.

#

.-.

#

There.

#

Let's see if an error pops up.

amber fractal
#

Wait

upbeat solstice
#

Yes?

amber fractal
#

coding on mobile Thonk

upbeat solstice
#

Yeah, I found an app that works good with ir

#

It*

amber fractal
#

Clearly.

upbeat solstice
#

Oof

#

An error

#

Oh-

#

The same thing popped up-

#

I'm confused now.

#

Can you circle the error?

#

TwT

coral hedge
upbeat solstice
#

I did fix it though.

coral hedge
#

Can you show the mute function?

upbeat solstice
coral hedge
#

how did you fix it

#

it looks basically the same

upbeat solstice
#

.

#

Oh

#

;-;

#

But wait

#

I removed the space between ):role

coral hedge
#

That wasn't that problem

upbeat solstice
#

Oh

coral hedge
#

the problem was you closed off the mute function too early.

upbeat solstice
#

It wasn't?

#

Oh

#

Wdym?

coral hedge
#
def test (a, b, c, d, e) :
    return

def test (a, b): c d e) :
    return

The second code snippet will not run.

#

The arguments c, d, and e are not included inside test

upbeat solstice
#

Oh

#

OH

#

I think I get it now

#

Where to close It?

coral hedge
#

at the end of your arguments.

upbeat solstice
#

Ok.

#

Can you retype what im supposed to type There?

#

UwU

coral hedge
#

You're missing a comma in your arguments list

upbeat solstice
#

Where?

coral hedge
#

your target and role arg

upbeat solstice
#

Oh

coral hedge
#

Also, while I don't specifically code in python, is that colon supposed to be there between target and discord.Member?...

upbeat solstice
#

Yes

coral hedge
#

Alright

upbeat solstice
#

I thought i put the comma at my target and role arg..

#

Yes, I'm pretty sure I put it there.

#

I put a comma there

coral hedge
#

I'm not talking about await bot.add_roles(target, role)

upbeat solstice
#

Oh

coral hedge
#

I'm talking about your function declaration line.

#

your async def mute(...)

upbeat solstice
#

Ohh

#

But where do i put it there-

hybrid pecan
#

between the target and the role argument

upbeat solstice
#

I'm not an advanced coder so what's that-

#

Don't judge me -w-

amber fractal
#

Everyone starts somewhere

#

Mobile isnt the best place tho.

hybrid pecan
#

you have target:discord.Member and then role=discord.utils.get()

#

you need to put a comma after you define what target is

upbeat solstice
#

Ok

hybrid pecan
#

so after target:discord.Member put a comma

upbeat solstice
#

Alright

#

Now there's an error with my await bot.add_roles(target,role)

#

It says it's here ------------------------^

fleet horizon
#

Can you send the error message

upbeat solstice
#

Ok

coral hedge
#

message.author is a User, users do not have permissions. message.member is a GuildMember, guild members do. Check if message.guild.ownerID === message.author.id

amber fractal
fleet horizon
#

@upbeat solstice I think the indentation is wrong

amber fractal
#

Or just give him the code

obtuse wind
#

thx

amber fractal
#

That works

upbeat solstice
#

Oh

#

How will I fix It?

coral hedge
#

I mean, it's not exactly the code.

amber fractal
#

you did you literally told him message.guild.ownerID === message.author.id

#

he already had the if

coral hedge
#

That implies he already knows how to use ifs and understands that that if takes a condition. Telling someone to literally goto the docs for a property isn't that helpful.

amber fractal
#

He literally sent the if?

fleet horizon
#

@upbeat solstice Add spaces before the await until it is as far away from the line as the line above

upbeat solstice
#

Oh ok

amber fractal
#

And how is telling someone to go to the docs not helpful?

upbeat solstice
#

It's still the same error

#

TwT

obtuse wind
#

Please stop saying i'm a "he", thanks

fleet horizon
#

@upbeat solstice Can you send a screenshot of the code again

upbeat solstice
#

Ok

coral hedge
#

My apologises,

I just gave the person the condition to use, I see what you mean now. Sorry.

#

My interpretation of spoon feeding was if you literally send the code ready for them to just copy and paste and it'd run.

fleet horizon
frail terrace
#

anyone here use lavalink?

upbeat solstice
#

TwT

amber fractal
#

It doesnt really matter, just giving them code makes them think they'll get it every time they come here and ask, when the docs can give you most the answers

coral hedge
#

Alright, thanks! I'll be sure to do that in the future.

upbeat solstice
#

It still shows an error

#

And the colon is a error

#

;-;

coral hedge
#

You're missing a )

#

at the end of your function definition

fleet horizon
#

^

upbeat solstice
#

;-;

#

Oh

#

Ok

fleet horizon
#

You still need the colon btw

amber fractal
#

This is why mobile isnt the best place tbh

split hazel
#

I use this to fetch a specific members messages.

.then(messages => {
const msgs = messages.filter(m => m.author.id === '374695375287746581')
//my id
msgs.bulkDelete(4)
})```
There's no errors, just the messages don't bulk delete.
any ideas?
amber fractal
#

bulkDelete is for a text channel

#

You'd have to loop the messages and deleted them individually

#

delete*

upbeat solstice
#

Can you rewrite what im supposed to write actually

#

It would be easier for me to understand-

coral hedge
amber fractal
#

^ this is why I should read the docs

#

I didnt know that was possible and now after reading it I know much more

sick cloud
amber fractal
fleet horizon
#

@upbeat solstice You literally have to add a bracket at the end of the line and then a colon after.

amber fractal
#

addresses*

sick cloud
#

ok

fleet horizon
#

Bracket not colon

upbeat solstice
#

Mk-

amber fractal
upbeat solstice
#

TwT

amber fractal
#

@sick cloud I believe the error is that it's just outdated

#

It's last publish was 3 years ago

#

its*

sick cloud
#

wdym

amber fractal
#

Player's last publish

sick cloud
#

then suggest something else

#

i dont have any other working ones

amber fractal
sick cloud
#

yes

upbeat solstice
fleet horizon
#
async def mute(ctx, target: discord.Member, role=discord.util.get(ctx, message.server.roles, name='Muted'):
    await bot.add_roles(target, role)```
hybrid pecan
#

lol you missed a parenthesis too

fleet horizon
#

F

#
async def mute(ctx, target: discord.Member, role=discord.util.get(ctx, message.server.roles, name='Muted')):
    await bot.add_roles(target, role)```
sick cloud
#
    throw err;
    ^

TypeError [ERR_INVALID_ARG_VALUE]: The argument 'path' must be a string or Uint8Array without null bytes. Received <Buffer 49 44 33 04 00 00 00 00 01 00 54 58 58 58 00 00 00 12 00 00 03 6d 61 6a 6f 72 5f 62 72 61 6e 64 00 6d 70 34 32 00 54 58 ...```
ok
upbeat solstice
#

Oh mk

sick cloud
#

@amber fractal how do i rebuild gyp

#

i still get these errors

#

even on new modules

#
npm ERR! errno 1
npm ERR! speaker@0.4.1 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the speaker@0.4.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\ThatTonybo\AppData\Roaming\npm-cache\_logs\2019-02-22T01_43_00_768Z-debug.log

C:\Users\ThatTonybo\Desktop\julia>```
upbeat solstice
#

Hm

#

I still get the errors-

amber fractal
#

Do you have the latest build of gyp?

sick cloud
#

how do i check

upbeat solstice
#

The ^ shows the error

#

TwT

fleet horizon
#

One more try: Can you copy-paste the code here

amber fractal
#

npm list node-gyp @sick cloud it may take a sec tho

sick cloud
#
julia@1.0.0 C:\Users\ThatTonybo\Desktop\julia
`-- (empty)


C:\Users\ThatTonybo\Desktop\julia>

@amber fractal

amber fractal
#

Try npm list -g node-gyp

upbeat solstice
#

Ok-

amber fractal
#

not you

#

wait

#

nvm

sick cloud
#

this ones taking longer lol

upbeat solstice
#

async def mute(ctx, target: discord.Member, role=discord.util.get(ctx, message.server.roles, name='Muted')): await bot.add_roles(target, role)

amber fractal
#

Yeah, expected

sick cloud
#

ok now it wont even finish

#

@amber fractal here

C:\Users\ThatTonybo\AppData\Roaming\npm
`-- node-gyp@3.8.0


C:\Users\ThatTonybo\Desktop\julia>```
amber fractal
#

Yeah, that is the latest

sick cloud
#

ok

#

so whats wrong

fleet horizon
#

@upbeat solstice Do you have any spaces before the async

amber fractal
#

Well, not sure, gonna be honest, I dont use gyp so thats the first problem

upbeat solstice
#

Hmm

#

No

fleet horizon
#

Then I don't know why there would be an indentationerror

sick cloud
#

ok

tacit frigate
#

.

slender thistle
#

@upbeat solstice first of all

#

Your command parameters are nuts

#

Don't add role there, instead make it a variable

still rune
#

help etaddrinfo ENOTFOUND spotify-auth.doxylamin.pw spotify-auth.doxylamin.pw:443

keen drift
#

Read the error

earnest phoenix
#

xd

earnest phoenix
#

hi

#

when i am going to start my bot its gives this error

earnest phoenix
#

so on your json file @earnest phoenix

#

you need set {}

mossy vine
#

Please tell me thats not a real key

finite kernel
#

lul

earnest phoenix
#

LOL

#

This place might be more about the Discord API, but does anyone here know how to use the Google API, or maybe know a better discord server to ask this in?

finite kernel
#

from the looks of it we can use the API for him bloblul

earnest phoenix
#

@earnest phoenix what's ur question?

earnest phoenix
#

When I add my bot to your server, it has 13,000 users, but why is your server in 33,000 users?
Total Number of Users
13730
Your server is not 33,000 people
How can I fix it?

amber fractal
#

Caching is the issue

#

Get the member count from the REST api

#

Idk any other way, or if that even works

earnest phoenix
#

How do I get it from REST api?

#

@amber fractal

amber fractal
#

Ake http requests to the discord api

#

Those are the docs

earnest phoenix
#

guild members can be uncached @earnest phoenix

amber fractal
#

Thats what he doesnt want...

#

If you uncache them they wont be counted

earnest phoenix
#

๐Ÿค”

#

I said they can be.. that's why?

amber fractal
#

Not all are cached in the first place...

earnest phoenix
#

Can someone make a bot for my discord server?

sick cloud
earnest phoenix
#

No

#

I don't have time to learn it.

sick cloud
#

why not

#

you can literally learn to make a bot in a day if you bother to do it right

earnest phoenix
#

I just need a simple bot.

sick cloud
#

then make it yourself

#

it isn't that hard

earnest phoenix
#

I CAN'T

sick cloud
#

not with that attitude

earnest phoenix
#

The link u sent does not work.

marble needle
sick cloud
#

then head to google, which you hopefully know the url to, and search yourself

earnest phoenix
#

Thanks for nothing <3

sick cloud
#

happy to help

slender thistle
#

People could make a bot for you if you were willing to pay

earnest phoenix
#

I am ๐Ÿคฆ

slender thistle
#

Else, sorry fam, you gotta learn to do it with your own hands

marble needle
#

buy the bot creator off steam, only 10 bucks trollface

slender thistle
#

PLease

sick cloud
slender thistle
#

DBM is literally bad

earnest phoenix
#

?

sick cloud
#

what

marble needle
#

watching this hurts, real hard

#

may aswell use a public bot that does the job, don't have to learn a thing or pay someone that way mmLol

slender thistle
#

Private bots make your server seem really cool and professional... kinda mmLol

earnest phoenix
#

Someone?? please...!

marble needle
#

finds you everything you need

earnest phoenix
#

.....

slender thistle
#

+1 lazy hooman goes into the list :^)

amber fractal
#

๐Ÿ‘Œ this was a good conversation

pearl stratus
#

Is there any Bot that deletes messages after a specific amount of time?

#

And how can I make that? With a custom command?

dusky steeple
#

Probably better asking stuff like that in their support server.

pearl stratus
#

Ok thanks

tribal oxide
#

hi

earnest phoenix
#

@earnest phoenix my question is how do i use the google api?

bright spear
#

@earnest phoenix Google doesn't have a search API, you'll need to scrape it

sick vine
#

I can't tell if it's sheer laziness or brilliance to make commands to control my bot's database with like, SQLite code.

amber fractal
keen drift
#

What you tryna do @amber fractal

#

I also don't see a version path anywhere

amber fractal
#

You dont need the version

keen drift
#

yeah I guess it defaults to current

#

Do a curl and see if you can reach it

amber fractal
#

I have no idea how to curl lmao

keen drift
#

curl url

amber fractal
#

it said no url specified

#

Now it worked

#

I got the unauthorized, expected

#

so idk why the code isnt working

wide ruin
#

i have a channel (bot.on(createChannel) ) in d.js

#

how can i get the guild and channel names?

mossy vine
#

read the docs

wide ruin
#

i did

mossy vine
#

read em again, it tells you

#

also there is no thing such as createChannel

wide ruin
#

thats what i meant

#

it says:
client, created at, createdtimestamp, deleted, id and type

#

how do i get the name from that?

mossy vine
#

mate

wide ruin
#

yes?

mossy vine
wide ruin
#

so just channel or...

#

it doesnt say the name

mossy vine
#
<Client>.on('channelCreate', channel => { //you can put anything instead of channel, it will be a Channel object
    console.log(channel.id)
}```
wide ruin
#

ok

#

and use bot.channels.get

mossy vine
#

yeah

#

and also bot.on

wide ruin
#

so bot.channels.get(channel.id)

mossy vine
#

yeah i think so

#

wait no

#

thats unneeded

#

you already got the Channel object in that event listener

wide ruin
mossy vine
#

yeah

wide ruin
#

ok

amber fractal
#

channel object

#

I've done requests before, so I don't know the issue

wide ruin
#

@mossy vine what about on guildmemberadd?

#

it just has user

mossy vine
#

yep

#

wait what

#

fam just read the docs

wide ruin
#

so how can i get the guild from user?

amber fractal
#

It has a member

#

not a user

vernal rivet
#

You dont

mossy vine
#

yeah

#

its member

#

so

#

member.guild

amber fractal
#

Read

#

The docs

vernal rivet
#

You have to pass guild in the parameters

mossy vine
#

just read the goddamn docs

#

@vernal rivet no?

#

tf you on

wide ruin
#

sorry

amber fractal
vernal rivet
#

Why not be nice to people

wide ruin
amber fractal
#

if user is the guild member

mossy vine
#

you can call it whatever you want

amber fractal
#

It's just a <GuildMember>.guild.name

#

<GuildMember> is the name of the guild member object

vernal rivet
#

Your talking about the guildmemberadd method -_-, yes, if you passed user in the async, then user is going to be guildmembet

amber fractal
#

Why did you call it an async?

fierce thorn
#

await

amber fractal
#

It's not just called an async tho

fierce thorn
#

I am blind

amber fractal
#

Nvm

#

Bot just didnt need to be full uppercase

#

wait lol

#

it only got 1 member

#

Wait Im a moron

#

I should read the docs lol

vernal rivet
#

You can't use await out side async, can you?

earnest phoenix
#

Nope

#

Gotta declare asynchrony

#

Fam

dreamy wraith
#

Is there a way to have images inside a field of a embed message?

amber fractal
#

Not in the field, but embeds can have images

dreamy wraith
#

Thanks ^

floral geyser
#

I do

async def (command) ():
       await bot.say('hello')
#

Is this the right way

earnest phoenix
#

I don't understand step 8 and 9? :(

mossy vine
#

???

#

okay this tutorial is ass

#

there are way better ones out there

#

but first learn an actual programming language

earnest phoenix
#

don't use that tutorial

#

outdated and it promotes very very bad practices

floral geyser
#

What tutorial would be sugested then @earnest phoenix

earnest phoenix
#

docs

#

and your own programming language knowledge

mossy vine
#

learning an actual language instead of copypasting

slender thistle
#

@floral geyser (command) () -> command()

#

And if you are asking that,

#

I will recommend learning Python beforehand

uneven depot
slender thistle
#

That's not even d.py question

floral geyser
#

@slender thistle i i know i just typed (command) to Note this is a custom command

slender thistle
#

You could also name the function something else and use name kwarg in decorator instead

floral geyser
#

So u mean change bot.say?

slender thistle
#

Decorator - @commands.command() or @bot.command()

solemn orchid
#

Does anyone know a server bot that will automatically reply if a user pms the bot?

quartz kindle
#

reply with what?

solemn orchid
#

Reply with a custom message that I can edit

#

For example user pms bot /password and the bot will pm back Password = 'Example'

quartz kindle
#

i doubt there is a bot like that, since pms are global and available regardless of servers. to be able to customize it on a per server basis is very specific, you'd need to make one yourself

floral geyser
#

If its the Same everytile u could use a lot of custom bots

quartz kindle
#

99% of bots out there treat pms/dms independently from servers/guilds

floral geyser
#

I know a bot that can do that application bot i know its not ment for that but if someone types

%apply

They get Dm with a custom message normaly this is for application but dont see why it wouldnt work
@solemn orchid

solemn orchid
#

Cool thanks guys I'll look around

west mango
#
[Ender] Lavalink client ready to use.
Error: Unexpected server response: 200
    at ClientRequest.req.on (C:\Users\Administrator\Desktop\Ender\Ender\node_modules\discord.js-lavalink\node_modules\ws\lib\websocket.js:561:5)
    at ClientRequest.emit (events.js:189:13)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:556:21)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:109:17)
    at Socket.socketOnData (_http_client.js:442:20)
    at Socket.emit (events.js:189:13)
    at addChunk (_stream_readable.js:284:12)
    at readableAddChunk (_stream_readable.js:265:11)
    at Socket.Readable.push (_stream_readable.js:220:10)
    at TCP.onStreamRead (internal/stream_base_commons.js:94:17)```
Also getting spammed this every 5 seconds
upbeat solstice
#

Uh

#

My bot keeps becoming offline

#

How do i fix it

earnest phoenix
#

get a proper host

upbeat solstice
#

Mk

mossy vine
#

???

earnest phoenix
#

im in general vc

#

what packets do i need to code a bot in python

slender thistle
#

Install d.py like this:
pip install -U git+https://github.com/Rapptz/discord.py@rewrite#egg=discord.py[voice]

floral geyser
#

@upbeat solstice if ur program close your bot Will be offline make sure your pc is on

topaz fjord
#

or get a permanent host

west mango
#

Cam someome please help

earnest phoenix
#

dont ask to ask, just ask your question

west mango
#

Why am I getting this error please help
https://hastebin.com/azemuqagap.js
I'm using Lavalink for Discord.JS

Error: Unexpected server response: 200
    at ClientRequest.req.on (C:\Users\Administrator\Desktop\Ender\Ender\node_modules\discord.js-lavalink\node_modules\ws\lib\websocket.js:561:5)
    at ClientRequest.emit (events.js:189:13)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:556:21)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:109:17)
    at Socket.socketOnData (_http_client.js:442:20)
    at Socket.emit (events.js:189:13)
    at addChunk (_stream_readable.js:284:12)
    at readableAddChunk (_stream_readable.js:265:11)
    at Socket.Readable.push (_stream_readable.js:220:10)
    at TCP.onStreamRead (internal/stream_base_commons.js:94:17)```

Also getting spammed this every 5 seconds
earnest phoenix
#

that hastebin really doesnt help at all

west mango
#

That's my console

#

It loads the track in the request

#

In lavalink

#

But when it trys to play

#

It gives that error below the console output

#

And spams unexpected server response

#

Every 5 or so seconds

#

@earnest phoenix

earnest phoenix
#

how do u use gethub

spring ember
#

@earnest phoenix you mean how to use git?

#

Just Google it

#

@west mango can you link the client package

west mango
#

wdym

#

client package?

#

it's discord.js-lavalink

earnest phoenix
#

i code in python

spring ember
#

@earnest phoenix git is not related to any programming language, it is a version control system

earnest phoenix
#

ok

spring ember
#

@west mango something is off and I am not sure why where is the error from

west mango
#

:/

earnest phoenix
#

how to download

west mango
#

you want my code @spring ember

earnest phoenix
#

anyone trying to get in a vc with me

spring ember
#

@west mango your code has nothing to do with the issue it's probably an outdated version of lavalink

earnest phoenix
#

to help

west mango
#

Okay how do I update it

spring ember
#

@west mango download the latest jar

west mango
#

from where?

west mango
#

we're on latest, same version you sent

#

@spring ember

spring ember
#

I honestly don't know

#

I recommend asking in the JDA server

#

There is a special channel for lavalink

#

Also add an issue on GitHub

west mango
#

it's not really related to JDA tho right?

#

It's Discord.js

#

not JDA

neat falcon
#

lavalink is jda

#

discord.js people won't be able to help with the lavalink cause java gang

#

unless they know the java gang

spring ember
#

@neat falcon lavalink uses jda audio

neat falcon
#

close enough

spring ember
#

Kinda

west mango
#

Okay no luck

#

@spring ember what can I do now? :/

#

Can't open a bloody issue because of this

#

I TRIED IN THE DISCORD

#

and it's dead af

earnest phoenix
#

a!viewtier

#

a!ping

amber fractal
#

Cease

upbeat solstice
#

What's a good pc or laptop coder for discord bots? Thonk

keen drift
#

an ide?

earnest phoenix
#

lol

#

ikr

#

just use VSC

#

or atom

#

but wouldn't use atom, it sucks

#

takes forever to open

hushed berry
#

idk if thats what they were asking

fleet horizon
#

I think they mean literal laptop/PC in which case it doesn't really matter

#

Coding isn't really very intensive on a machine

#

Some second hand thing will probably do

keen drift
#

Coder HappyThonk

restive halo
#

You know that message style with the coloured line on the left? How do people do that?

#

Dunno what its called else I would have looked it up

west raptor
#

embed?

#

assuming you use d.js ```js
const embed = new require('discord.js').RichEmbed();

//stuff with embed here```

restive halo
#

And then you can do like message.channel.send(embed) right?

west raptor
#

yes

#
restive halo
#

Thanks a bunch :) gonna add something with it when I figure this dumbass bug out

west raptor
#

np

#

oh also

#

if you are on master it would be MessageEmbed instead of RichEmbed

young jungle
bright spear
#

@young jungle whats wrong with the bottom one?

young jungle
#

the message was sent on the 23rd

bright spear
#

its the 22nd here

#

timezones exist

young jungle
#

yes

bright spear
young jungle
#

?

bright spear
#

timezones

#

do you not know what timezones are

young jungle
#

i does

#

but

#

i'm in NZ

bright spear
#

well the bot probably isn't

young jungle
#

O_o what about the top one?

#

it's the same bot

#

i have confuse

#

there're no timezones with 5 day offsets

bright spear
#

were they both from the same code?

young jungle
#

they're in different files but the protocol is the same

#
ct = time.strftime('%c')
#

it's basically 2 bots logged in with the same token on the same server but one exists solely to ping the the other to stop it timing out

#

the non-pinging one has actual functions in case you're wondering too

amber fractal
#

Can I not fetch the webhook then send with it?

#

does it need to be in a .then() or something? I sent test messages with it before

keen drift
#

If it's a promise, you need to wait for fulfillment

amber fractal
#

It's in a reaction collector, and I dont want to fetch the webhook every reaction

keen drift
#

Then just store it somewhere

amber fractal
#

it is

#

it's stored as webhook

keen drift
#

Can you show code

amber fractal
keen drift
#

webhook is a promise

#

You need to wait for it to fulfill

#

await it

#

Promise<Webhook>

amber fractal
#

Well what do you know that worked

#

Also, does the collector give a member/user object

keen drift
#

No idea, I never used the collector

amber fractal
#

How did you make reaction role then

keen drift
#

Low level events

amber fractal
#

Extreme thinking at the moment

#

Another thing I need to google

#

All I'm getting is DOM level Thonk

#

Oh wait

#

Wait Fishy did you need to use the reaction add event? I'm so confused

undone hearth
#

why does this happen when my code says oldRole.permissions but it puts out the number combination for the permissions, i looked on the docs and i cant seem to find anything, im using discord.js, can anyone help me?

#

i want to list the permission names

inner jewel
#

because discord permissions are stored as numbers

amber fractal
#

The docs say its a number btw

undone hearth
#

oh lol

#

my bad

amber fractal
undone hearth
#

is there any way i can list the permissions in word from though

amber fractal
#

There is a conversion

#

idk how to do it either tho

undone hearth
#

ok

amber fractal
#

bit math or something iirc, may be wrong tho

undone hearth
#

ok

keen drift
#

@amber fractal The reaction event from gateway, the one in djs have to go thru cache

amber fractal
#

Dont know what that means, but alright mmLol

earnest phoenix
#

how would i check if someone from a guild has voted for my bot

#

?

bright spear
rocky cliff
#

Hm

chrome olive
#

i'm using jimp

quartz kindle
#

jimp is slow af

floral geyser
#

@chrome olive hha try photoshop

mossy vine
#

photoshop is manual

#

which doesnt work for a bot

floral geyser
#

Oh i tought u could change the whole png

earnest phoenix
#

you can

#

but it's a program, not an api

lethal sun
#

Can someone help me with this? I am trying to select C in a table guild.

db.all("SELECT id FROM guild WHERE id = C", function (err, rows) {```
I am getting this error:

{ [Error: SQLITE_ERROR: no such column: C] errno: 1, code: 'SQLITE_ERROR' }

earnest phoenix
#

enclose it in quotes

#

the C, i mean

#

@chrome olive use canvas

west raptor
#

hello yes quick question is there a lavalink client for rust that's like not 2 years old

lethal sun
#

still the same error @earnest phoenix

brisk summit
#

hola

#

como estan

earnest phoenix
#

show your code

lethal sun
#

"SELECT id FROM guild WHERE id = " + "C" @earnest phoenix

earnest phoenix
#

i meant in the sql command itself

slender thistle
#

Couldn't you use apostrophes instead

earnest phoenix
#

that's the same as SELECT id FROM guild WHERE id = C

#

you're just combining two strings together in the code, the sql command remains the same

lethal sun
#

so "SELECT id FROM guild WHERE id = ", "C"

chrome olive
#

@earnest phoenix i can't use canvas

#

bc when i install it it give me a error

earnest phoenix
#

Yeah I had that

#

I fixed it

slender thistle
#

@lethal sun 'C' inside the string

lethal sun
#

this? "SELECT id FROM guild WHERE id = C" @slender thistle

slender thistle
#

Yes, except put the C inside apostrophes

lethal sun
#

thanks a lot! @slender thistle

slender thistle
floral geyser
#

What was the fficial download of Python again and what do i use to type my code on pc? Cuz i forgot

#

I downloaden it but gve errors

slender thistle
#

Downloading Python...

neon plume
#

hmm

slender thistle
#

Where did you download it

neon plume
#

i also use python

#

3.6.5

slender thistle
#

3.6+ ok_hand

#

f-strings are lit

neon plume
#

3.7 didnt worked for me

upbeat solstice
#

How do I randomize what my bot replies with in a command?

slender thistle
#

What lib?

#

Or programmimg language

upbeat solstice
#

I use python

floral geyser
#

I downloaden on the Python official thing

#

Wich one do i get if i want to create a discord bot with it

slender thistle
floral geyser
#

Oh

#

Is that the one j have to download

slender thistle
#

@upbeat solstice module random has a method choice which takes an iterable (iirc)

#

Not really, one sec

upbeat solstice
#

Oh

#

Mk

floral geyser
#

I asked this before but i still don't get it

slender thistle
#

pip install -U git+https://github.com/Rapptz/discord.py@rewrite#egg=discord.py[voice] but make sure you have Git installed

floral geyser
#

The pip install isn't that in prompt

slender thistle
#

Yep

floral geyser
#

And then that link?

slender thistle
#

Wait, you need Python?

#

Or did you already install it?

floral geyser
#

Well i wnt Python on my pc and i wanna be able to write my code

#

Dont have it

slender thistle
#

Google for Python 3.6

floral geyser
#

Is that the one?

#

So do i install pip when i have Python?

#

Wich Python download i do executable?

slender thistle
#

should be this

#

And no, pip should be installed with Python

floral geyser
#

So i dont have to type pip install in prompt?

slender thistle
#

You do

#

You don't install pip by doing pip install

floral geyser
#

So i download on website then i go to pip in prompt ok? Then where can i type my code?

slender thistle
#

In .py files?

#

I strongly recommend learning Python though PepePray

floral geyser
#

So like i type my lines and then executie them

#

I know a little bit for my code itself i am just not good with it im sorry

slender thistle
#

A little bit? Well, not to be rude but good luck creating a Discord bot in an intermediate+ level library

floral geyser
#

No i wont i have my code to awnser to commands and to get him online all i need for now but if i wanna do serious stuff i need knowledge wich i am learning Python i am gonna try learn it as good as posible

slender thistle
#

๐Ÿ‘Œ

floral geyser
#

I just for now want my bot to awnser stuff then i wanna make him welcome People etcetc

slender thistle
#

But yeah, basically... Download Python, download discord.py, rtfd, code in files and then execute it through command prompt, learn Python etc

#

Welcoming people? I can't give you a ready code but the logic behind it

floral geyser
#

I dont wanna steal code i wanna make myself

marble needle
#

reading the docs uncovers a ton of logic hmm

floral geyser
#

But i dont like working with prompt

slender thistle
#

Barely what I notice from nowadays bot developers and myself cough
Either way, you don't need to work with the console too much

floral geyser
#

So basicaly i code in normal files

slender thistle
#

Yep

floral geyser
#

And i find those files in the Python downloaden map?

#

Or?

slender thistle
#

You just run the code in command prompt

#

What files? Thinkeyes

earnest phoenix
#

learn your language before working with it, its the golden rule

floral geyser
#

But where i type it? Not in prompt right?

marble needle
#

he should rather learn how to program before touching any language

slender thistle
#

Correct

#

You write code in the files you create

mossy vine
#

you write the code with a text/code editor in .py files, and execute it via cmd

floral geyser
#

Ok

slender thistle
#

Being sort of familiar with PCs will help you out a lot, as well

floral geyser
#

๐Ÿ˜ฅ

#

Do i open pip 3 for that?

earnest phoenix
#

not sort of, a lot

mossy vine
#

and the cmd will most likely become your best friend, you just need to learn how to use it. its actually quite simple once you understand and memorize a few commands

slender thistle
#

Open pip3 for what?

floral geyser
#

For the cod3

slender thistle
#

No?

floral geyser
#

I dont get where i write it i need to executie in CMD but where i actually write it

mossy vine
#

you write the code with a code/text editor

slender thistle
#

In your files

floral geyser
#

Like say Visual studio?

mossy vine
#

yeah

floral geyser
#

Oh that i have

slender thistle
#

P.S Sublime Text is lighter than your fucking VS eating hella lots of RAM

mossy vine
#

i personally reccommend visual studio code, just because its lightweight as fuck and you probably dont need a full ide like vs just for a discord bot

earnest phoenix
#

stop faceplanting into a new environment, take slow steps and learn the basics first

you ๐Ÿ‘ cannot ๐Ÿ‘ write ๐Ÿ‘ good ๐Ÿ‘ code ๐Ÿ‘ if ๐Ÿ‘ you ๐Ÿ‘ dont ๐Ÿ‘ know ๐Ÿ‘ the ๐Ÿ‘ language ๐Ÿ‘

marble needle
polar gazelle
#

Hellow

floral geyser
#

BUT CRY I HAVE MY CODE Created that i wanna use

#

Sory for caps woops

marble needle
#

how do you code without knowing how to properly set up an environment to run said code

mossy vine
#

^

marble needle
earnest phoenix
#

this

regal bear
#

^^

floral geyser
#

Because i write it on mobile okay

slender thistle
#

Open source bots ig

marble needle
#

LOL

slender thistle
#

Oh

mossy vine
floral geyser
#

Already saw that

#

Thats why i wanna code on pc i have my code but not know how to do on pc!

earnest phoenix
#

that still doesnt justify why you wrote working python without knowing how to install and run python

slender thistle
#

I don't really understand why people hate mobile coders

mossy vine
#

because coding on mobile is shit and limited as fuck

floral geyser
#

@earnest phoenix i typed it on mobile that dont use this complicate stuff

slender thistle
#

Limited?

#

In what way though?

floral geyser
#

I know thats why i wanna do on pc but dont know how it works

earnest phoenix
#

your mobile phone wasnt designed to run and debug thousands of lines of code and your phone runs an entirely different OS and architechture

mossy vine
#

usually limited to 1 file, not being able to install packages/modules/whatevertheyrecalledinpythonk, usually no autocompletion, basically missing everything that makes an actual code editor good

slender thistle
#

I don't mean running the code in this case but rather coding

marble needle
#

highly doubt people who code on mobile are working on projects with "thousands of lines" lillulmoa

earnest phoenix
#

unreadability

slender thistle
#

Getting used to it = Readability

earnest phoenix
#

@floral geyser i told you, take slow steps and learn the basics first

#

no it isnt

floral geyser
#

Ok i dont know if u guys get what i mean i mean this:
I have the code i wanna type i created the codewith the commands and online thing etc etc
The reason i ask is i wanna re type it on pc but never coded on pc!

marble needle
#

yall when are we gonna start writing code on papyrus

slender thistle
#

Idk, I may just be that weird that I am good with coding on phone dogeKek

earnest phoenix
#

you can get used to reading sentences with one letter per line but it will never be humanly readable

#

stop making invalid points

floral geyser
#

Me?

slender thistle
#

It's not actually one character per line but eh, you do you ig

#

I was just wondering why people don't like those who code on phones, that's it

earnest phoenix
#

it was an example that contradicts your point

slender thistle
#

Code on nano at this point kek

floral geyser
#

I just made my code on Phone but i wanna make it on pc but dont know how to code on pc idfc about the language knowledge i wanna just type over what i typed on mobile

earnest phoenix
#

at this point you don't even know what you're talking about

floral geyser
#

I tought this chanel was here also to ask for help if someone doesnt know something

earnest phoenix
#

yes, but we will not teach you an entire new language and environment

slender thistle
#

Coding on phone is the same as on PC but just in different ways of typing it out

mossy vine
#

???

earnest phoenix
#

wat

floral geyser
#

@earnest phoenix could u stop u keep saying i dont know the stuff ok i dont know all of Python at all but i have MY CODE and i wanna make it on PC LOOK AT WHAT K SAY: i have the code i just dont know how to bring it on PC

earnest phoenix
#

"sugar and salt are the same but just different in taste"

floral geyser
#

I dont want j to Teach me the language

earnest phoenix
#

a language is what communicates with your pc and converts your code into binary telling the pc what to do

#

you cannot not have a language

floral geyser
#

I can do that myself i just wanna know if i can type the code i Already have on pc

earnest phoenix
#

you're making no sense

#

step back

floral geyser
#

@earnest phoenix I HAVE MY LANGUAGE

earnest phoenix
#

learn basics

#

then come back

#

stop pinging me im right here

floral geyser
#

Wtf listen i have the code i just wanna do it on pc

slender thistle
#

Send the files on PC? Thinkxel

pale marsh
#

@floral geyser It depends on the app you're using, and it's about how your phone communicates with your computer. I don't think anyone here is gonna help you moving files from your phone to your pc lol

floral geyser
#

Its not about the code

marble needle
#

This conversation is cursed

floral geyser
#

@slender thistle @pale marsh i dont mean moving files i mean how to start to type a code on pc idk that ok i just wanna know how to open the place where u type

earnest phoenix
#

an IDE

pale marsh
#

Notepad

earnest phoenix
#

no

pale marsh
#

:^)

slender thistle
#

In your case, it's Visual Studio

#

iirc

floral geyser
#

So is it good to use that?

pale marsh
#

It depends on the language

slender thistle
#

For coding, yeah

floral geyser
#

I use Python @pale marsh

pale marsh
#

Visual Studio for C#/.net languages

earnest phoenix
#

an IDE, a language, compiling a program all link themselves, you can't do one thing without the other, which is why i've been telling you for the past 20 minutes to take a step back and learn the basics

slender thistle
#

Though you could use Sublime Text for that

pale marsh
#

Get PyCharm or something

floral geyser
#

How do i then get the discord packs is that in CMD?

pale marsh
#

You can literally google that

mossy vine
#

we literally told you tho

slender thistle
#

The pip install thing I sent in the beginning

floral geyser
#

So i type pip install ok

pale marsh
#

Google "how to install python packages"

slender thistle
#

Not really

floral geyser
#

Then i have the discord thing and i can start type my lines?

#

Oh

slender thistle
#

I mean not literally pip install

floral geyser
#

So discord install

slender thistle
#

Neither

pale marsh
#

Again

#

Google what I said

floral geyser
#

@pale marsh human interaction ;)

slender thistle
#

Python package for d.py rewrite is a bit different, Kef

pale marsh
#

You'll find your answer there. We won't spoonfeed it

earnest phoenix
#

"doing research myself???? nahh you do it for me"

pale marsh
#

Ikr?

slender thistle
#

Today isn't a day of good attitude apparently

floral geyser
#

Well guys thanks shivaco for the help but il just find it out

slender thistle
#

/shrug

earnest phoenix
#

we told you everything you need, the problem is you and your lack of knowledge

slender thistle
#

Good luck anyway tracerSalutations

marble needle
#

losing_braincells.py hmm

floral geyser
#

If a human cant ask another human for help 1nd No i dont ask for code just for help how to get the program well then i Will ask google

#

@slender thistle thank you so much :)

slender thistle
#

๐Ÿ‘Œ

pale marsh
slender thistle
#

Kef

#

That's wrong one

#

Oh, dev version

pale marsh
#

Oof you right

#

No it's still wrong

slender thistle
#

Well, kinda

#

Wait wtf

#

None of the links point out to rewrite on rw branch

pale marsh
#

python3 -m pip install -U git+https://github.com/Rapptz/discord.py@rewrite

#

Yeah it's weird

slender thistle
#

Danny smh Kappa

floral geyser
#

I dont want lines of code

slender thistle
#

Your code is your business Think

pale marsh
#

Random

floral geyser
#

So i see the guy saying this is not the website ur looking for

#

Il login

pale marsh
#

Type this in command prompt: python3 -m pip install -U git+https://github.com/Rapptz/discord.py@rewrite

#

Or py instead of python3 idk how it is on windows

slender thistle
#

or just python

#

Many options tbh

floral geyser
#

So i go CMD and type

py - m pip install - u

#

But change pip for discord

slender thistle
#

And the website thing too

#

No

floral geyser
#

Oh

#

What wil the CMD thing do

slender thistle
#

Insert literally that in your command prompt

floral geyser
#

I already have python

earnest phoenix
#

Update your bot files

floral geyser
#

Oh i insert the website thing to

slender thistle
#

It will install discord.py, a library you will use to manage your Discord bot

floral geyser
#

Do i also do that in cmd

slender thistle
#

Do what?

earnest phoenix
#

You wanna use in web? @floral geyser

floral geyser
earnest phoenix
floral geyser
#

@earnest phoenix what u mean web?

mossy vine
#

@earnest phoenix criminal scum

earnest phoenix
#

Like glitch?

slender thistle
#

Sushi please

earnest phoenix
#

@mossy vine?

slender thistle
#

Don't make this any more wise

#

Ffs

#

Worse

earnest phoenix
#

๐Ÿ˜€

floral geyser
#

@slender thistle do i type

Install discord.py

In cmd

slender thistle
#

No

earnest phoenix
#

please stop doubling my brain cell loss

floral geyser
#

On Google?

slender thistle
#

You can like stop reading this chat

floral geyser
#

Wtf i dont get it

mossy vine
#

i already lost more brain cells reading this convo than in my whiole life

#

im out

slender thistle
#

That python -m etc thing @floral geyser

earnest phoenix
#

we told you, go back and learn the basics, we don't care that you don't care about the language, we won't teach you how to use a framework's CLI

slender thistle
#

I only explained what that does

earnest phoenix
#

that article covers knowledge you lack

pale marsh
#

Read both

earnest phoenix
#

inb4 skim reads then comes back with even more confusion

#

/s

#

to simplify, you cannot write a book in english if you don't know english

slender thistle
#

Sitting in the head for 30 mins explaining this thing

#

Not the best thing, I tell you

earnest phoenix
#

they won't get it because they don't want to learn

slender thistle
#

I have nothing to do and lose so whatevs thinkright

floral geyser
#

I typed the thing in CMD and it says collecting discord

#

I typed
py - m pip install discord - U

pale marsh
#

Smh no

slender thistle
#

Ehh ujj

floral geyser
#

It sais done

pale marsh
#

Enjoy it

floral geyser
#

Is it right?

slender thistle
#

I'm not sure what to say rn

pale marsh
#

Nothing

#

I literally copied and pasted the installation command in the chat

#

Idk what else to do lol

floral geyser
#

I dont get it what i do?

pale marsh
#

You did great

earnest phoenix
#

they're giving a shitty attitude to learning

#

no comment

floral geyser
#

@earnest phoenix but is it done right?

#

I dont get this anymore

mossy vine
#

you are literally disregarding everything we are saying

floral geyser
#

Hรฉ said i had to type that but my CMD Said to add a pip and i tought that was discord

#

Ok now i typed in
Python3 -m pip install -U git+https:// etcetc is tha right at least because ethzt is what u typed earlier @pale marsh @earnest phoenix

pale marsh
#

Yes

#

Now idk what that'll do to the already installed package from pypi

floral geyser
#

But it Said Python3 is not recognize as an internal or external command

slender thistle
#

@pale marsh overwrite

#

So things should be giod

#

Good

#

Maybe not

#

@floral geyser do pip3 install git+etc. or pip instead of pip3

floral geyser
#

So not the puthon-m thing

pale marsh
#

Yes

floral geyser
#

So do i write exat'ctly : git+https

slender thistle
#

Not exactly

floral geyser
#

Then what do i change do i change git

#

@pale marsh it keeps saying pip or pip3 is not a recognize able comand

slender thistle
#

Did you install Python

floral geyser
#

Via the official site yes

slender thistle
#

Did you add it to PATH

pale marsh
#

Do me a favor and in command prompt type python --version

floral geyser
#

How? Omg never told me this

pale marsh
#

Or py --version

#

And take a screenshot

floral geyser
#

Py isnt recognized

pale marsh
#

Part of learning a language is learning its environment, since you're so convinced you know python

#

Anyway off to eat. Good luck

floral geyser
#

I dont know Python and never Said i did i Said i knew the code i wanted tl type

#

Thanks

slender thistle
#

Enjoy your meal

floral geyser
#

Then how do i add it to path @slender thistle

slender thistle
#

Run the installer but choose Modify

#

And check the Add to PATH option

floral geyser
#

The online installeer?

#

Or the one in one of my maps

slender thistle
#

The one you downloaded

#

the one on your PC

floral geyser
#

The one called easy install

slender thistle
#

Yeah probably

#

I don't remember what it's called

floral geyser
#

When it opens a prompt opens with a message and close too fast to read

slender thistle
floral geyser
#

I added to path but doesnt work

#

I think imma give up

#

Oh NVM it works

#

If i type python

#

I see stuff

upbeat solstice
#

How do I add pictures / gifs in commands for my bot? I use python mobile version

amber fractal
#

What do you mean by python mobile version?

upbeat solstice
#

Pydroid 3

amber fractal
#

Oh, no idea what that is

upbeat solstice
#

It's basically python still

mossy vine
#

@amber fractal python "ide" for android

amber fractal
#

Ide on mobile Thonk

earnest phoenix
#

pictures where

#

as attachments or embeds

upbeat solstice
#

Wait

#

I mean like

#

You know how the Yui Bot has the hug command and stuff?

earnest phoenix
#

no

#

i dont even know yui bot

upbeat solstice
#

Well its when you say the command, an image / gif shows

amber fractal
#

Are you asking how to send attachments

earnest phoenix
#

screenshot or something?

upbeat solstice
#

NoO

earnest phoenix
#

i literally have no idea what you're talking about

upbeat solstice
#

What do you TYPE IN THE CODE to have an image / gif THAT SHOWS WHEN YOU SAY THE COMMAND

earnest phoenix
#

sTOP sHOUTING

upbeat solstice
amber fractal
#

Send as attachment...

earnest phoenix
#

do you want to send as an attachment

#

or have it show in an embed

upbeat solstice
#

hH

#

Attachment

earnest phoenix
#

which lib

upbeat solstice
#

What's a lib

mossy vine
#

hey here is a really great guide on how to code on mobile
https://cyber28.xyz/codeonmobile

upbeat solstice
#

uH