#development

1 messages ยท Page 375 of 1

earnest phoenix
#

this doesn't work

topaz fjord
#

cause you dont know how js works mmLol

earnest phoenix
#

pls help

#

no semi-colong

#

omg

hushed oyster
#

so @earnest phoenix

#

just follow the guide

earnest phoenix
#

depends

hushed oyster
#

click 9.5.0

earnest phoenix
#

get the server id?

hushed oyster
#

yes

topaz fjord
#

lmao, where to go

hushed oyster
#

if you're talking about d.py rewrite

topaz fjord
#

depends

#

just wait patiently for it to install

limpid basalt
#

so many bots with the same prefix

#

I'm changing my bots prefix

earnest phoenix
#

loll

#

who uses py

limpid basalt
#

not me

#

well

#

Oof

earnest phoenix
#

ikr

#

what happnend

limpid basalt
#

idk

#

Web Server is down like the site says if you refresh

earnest phoenix
#

@limpid basalt whats your bot name?

limpid basalt
#

NyaBot

earnest phoenix
#

@simple thunder

#

//help

limpid basalt
#

hm

#

hold on

#

//help

#

damn

uncut slate
limpid basalt
#

ok lemme fix it

earnest phoenix
#

sorry@uncut slate

limpid basalt
#

oh wow

#

the server for dbl isnt found apparently

abstract crystal
#

dns issue?

limpid basalt
#

not sure

#

haven''t looked into it

abstract crystal
#

nah dbl is down

#

simple as that

uncut slate
#

We're having some issues at the moment, it's being looked into

limpid basalt
#

k

abstract crystal
#

๐Ÿ˜‰

limpid basalt
#

Its back

novel topaz
#

so verified servers can have custom invite links, right?

unique star
#

yes

#

some at least

novel topaz
#

how long must/may that tag be, is there a minimum/maximum?

unique star
#

i think it follows the username structure not sure tho

novel topaz
#

hm okay

earnest phoenix
#

good, but, make dix box smaller

cold harness
#

can someone help me with sending .jpg files in discord.py

#

i also need the bot to download files

frail kestrel
#

voidbot.xyz

#

lul

earnest phoenix
#

How

#

do you get the guild id

#

without using a message?

still cave
#

How means how can he detect and get the guild ids on guilds when it first connects to them

pale light
#

what?

still cave
#

He wanted to know how to listen to the guild connected event and pull the guild id to use with initializing the bot

earnest phoenix
#

I fixed it

hushed oyster
#

@earnest phoenix so

earnest phoenix
#

k

#

eek

crimson raft
#

What

earnest phoenix
#

Kaniel are you having trouble too?

still cave
#

Hehe

earnest phoenix
#

@hushed oyster ?

hushed oyster
#

ok

#

so

#

you have to mention the role but do not send the message

#

then put a backslash right before the mention

#

it should give you something like <&82736392737>

#

copy the numbers and that's your id

earnest phoenix
#

hmmm

hushed oyster
#

backslash= \

#

not /

earnest phoenix
#

so there's no simpler way of having them mention a role and adding it?

#

to a given user

hushed oyster
#

wait

#

oh

earnest phoenix
#

coudld I sa mentions.roles?

hushed oyster
#

I didn't see what you were trying to do

#

I don't know js

#

ok bye

earnest phoenix
#

:(

#

wairt

#

I know

#

just add a backslash

#

to the args

#

in script

hushed oyster
#

no

#

don't

#

it doesn't work that way

earnest phoenix
#

aww

#

xd

#

so no simpler way

#

shit

#

cus I say .addrole @old bridge @Role

crimson raft
#

:3

south finch
#

y do people put their names as popular tags ppl do hmmm

pale light
#

to troll

crimson raft
#

Idk

slim heart
#

so im making my bot send to a specific channel on each server... ive figured all that out, but the thing is my bot crashes if there is no channel by the name im looking for... is there a way too if/then test for a channel name, and THEN send the message instead of crashing?

pale light
#

if statement?

#

if()

slim heart
#

yes, but test for if a channel exists

#

like would i do

#

if(message.guild.find("name", "log") {
blah
}

pale light
#

well what are you storing the channel in

#

/send code pls

slim heart
#
    if(message.content == "+xddeleteme") {
        console.log("xd")
        var logchannelxdz = message.guild.channels.find("name", "log");
        logchannelxdz.send("hixd")
        
    }
})
#

thats just testing it

pale light
#

if(!logchannelxdz)

slim heart
#

alright

#

thank

#

now it doesnt send at all...

grave mirage
#

how do i fix this?

#

/Users/example/Desktop/bot/bot.js:363
});
^

SyntaxError: Unexpected end of input
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:599:28)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Function.Module.runMain (module.js:676:10)
at startup (bootstrap_node.js:187:16)
at bootstrap_node.js:608:3

slim heart
#

send the whole code

grave mirage
#

i only have 362 lines

#

and it says there is a problem at 363

#

and it'd exceed character limit

#

@slim heart

slim heart
grave mirage
#

but still.

slim heart
#

on discord

#

?

grave mirage
#

y would it say that it is at 363 when their are 362 lines

slim heart
#

Ohhh

#

i see

#

alright

#

theres a missing ) } ] etc

#

thats the problem

#

there needs to be an end to whatever you have in there

#

send me the code via hastebin and ill find it for u

grave mirage
#

ill c if i can find

slim heart
#

that too

grave mirage
#

i figured it out

earnest phoenix
#

-nsfw

slim heart
#

CRAP

#

someone i need help

#

im missing a ) somewhere but i cant find it

#

nvm

trim plinth
#

How to get your bot's shard count with d.js?

gilded blaze
#

client.shard.count

trim plinth
#

ty

meager lintel
#

For devs here who have done web panels did you guys do the front and back end all in one project or construct a API and have the frontend access it?

gilded blaze
#

I made it all one project

loud spoke
#

So, clear up my first question, is their need to implement several languages or just one language to code the whole bot is okay like I may use Python or C#

leaden bane
#

Just one,

cold harness
#

its completely ok to just do everything in 1 file too

austere meadow
#

@leaden bane what? what are you doing

#

can you not be rude or whatever you're doing

leaden bane
#

Oops.

#

I thought it was the second finger...

#

Sorry.

weak parrot
#

1 file wtf are you guys talking about Thonk

cold harness
leaden bane
#

That's what we are talking about'

weak parrot
#

I used to do it and it's bad practice

languid dragon
#

literally horrible code practice

leaden bane
weak parrot
#

Never put everything in one file xD

cold harness
#

nice

earnest phoenix
#

If you dont want to do everything in one file just use java xd

cold harness
#

exactly

leaden bane
#

But it's better to use more than 1 file TBH.

weak parrot
#

Thonk you can put stuff in mutiple files on pretty much any lang though

leaden bane
#

Yeah.

earnest phoenix
#

yeah having everything in one file is a nightmare

#

especially when your codebase starts getting large

#

lots of ctrlf

leaden bane
#

But Piet will entertain your brain...

weak parrot
#

Yeah

languid dragon
#

all in 1 line

#

no balls.

earnest phoenix
#

storage space optimization

cold harness
#

guys look at the most recent picture in #commands

earnest phoenix
#

can fit more code on your drive if you do it in one line

weak parrot
leaden bane
#

A Piet program.

#

๐Ÿ‘

loud spoke
#

Now one more question....

#

How can I learn to develop bot?

cold harness
#

youtube

earnest phoenix
#

read docs

cold harness
#

lots.

#

of. youtube

weak parrot
#

YouTube, Google, docs

earnest phoenix
#

or just copypaste these new tutorial memes dbl has

leaden bane
#

EH?

weak parrot
#

Well that's not learning Thonk

leaden bane
earnest phoenix
#

dbl encourages copypaste

#

:joy: :ok_hand:

loud spoke
#

can i get a link?

muted oxide
#

But i know python

loud spoke
#

to docs

muted oxide
#

and i wrote it

earnest phoenix
#

look at the lib's github page

#

should be a link to docs somewhere

loud spoke
#

shall i say one thing?

muted oxide
#

my github repo is a long code

loud spoke
#

i don't know how to use GitHub

#

i never have used it

cold harness
#

same...

earnest phoenix
#

you dont have to know

leaden bane
loud spoke
#

with this doc, will i learn developing?

#

btw where will i write these codes?

leaden bane
#

Nop.e

loud spoke
#

i can't get you :/

leaden bane
#

Which you will use for creating Discord bots using Python.

loud spoke
#

yeah

#

i will use Python

#

and nothing else

leaden bane
#

Great.

cold harness
#

the go forth and create your masterpeice

leaden bane
#

But I can't get you too.

cold harness
#

-bots

gilded plankBOT
#
QTE#5236
Bots

@ornate zealot

earnest phoenix
#

Learn some python basics

#

Create your bot

loud spoke
#

@leaden bane I just wanted to say that know i wanna learn bot development

leaden bane
#

He already knows.

loud spoke
#

@earnest phoenix i know Python

earnest phoenix
#

If you dont know how to do something stackoverflow

#

If you know it creating a bot should be easy

loud spoke
#

but how?

earnest phoenix
loud spoke
#

where should i write codes? then how can i learn it?

leaden bane
earnest phoenix
#

several examples and extensive documentation are available

leaden bane
#

That's what you do first

earnest phoenix
loud spoke
earnest phoenix
#

library that allows you to interact with the discord api

cold harness
#

oh in a command prompt type "pip install discord.py"

leaden bane
#

pip install discord.py

loud spoke
#

okay

cold harness
#

in your code type

import discord
import asyncio
from discord.ext.commands import Bot
from discord.ext import commands

loud spoke
#

which code?

#

in cmd?

leaden bane
#

No need to do from discord.ext.commands import Bot
from discord.ext import commands

#

@cold harness be patient.

earnest phoenix
#

Unless you want to use the commands framework

cold harness
#

ok

leaden bane
#

Step by step.

cold harness
#

lel im a bad teacher

leaden bane
frail kestrel
#

hey guys

cinder gate
#

Hi girl

#

:3

frail kestrel
#

How do you check if [a] user's ID is within a list

cinder gate
#

What language?

frail kestrel
#

python

cinder gate
frail kestrel
#

rewrite

cinder gate
#
if bot.get_member(INT) in LIST:```
frail kestrel
#

oh

cinder gate
#

Wait no

#

One second

frail kestrel
#

no ()

#

xd

#

oh

#

heck

leaden bane
#

Heh?

cinder gate
#

Heh!

#

Funne.

leaden bane
#

List can be whatever.

cinder gate
#

Welll...

leaden bane
#

So...

cinder gate
#

Wellllllllllllllllllllll.... It has to be a list... or an array.

leaden bane
#

A list is already an array?

cinder gate
#

Nope.

#

List =/= Array in Python

leaden bane
#

I don't think so.

frail kestrel
#

lists are python

#

arrays are js

cinder gate
#

Arrays are also in python

#

But there is a difference

frail kestrel
#

oh heck

cinder gate
#

[1, 2, 3, 2, 1]
{1:1, 2:2, 3:3}

#

There's also dict's, but I'm to lazy to rread it

leaden bane
#

The former is a list, the latter is... nothing.

cinder gate
#

What?

uncut slate
#

the latter is a dict

#

isn't it

cinder gate
#

[1, 2, 3, 2, 1] THIS IS A LIST
{1:1, 2:2, 3:3} THIS IS AN ARRAY

leaden bane
#

A dic should be {'1':9, '2':8, '3':7}.

uncut slate
#

oh right the keys need to be strings

leaden bane
#

LMAO dicts are arrays?

cinder gate
#

idk

uncut slate
#

that's not an array

cinder gate
#

Shh

#

Shhhh

#

Be quiet and nod your head

#

:3

leaden bane
#

LMAO.

uncut slate
#

py doesn't have arrays afaik, just lists and tuples

leaden bane
#

Agree.

cinder gate
#

I disagree, 60221400000000000000000000000.

uncut slate
cinder gate
#

But that's your name.

uncut slate
#

pls

cinder gate
#

Anyways, I disagree - I do believe that they exist.

uncut slate
#

so what's an array

prime cliff
#

C# dictonary be like { { key, value }, { key, value } }

leaden bane
#

LMAO.

cinder gate
#

A list of values containing keys to identify what item to what.

uncut slate
#

no, like, what's an array in python

#

there's lists and tuples, that's it

leaden bane
#

THAT'S A DICTIONARY YOU NOOB!

cinder gate
#

Go read one. :3

uncut slate
#

oboi

prime cliff
#

Array is a set of values 1, 2, 3

uncut slate
#

a dict with the keys being zero-based ints is not an array

cinder gate
#

:3

uncut slate
#

those are lists

#

IIRC

languid dragon
#

Python doesn't have a native array data structure, but it has the list which is much more general and can be used as a multidimensional array quite easily.

cinder gate
#

I'm bored now, so I'm going to stop arguing without claiming that I lost.

uncut slate
#

๐Ÿ‘‹

leaden bane
#

Bye someone I don't like... much. :v

prime cliff
#

Oof

leaden bane
#

Basically I like the mind of keeping own opinion.

#

But whateva.

prime cliff
#

Btw kio im pretty sure you meant that py list can choose the index of the value and not an actual key like dictonary

leaden bane
#

Yup an 'array' is like a dict with natural number keys.

prime cliff
#

Keys in dictonarys can be any value type string, int, ect

leaden bane
#

dictionaries.

prime cliff
#

:3

leaden bane
#

Should I make an English grammar correcting assistant bot?

lethal sun
#

How can I define message in bot.on('guildMemberAdd', member => {

#

?

#

JavaScript / Discord.JS

gusty topaz
#

there is no message related to guildMemberAdd

lethal sun
#

k

#

dangit

muted oxide
#

Can await eval() include await client.send_message in discord.py?

#

Oh, if you know why I am asking this, i am testing Eris library, and async discord.py is being used.

trim plinth
#

I barely use python so I can't help you there

muted oxide
#

So, even using await eval(), can somebody please show me a example?

#

And how it can be "only to the bot developer"?

restive silo
#

what do you mean "i am testing Eris library, and async discord.py is being used" Thonk

#

eris is writeten in js and d.py is written in python

muted oxide
#

As in, I am testing the replacement of The Pip library.

#

And I want to know, does the await client.send_message work with await eval()?

earnest phoenix
#

'test'

#

Oh ouuups sorry

glass pendant
#

Hello i first time create bot music and can tell me how can create commant !leave

trim plinth
#

we don't spoonfeed, sorry.

marble mesa
#

..

topaz fjord
#

commant

lethal sun
#

@topaz fjord gg on certify

topaz fjord
#

@lethal sun lmao been like a month

old glade
#

Hello I have a dumb question :
I make a request on an URL which retrieve a Json.
Dpending of the url I might get 2 differents JSON
How do I make differents treatments depending of the Json I get ?

topaz fjord
#

Why are you getting 2 different jsons

old glade
#

I'm making some requests on exchanges

#

and depending of the url format

#

The json can have the information i want

#

or have another infos

#

for example

#
{'symbol': 'MCOBTC', 'priceChange': '-0.00007400', 'priceChangePercent': '-8.635', 'weightedAvgPrice': '0.00081861', 'prevClosePrice': '0.00085800', 'lastPrice': '0.00078300', 'lastQty': '5.12000000', 'bidPrice': '0.00078200', 'bidQty': '41.14000000', 'askPrice': '0.00078500', 'askQty': '5.12000000', 'openPrice': '0.00085700', 'highPrice': '0.00086600', 'lowPrice': '0.00077600', 'volume': '79814.72000000', 'quoteVolume': '65.33750429', 'openTime': 1519052606902, 'closeTime': 1519139006902, 'firstId': 2356583, 'lastId': 2359569, 'count': 2987}
#

this is a good JSON

#
{'code': -1121, 'msg': 'Invalid symbol.'}
#

this is a bad JSON

#
        if binance_json["msg"] == "Invalid symbol.":
            value_bin = "```css\nThis Coin is not listed on Binance. ```"
            print(value_bin)
        elif binance_json["symbol"] == "{}BTC".format(coin):
            print(binance_json)
            if coin == "BTC":
                pair = "Pair : USDT-" + coin + "\n"
                last = "Last : " + "{0:.2f}".format(float(binance_json["lastPrice"])) + "\n"
                bid = "Bid : " + "{0:.2f}".format(float(binance_json["bidPrice"])) + "\n"
                ask = "Ask : " + "{0:.2f}".format(float(binance_json["askPrice"])) + "\n"
                volume = "Volume : " + "{0:.2f}".format(float(binance_json["quoteVolume"])) + " BTC" + "\n"
                high = "24 High : " + binance_json["highPrice"] + "\n"
                low = "24 Low : " + binance_json["lowPrice"] + "\n"
                value_bin = "```css\n" + pair + volume + last + bid + ask + high + low + "```"
            else:
                pair = "Pair : BTC-" + coin + "\n"
                last = "Last : " + "{0:.8f}".format(float(binance_json["lastPrice"])) + "\n"
                bid = "Bid : " + "{0:.8f}".format(float(binance_json["bidPrice"])) + "\n"
                ask = "Ask : " + "{0:.8f}".format(float(binance_json["askPrice"])) + "\n"
                volume = "Volume : " + "{0:.2f}".format(float(binance_json["quoteVolume"])) + " BTC" + "\n"
                high = "1d High : " + binance_json["highPrice"] + "\n"
                low = "1d Low : " + binance_json["lowPrice"] + "\n"
                value_bin = "```css\n" + pair + volume + last + bid + ask + high + low + "```"
        return value_bin
#

and this is my code

topaz fjord
#

The bottom part is an error code for you did something wrong

old glade
#

Yeah I know

#

and this is good

#

I want to keep the bad json

topaz fjord
#

Then don't do something wrong mmLol

old glade
#

I just need to make sure that both JSON can be treated

#

but if...else... does not work

topaz fjord
#

Is this even JavaScript lol

old glade
#

python3

topaz fjord
#

No it's not, welp im dipping

lethal sun
#

How can I merge two pictures in Jimp? Like put a dab emoji on a message authors avatar.

solemn obsidian
#

In eris for messageDelete, is there any way to get the message content if its not cached?

inner jewel
#

no

#

discord doesn't provide deleted messages' content

#

you have to cache them

gusty topaz
#

hmmm

#

discord.js caches then I guess

#

since at least there you can get full content

uncut slate
#

you can get the content if the message was still in the cache

#

Discord.js' cache is circular (at least I hope)

scenic crest
#

How does typescript and node.js work out? With express? Afaik ts compiles into js but I was wondering if there were any advantages/disadvantages

inner jewel
#

ts transpiles to js

#

there's the clear advantage of type safety

#

there shouldn't be any disadvantages

#

besides having to compile the ts code

scenic crest
#

so would I have to compile TS into JS, and then run it via node?

gusty topaz
#

yes

heady zinc
#

iirc yeah TS is just meant to be compiled into JS

scenic crest
#

would have thought that someone'd have written a plugin but that works too

glossy sand
#

well ts-node does exist

gusty topaz
#

I detect no C++

#

they didnt modify node

#

they probably shoved tsc up its arse and made it run on runtime

glossy sand
#

more or less yes

quiet bobcat
#

Is there a way to use username instead of displayName when dealing with message.guild.member?

heady zinc
#

message.guild.member.user.username

umbral pelican
#

message.guild.member WaitWhat

quiet bobcat
#

idk

heady zinc
quiet bobcat
#

wew

#

thanks

pseudo slate
#

Hi there, I have a small question: how is it possible to make a bot adds another bot to a server?

#

I would like to automate this process on my server: a user enters the id of his bot in a command and it gets added to the server with no permission (then gets a "robot" role, but that's easy to do).

gusty topaz
#

no

pseudo slate
#

This way, users don't need to wait for an admin to add their bots. (Exactly like in #logs)

gusty topaz
#

you need to complete a captcha

quiet bobcat
#

There's capatchas

#

so not possible

gusty topaz
#

and there is no public endpoint

#

to avoid people spamming a server with bots

#

and making the bots waste resources

pseudo slate
#

I know for the captchas, but when I filled the form on the website my bot got added to this server automatically, so this is possible

gusty topaz
#

no

#

since the captcha is linked to your user account

#

and you cant embed just the captcha

#

and trust me, nobody adds bots to servers automatically

#

the moderators here have to review each bot

#

and add it manually

pseudo slate
#

๐Ÿค”

#

Oh wow... I understand now..

heady zinc
#

poor moderators goes through hundreds of captcha everyday

gusty topaz
#

well

#

not hundreds

#

as many as they have to verify

#

lel

heady zinc
#

shh

#

eggsy did

#

at some point

quiet bobcat
#

they are lazy... jk they are doing a great job

pseudo slate
#

my bot only got mentionned in #logs and since I have other servers in common with it the mention got correctly displayed...

gusty topaz
#

well

heady zinc
pseudo slate
#

Thanks for your replies ๐Ÿ˜…

gusty topaz
#

its just clicking I give away my soul to Google I am not a robot

#

so its not that hard

heady zinc
#

you gave away your soul the very first step you did on the internet zoomeyes

quiet bobcat
#

Well, you don't step on the internet...

gusty topaz
#

you get hurled towards it

#

by the society

quiet bobcat
#

^

heady zinc
#

ehhh

#

which society

quiet bobcat
#

our society

#

every society

heady zinc
quiet bobcat
icy lynx
#

Can anyone help me with discordpy?

formal bramble
#

xd

#

Nope @icy lynx sry :/

icy lynx
#

What I want to do is my bot to send a message, wait 10seconds for an user to react, and get every user that reacted with a specific emoji

#

discord.Messages has ยดreactionsยด, but that doesnt return the user

#

Ugh, found it out

#
msg = await client.send_message(message.channel, 'React with thumbs up or thumbs down.')
res = await client.wait_for_reaction(['๐Ÿ‘', '๐Ÿ‘Ž'], message=msg)
print(res.user)
#

Not sure how I use this to get every user that reacted...

modern kelp
#

why do you want to get the users, why not just the count

icy lynx
#

Because I want to get the users that reacted...?

modern kelp
#

for what

icy lynx
#

to randomly draw one of them

modern kelp
#

for a givaway?

icy lynx
#

ye, similar

modern kelp
#

do on-reaction-add

#

then put all those users into an array and pick at random

icy lynx
#

mhmm that gets ugly

#

since it also stores the message ids and I have to remove it every 10sec

modern kelp
#

does ot return anything

#

then find the user in what i returns

#

res.user ?

#

try res.member

#

that might work

icy lynx
#

that's not the issue

modern kelp
#

you want to randomly pick one

icy lynx
#

since the messages where users react get sent multiple times, I would need to check for every new react if it's one of these messages

modern kelp
#

make a list of isers and pick randomly from thre

#

i dont do python so this is really not that easy for me, sorry

icy lynx
#

ye, my question is lib related

modern kelp
#

i use js and you can just put the results directly into a json variable

#

i will try though

icy lynx
#

but do you have something that searches the users that reacted by message.id?

#

discordpy doesnt seem to have that

modern kelp
#

in discord.js we do have ids

#

in py it is also .id

#

message id?

icy lynx
#

not talking about that, discordpy also has that

#

The issue is that I want to get the members.id from a reaction

modern kelp
#

in js it is reactions[id]

icy lynx
#

we have message.reactions, but that doesnt list user.id

modern kelp
#

*user

#

that gets the id

icy lynx
#

The code I posted above only returns 1

modern kelp
#
res = []
msg = await client.send_message(message.channel, 'React with thumbs up or thumbs down.')
res[len(res)] = await client.wait_for_reaction(['๐Ÿ‘', '๐Ÿ‘Ž'], message=msg)
for x in res
print(x)
#

does this work?

#

@icy lynx does this work?

icy lynx
#

testing

#

doesnt work

#
res[len(res)] = await client.wait_for_reaction([':thumbsup:', ':thumbsdown:'], message=msg)
IndexError: list assignment index out of range```
#

@modern kelp

modern kelp
#

um

icy lynx
#

In theory, it shouldnt work

#

on this paart

#

res[len(res)] = await client.wait_for_reaction(['๐Ÿ‘', '๐Ÿ‘Ž'], message=msg)
for x in res

modern kelp
#
res.append(await client.wait_for_reaction([':thumbsup:', ':thumbsdown:'], message=msg))
icy lynx
#

That's not really how Python works

modern kelp
#

try this

#
res = []
msg = await client.send_message(message.channel, 'React with thumbs up or thumbs down.')
res.append(await client.wait_for_reaction(['๐Ÿ‘', '๐Ÿ‘Ž'], message=msg))
for x in res
print(x)
icy lynx
#

What it does is that it gets the reaction, stores on res once and ends it

modern kelp
#

hmm

zinc maple
#

Hey all, what's the strategy for initial help messages? my bot right now just posts a help message to #general when it joins a guild, but it looks like all of the bots in the testing channels keep their initial help message contained to the testing channels. How is this done?

icy lynx
#

Some kind of loop could be done, but that might get messy

modern kelp
#

@zinc maple get the guilds channels then post it in the first channel it can send in

#

e.g. check if it can send in each channel

#

if it can send, end the check and send

zinc maple
#

Ah ok, cool. How do you check? Just send the message and if it succeeds, then you're done?

#

@modern kelp ^^^

modern kelp
#

no, get all the guilds run a loop and use something like .hasPermission or something, check your libโ€™sdocs

zinc maple
#

Got it. Thanks!

icy lynx
#

regarding my issue

#

I will just use the Discord API

pseudo inlet
#

hellow peepholes i have problem regarde discord.py
this is my code

    if message.content.startswith('.add'):
        authid = message.author.id
        fname = ("%s.txt" % authid)
        if os.path.isfile(fname):
            read = open(fname, 'r+')
            rmoney = read.readlines(1)
            rmoney = str(rmoney)
            rmoney = rmoney.replace('[', '')
            rmoney = rmoney.replace(']', '')
            rmoney = rmoney.replace("'", '')
            rmoney = int(rmoney) + int(1)
            read.write(str(rmoney)) 

the file before had 5
the file now has 56

#

so you shoulkd ghelp

inner jewel
#

what are you even trying to do lol

pseudo inlet
#

take the number 5 from a file and add 1 to it

#

and then write that back onto the file

orchid horizon
#

open("fname.txt", "r").read().strip("\n") if you're reading just a number from it

abstract mango
#

gao

pale light
#

@pulsar cairn wrong channel by a lot GWjustinEyesReverse

pulsar cairn
#

oops

heavy flame
#

so i'm looking to try and make a bot, are there any tips on how to do that. Namely I've figured out how to actualy create one via the discord site, but how do you program them to do what you are wanting? I'm seeing some code examples in various scripts, but can't seem to tell what is best. I'm trying to get it to where I can feed it a list and have it randomly toss a name from it back at me with a command.

bright karma
#

You can study some of the example scripts you found until you understand how it works and what language is best for you. Thats what I did anyways.

coral wing
#

you frickin fricks

icy lynx
#

You should use a database to store money from users @pseudo inlet

#

Like sqlite

muted oxide
#

I think..

#

wait

#

for server counts

frail kestrel
#

no

#

you need a dbl token to post from

frozen shard
#

hi, can anyone help me pull data from some columns of sqllite db then put them on to a scatter plot?

#

does anyone have a library where they can link the documentation with scatter plots?

old glade
#

Heyo
I need help on something with Python3
is someone here ?

uncut slate
#

just ask your question

frail kestrel
#

Iโ€™m here but Iโ€™m going to sleep so ask ur question

leaden bane
#

ASK. IT.

trim plinth
#

y'know they asked like 4 hours ago so I doubt they'll answer now

leaden bane
#

Exactly 4h15 ago.

frail kestrel
#

actually first of all are they using 3.5 or 6

languid dragon
leaden bane
#

What???

#

@old glade Please what you were going to ask... T_T

languid dragon
#

patience, he'll ask when he asks? SpinningLUL

leaden bane
#

Oh my Word...

old glade
#

lmao

#

Sorry I was afk so I didn't see all your messages :c

#

Alright

#

Python 3 Issues

#

I make a request to an url which return a JSON

#

This JSON can have 2 different forms

#

form 1 : Good JSON

#
{
mid: "0.0807635",
bid: "0.080763",
ask: "0.080764",
last_price: "0.08075",
low: "0.07727",
high: "0.081943",
volume: "57065.14056706",
timestamp: "1519220945.421262"
}
#

form 2 : Bad JSON

{
message: "Unknown symbol"
}
#

The fact is

#

I don't know which JSON I'll retrieve

#

I want my code to know what to do depending of the JSON i get

#

If i receive the bad JSON i want :

#

var = "Bad JSON"

#

and if I get the good JSON i want :

#

var = "Good JSON"

#

this is my code

gusty topaz
#

in json, the property name is in quotes always

old glade
#

yeah I know

gusty topaz
#

so "mid": "0.0807635",

old glade
#

wait a bit

#

I'll put my code

gusty topaz
#

just saying

#

I dont know python3 that much, but I know JS and attempted to correct you

#

in json

#

lol

old glade
gusty topaz
#

its just how your browser displays json then

#

I think

#

{"mid":"0.0808005","bid":"0.0808","ask":"0.080801","last_price":"0.0808","low":"0.07727","high":"0.081943","volume":"56778.75651254","timestamp":"1519221182.7644079"}

#

this is how the raw response looks

old glade
#

yeah

#

I use a chrome json formatting addon

#

CODE:

r = requests.get(api_url)
bitfinex_json = r.json()
print(bitfinex_json)

if bitfinex_json["message"] == "Unknown symbol":
    value_finex = "Error"
elif coin == "btc":
    pair = "Pair : USDT-" + coin.upper() + "\n"
    last = "Last : " + "{0:.2f}".format(float(bitfinex_json["last_price"])) + "\n"
    bid = "Bid : " + "{0:.2f}".format(float(bitfinex_json["bid"])) + "\n"
    ask = "Ask : " + "{0:.2f}".format(float(bitfinex_json["ask"])) + "\n"
    volume = "Volume : " + "{0:.2f}".format(float(bitfinex_json["volume"])) + " BTC" + "\n"
    high = "High : " + "{0:.8f}".format(float(bitfinex_json["low"])) + "\n"
    low = "Low : " + "{0:.8f}".format(float(bitfinex_json["high"])) + "\n"
    value_finex = pair + volume + last + bid + ask + high + low
else:
    pair = "Pair : BTC-" + coin.upper() + "\n"
    last = "Last : " + "{0:.8f}".format(float(bitfinex_json["last_price"])) + "\n"
    bid = "Bid : " + "{0:.8f}".format(float(bitfinex_json["bid"])) + "\n"
    ask = "Ask : " + "{0:.8f}".format(float(bitfinex_json["ask"])) + "\n"
    volume = "Volume : " + "{0:.2f}".format(float(bitfinex_json["volume"])) + " BTC" + "\n"
    high = "High : " + "{0:.8f}".format(float(bitfinex_json["low"])) + "\n"
    low = "Low : " + "{0:.8f}".format(float(bitfinex_json["high"])) + "\n"
    value_finex = pair + volume + last + bid + ask + high + low
#

But this code does not work

#

And I don't understand why

leaden bane
#

Looks complicated.

old glade
#

well this is just string formatting with JSON data

leaden bane
#

Let me test a bit...

old glade
#

I just need a way to have a treatment for both good and bad JSON

leaden bane
#

You can check if is doesn't have required fields?

old glade
#

mmmm

#

this is somehow what I'm trying to do right now

#

I check if the value of message == Unknown symbol

#

if yes -> var = Error
if no var -> values

old glade
#

mmm

#

this is quite interesting

#

I'll try this and come back to you

leaden bane
#

OK.

old glade
#

It looks like this is working

#

I'll do further tests and come back to you

leaden bane
#

Nice to help you out! ;)

earnest phoenix
#

devs

#
DiscordBotListAPI api = new DiscordBotListAPI.Builder()
.token(Static.getBotListKey())
.build();
int serverCount = discord.getGuilds().size();
api.setStats("384675657579495430", serverCount);```
#

why luca can't get server count

#

website too

#

i think u need the token

#

lol

#

i put api key there

topaz fjord
#

It's not Luca can't get server count it's you're not sending it right

nimble merlin
#

hey, could someone tell me how to set my bots playing message?

earnest phoenix
#

what lib are you using

nimble merlin
#

python

earnest phoenix
#

frick I can't help you

#

@cold harness help this sir

nimble merlin
#

Visula Studio Code

earnest phoenix
#

how to make a discord bot react
1โƒฃ ??

nimble merlin
#

IDK

#

Does that comply with the rules though....well, if it spams it then obviously not

earnest phoenix
#

wat u mean?

#

just like dat

quiet bobcat
#

What lib?

#

@earnest phoenix

nimble merlin
#

How do you set a bots playing message?

#

in python?

quiet bobcat
cold harness
#

@nimble merlin await client.change_presence(game=discord.Game(name='Use "JH" to see how to talk with me!'))

#

its kinda buggy sometimes tho

nimble merlin
#

thank you! ๐Ÿ˜ƒ

cold harness
#

np!

nimble merlin
#

this was its responce ._. :
File "bot.py", line 104
await client.change_presence(game=discord.Game(name='Use ~commands'))
^
SyntaxError: invalid syntax

#

did I miss something?

cold harness
#

i'm not sure what your bot varible is

#

but mine is client

nimble merlin
#

I use Visual Studio Code

cold harness
#

as in client = Bot(description="JADE", command_prefix="", pm_help = False)

nimble merlin
#

idk ._.

cold harness
#

that's fine, find the line in your code kinda like that one

nimble merlin
#

My bot managed to boot, but it dosn't display the message ._. .....boi coding has its difficulty's

cold harness
#

-bots @nimble merlin

gilded plankBOT
#
JackTEK05#0851
Bots

@slim wyvern

cold harness
#

-botinfo @slim wyvern

quiet bobcat
gilded plankBOT
#
Bot info
ID

414911736450252800

Username

JBot

Discriminator

0023

Short Description

JBot is a friendly utility bot with a few added moderation commands!

Library
Prefix

~

Upvotes

3

Server Count

No server count

Owner(s)

@nimble merlin

Links
nimble merlin
#

lol

cold harness
#

hm

nimble merlin
#

no server count??? That's weird

cold harness
#

server count requires the usage of the discord bot list API

nimble merlin
#

ohhhhhh

cold harness
#

i have no idea how to get that working lol

nimble merlin
#

lol....thanks for trying though ๐Ÿ˜ƒ

cold harness
#

-botinfo @ornate zealot

gilded plankBOT
#
Bot info
ID

410253782828449802

Username

JADE AI

Discriminator

3796

Short Description

The first of its kind on discord, a chatbot based on Deep learning to accompany you through your discord days!

Library
Prefix

JD

Upvotes

2

Server Count

No server count

Owner(s)

@cold harness

quiet bobcat
nimble merlin
#

๐Ÿ˜„

cold harness
#

why

nimble merlin
#

lol

quiet bobcat
#

Because this is development

nimble merlin
#

๐Ÿ˜„

quiet bobcat
#

Those commands have nothing to do with development ๐Ÿ‘€

nimble merlin
#

๐Ÿ˜‚

cold harness
#

i wanted to figure out what bot he had lol

#

so kinda has to do with development

quiet bobcat
#

There are channels for that you know?

nimble merlin
#

๐Ÿ˜ he has a point

cold harness
#

yea ok

nimble merlin
#

well, you both do

#

you both make argumements of identical realism

cold harness
#

anyway are you using async or (i forgot the other version fo discord.py)?

nimble merlin
#

yes

#

async

cold harness
#

hmmmm

nimble merlin
#

that was it

#

ill try replace that with async

#

brb going for my dinner ๐Ÿ˜ƒ

cold harness
heady zinc
#

spoonfeed zoomeyes

quiet bobcat
cold harness
#

@heady zinc if i was spoonfeeding then i might as well have made my entire AI's code open-source

heady zinc
#

that is 100% spoonfeed

#

no matter how you will argue

cold harness
#

sure

prime cliff
#

@heady zinc ur a spoon

heady zinc
#

@prime cliff i'll baguette u

cold harness
#

no u

prime cliff
#

Mkay GWchadThink

nimble merlin
#

im back

cold harness
#

cool

#

any idea how to http request an image from discord without getting a error 403?

inner jewel
#

add an user-agent header

cold harness
#

wot

#

im using python

inner jewel
#

add an user-agent headerยฒ

cold harness
#

yes totally

#

im currently using```
f = open('imageTest.jpg', 'wb')
f.write(request.urlopen(ModMessage).read())
f.close()

inner jewel
#

see if you can give headers to urlopen

cold harness
#

sure

nimble merlin
#

I managed to set the Playing message...however I had to pull off a stupid move and copy the Musicbot coding into my directory, run the bot, then remove that coding....I think if my bot goes offline then it will reset but i'm working on a way to set it permenantely

scenic crest
#

just set it when you initially run the program

nimble merlin
#

thats the point, i'm struggling to do exactly that...every relevant piece of code that I have used has outputted with a syntax error

scenic crest
#

do you know any programming languages at all

#

(if not, how are you a bot developer Thonk )

nimble merlin
#

OMG I did it

#

wow, thats kinda rude....I have only been taught VERY basic Python in computing class....not my fault

#

Either way, I figured my way around it

quiet bobcat
#

Is there a way to selfdeaf in discord.js v12?

#

.setDeaf() does a serverwide deafen

#

I want a selfdeaf

cinder gate
#

Quick question, how can I see how long I've been on the list? owo

gusty topaz
#

ask Oliy

#

or someone

#

idk

quasi marsh
wooden shoal
#

What exactly makes a bot, a social bot.

trim plinth
#

a bot that can interact with guild members?

wooden shoal
#

so... any bot? lol

trim plinth
#

actually, I'd think it would be a bot that has commands that can interact with multiple guild members, such a tic tac toe, trivia, connect 4, ship command

floral stone
#

Any good ways to restart on crash for python?

wooden shoal
#

what script language do you use to start the file?

floral stone
#

Python3.5

elder rapids
#

Use a guardian service

earnest phoenix
#

forever.js

deep parrot
#

forever.js oof

#

or use a shard xD

floral stone
#

It's discord py

deep parrot
#

oof

#

idk

#

Fix your code then

#

so it doesnt crash xD

floral stone
#

My code is fine

old glade
#

Is there a way to know how many users in total are using the bot ?

floral stone
#

This is for backup purposes

old glade
#

like add all the users on every server the bot is on

deep parrot
#

@floral stone if its fine, why does it crash then?

floral stone
#

I never said mine crashed

deep parrot
#

yea

floral stone
#

It was a general statement

#

Look it over

deep parrot
#

nah

floral stone
#

@old glade which api

deep parrot
#

you mean lib

old glade
#

what do you mean api ?

#

lib ?

trim plinth
#

lib

floral stone
#

Yeah

old glade
deep parrot
#

oof .py

#

im out of here

#

xD

trim plinth
#

outta here too

floral stone
#

There is something like get_all_members()

#

Look in the client part of the api

inner jewel
#

@floral stone take a look at systemd

#

it has some settings to auto restart

wooden shoal
#

I meant like do you have a script that starts your bot? my bot is made with jsvascript but the startup file is a shell file

inner jewel
#

if exit code isn't x

floral stone
#

X?

inner jewel
#

you can define what x is

floral stone
#

I don't

#

I usually do screen python3.5 run.py

#

I know what x is

#

Sorry

deep parrot
#

ubuntu 16.04?

inner jewel
#

any value you choose

floral stone
#

14.04

deep parrot
#

oof

floral stone
#

Yea I know

#

I might upgrade soon

#

Might do it now

inner jewel
#
[Unit]
Description=Bot Service

[Service]
WorkingDirectory=/path/to/your/working/directory
ExecStart=python3.5 run.py
SuccessExitStatus=0
TimeoutStopSec=10
Restart=on-failure
RestartSec=5

[Install]
WantedBy=multi-user.target```
deep parrot
#

just do it

inner jewel
#

save that to /etc/systemd/system/bot.service

#

then systemctl start bot

deep parrot
#

^

#

oof i forgot that also worked

#

i just add a shard in discord.js and that fixed it all xD

bright bone
#

Does anyone give me an example of awaitMessages in discord.js?
And what can be with several options ...

sick cloud
#
0|givaway  | { Error: ENOENT: no such file or directory, scandir './events/'
0|givaway  |   errno: -2,
0|givaway  |   code: 'ENOENT',
0|givaway  |   syscall: 'scandir',
0|givaway  |   path: './events/' }

getting that lovely error on each restart/start of my bot, any idea why its doing that?

inner jewel
#

ENOENT: no such file or directory, scandir './events/

#

seems pretty clear to me

sick cloud
#

it is a thing ๐Ÿ‘€

upper pumice
#

Hello guys , Im not with time win the last weeks and Im needing to code a bot to my server. I am looking for someone can do this for me. I pay to do the codes. Its 2 things; Do the bot move guys from one room to other and send pms to everyone had reac to a message. PM If you can.

inner jewel
#

send pms to everyone had reac to a message this is API abuse and bannable

sick cloud
#

bad

floral stone
#

How is it api abuse? There's nothing mentioned about mass mention.

inner jewel
#

it's spam

#

which falls under api abuse

floral stone
#

Spam how

#

I click a reaction

#

I get a message

#

That's it

inner jewel
#

depends on what exactly that's supposed to do

#

if it fetches who reacted and DMs all

floral stone
#

It's for everyone who has reacted which can be just 2 people

inner jewel
#

it'd fall under spam unless they were only a few

#

i was expecting something in the order of a few dozens tbh

#

like a message in an announcements channel

floral stone
#

"Send pm to everyone had reacted to a message"

#

By the message she sent, it's probably for a small discord server.

#

I don't think It's considered api spam @upper pumice

#

About #414124730715734068, who said the page is just limited to just developers? Anyone can view the site, the page, and so on. Why limit the capability of the site just because someone has a different device or could use a different device?

#

@fossil oxide

cinder gate
#

Heyhey. I'm wondering if someone wouldn't mind fixing up my script. I built it for my users to use listen.moe, soo.. :3

#

For some reason,my bot panics about a minute in.

gusty topaz
#

spoon feeding zoomeyes

cinder gate
#

Shh.

fossil oxide
#

@floral stone Because the docs are for developers developing, you don't develop on mobile

gusty topaz
#

saddly its python, so even if you paid, I wont be able to

cinder gate
#

I mean, she runs fine, but I just get an error about a minute in. That's all.

#

She runs okay beyond that point.

Yeah nope I lied

floral stone
#

But people read things on mobile, it shouldn't matter if they are a developer or not. People might be like: "If I can't read this on my mobile device, why should I read it on my laptop? I don't have time to wait for my computer to boot and it's probably the same as the mobile version. I'll go use carbon instead.". You can't just assume everyone is a developer, maybe someone ordinary might just want to read it before adding their bot.

#

@fossil oxide

fossil oxide
#

1/. Buy a new computer
2/. Feel free to goto carbon that's nearly on page 2 of google

#

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

floral stone
#
  1. I can access the site on my computer. I'm talking in a general stance.
fossil oxide
#

it may seem like I'm being a dick, but developing is for a computer, they are developer documents and it's common sense

floral stone
#
  1. You're missing my po
fossil oxide
#

if it affected that many people that badly we would always consider changing it

#

but the reality is that this guild and bot developers only account for less than 1% of traffic

gusty topaz
#

Isn't it just a single overflow-y: auto

#

It can't be that hard

floral stone
#

It's not about whether or not someone is a developer, you shouldn't leave a site unfunctional just because they could use another one. 100% support bby

#

It isn't hard

fossil oxide
#

we would probably have to recode the whole side navigation

#

it's not unfunctional

#

you can still use it

floral stone
#

Not really

#

Why have mobile standards place if you don't support them. Make desktop version work

calm sky
#

Hello, I've got a question about certain bot I'm looking for if anyone could help?

cinder gate
#

Which bot, @calm sky

fossil oxide
#

Mobile standards for the users of the website, they are in place.

floral stone
#

But everyone is a user

fossil oxide
#

but not everyone is a developer

floral stone
#

But all of them are viewers of the site

fossil oxide
#

yes

trim plinth
#

@calm sky what type of bot are you looking for?

gusty topaz
#

Honestly, the side navigation is a pain even on a computer

#

When I make the window smaller

#

To fit something else on the monitor

#

It also overflows over the content

floral stone
#

Why limit it for everyone just because of someone agenda?

calm sky
#

Well, not a particular bot but a type of bot. I'm looking for a bot which could store information provided though commands. Something like filling up a sheet or a document as each of these logs would have own number. E.g "Order #1, Name, Second Name, Other Information, Other Information".

gusty topaz
#

I just ended up rewriting the nav into a tampermonkey userscript

trim plinth
#

hmm

calm sky
#

A data base in other words.

trim plinth
#

hmm

#

hmm x3

gusty topaz
#

But the script I wrote is a quick bodge not a prod ready thing

#

But I believe it could work on mobile

floral stone
#

If only tampermonkey was on mobile

fossil oxide
#

Because we want to focus on features for the many, not the few, unlike some people here, the developers of this site have a life, an education they need and more real world responsibilities and when we give up our time to work on the site we want to use our time to make features that will be used and loved, not some documents to look good on mobile that hardly anyone uses

gusty topaz
#

Oof I just got roasted

floral stone
#

But you run a server filled with developers, couldn't you get them?

#

I mean

#

Shouldn't everything be functional?

fossil oxide
#

it is functional

floral stone
#

It's not

fossil oxide
#

And we're not going to let just any developer code on our site

#

and it is, why do you care, if you care, go copy paste it all into a PDF

floral stone
#

10k users, you can find one if you try

fossil oxide
#

And 1.5 million users who don't look at the API docs

floral stone
#

But could

#

If you support mobile

#

Shouldn't be hard

gusty topaz
#

Hmmm

floral stone
#

Shouldn't take long

heady zinc
#

i don't see the point of adding mobile support for such a thing

calm sky
#

Soo, anyone?

gusty topaz
#

I guess I will work on a browser plugin

floral stone
#

Plus the api page resemble alot like the discord api page

gusty topaz
#

That can install in Firefox and chrome

floral stone
#

Yeah

#

I have to go

fossil oxide
#

And guess what the discord api docs also don't support mobile

gusty topaz
#

And that fixes sidenav

#

Discord api docs work well in landscape mode?

#

The side thing scrolls

heady zinc
#

sounds like losing time to add mobile support for something 0.smth% users actually read

fossil oxide
#

^

gusty topaz
#

Thats why there are people willing to make plugins lol

#

Hmm

fossil oxide
#

if you feel the need, go for it, I won't stop you

gusty topaz
#

Ok

inner jewel
#

you can just load it as a desktop page on mobile

#

that's what i do when reading discord api docs

#

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

gusty topaz
#

I more mean small window support

#

Because thats an actual use case

#

When you only have 1 monitor

#

And want to multitask

elder rapids
#

"load it as desktop page"

#

Portrait mode sucks with that

languid elm
#

were do i finde the bots

trim plinth
earnest phoenix
#

Can you use boolean values in MySQL

elder rapids
#

yes and no

#

MySQL doesn't natively store a boolean as "true" or "false". it uses 1 and 0

earnest phoenix
#

I guess I'd just store an int?

#

ok

#

1 = true?

#

0= false

elder rapids
#

Yes

earnest phoenix
#

K

elder rapids
#

I think there is a BOOL data type

earnest phoenix
#

No

elder rapids
#

But it's stored as 1 and 0

earnest phoenix
#

I tried

#

"BOOL" is apparently not a thing

elder rapids
#

Well there is a data type iirc that can do 1 and 0 only

#

TINYINT

#

that's what I was looking for

still cave
#

@earnest phoenix I use the datatype mentioned above and C# can convert 0 or 1 to a book natively so it will help

fleet epoch
#

i need help

topaz fjord
#

k

#

what kind of help mental, code, life?

fleet epoch
#

code

#

probilly mental but i can wait for that

#
const Discord = require('discord.js');
const settings = require("../settings.json");
exports.run = (client, message, args) => {
    let auctionRole = message.guild.roles.find("name", "Auctions")
    if (!auctionRole) return message.channel.send("This server dosen't have the **Auctions** Role. Have an administrator create the **Auctions** role in order to use this command.");


let title = args[0]
let bid = args[1]
let desc = args.slice(2).join(" ")

if (!args[2]) return message.channel.send("Please use the correct format: **<Title> <Starting Bid> <Description of item>**")

message.guild.createChannel(`Auction-${title}`, "text").then(c => {
    let role = message.guild.roles.find("name", "Auctions")
    let role2 = message.guild.roles.find("name", "@everyone");
    c.overwritePermissions(role, {
        SEND_MESSAGES: true,
        VIEW_CHANNEL: true
    });
    c.overwritePermissions(role2, {
        SEND_MESSAGES: false,
        VIEW_CHANNEL: false

    });
});
let auction = message.guild.channels.find('name', `Auction-${title}`)
    const embed = new Discord.RichEmbed()
    .setColor(0x00AE86)
    .setAuthor(`Auction for ${title}`)
    .addField("Budget:", bid)
    .addField("description",desc)
    .setTimestamp()
    client.channels.get(auction).send(embed).catch(console.error);

message.channel.send("Auction has been posted!")

}

exports.help = {
    name: 'create'
      
}```
topaz fjord
#

error

fleet epoch
#

for embed, if i set it to auction.id, it says cannot read id of null, if left how it is, cannot read property of send as undefined

topaz fjord
#

if its says that id is null the auction is undefined

fleet epoch
#
let auction = message.guild.channels.find('name', `Auction-${title}`)```
topaz fjord
#

did you try console.logging auction

fleet epoch
#

ill do that rn

#

comes out as null

#

somethings not working right

#

i cant find whats wrong

#

its in the correct sequence it should work

upper pumice
#

Can someone help with , how can I put an @here on my bot? When I put it on bot this dont work , dont mention everyone :/

elder rapids
#

If it does the proper tag (shows blue etc..) and doesn't actually notify anyone then it's a permission issue

brisk notch
#
while(true) {} ```
#

well

fleet epoch
#

so anyone can still help me?

upper pumice
#

Can someone help with , how can I put an @here on my bot? When I put it on bot this dont work , dont mention everyone :/

fleet epoch
#

omfg

upper pumice
#

Stay this

low rivet
#

permissions

topaz fjord
#

anyone who works with git

#

pls hep

brisk notch
#

what about it?

#

@topaz fjord

#

ah

#

@topaz fjord

#

@topaz fjord com here

topaz fjord
#

how to fix

#

and why the fuck 3 pings

brisk notch
#

what wrong about it?

#

trutle

topaz fjord
#

do you not see console

brisk notch
#

aH

topaz fjord
#

i cant push to git repo

brisk notch
#

run

#

git pull

topaz fjord
#

but then ill lose my progress wont i?

brisk notch
#

ehhhh

#

idk

#

but it looks like you published files to directly github which is not synced with the local ver

earnest phoenix
#

nah it just merges