#development

1 messages Β· Page 784 of 1

outer niche
#

kk

snow pine
#

@glacial cipher wow. Joining an discord bot server to advertise.πŸ€”

summer torrent
#

banned

snow pine
#

-botinfo 673160436363034626

gilded plankBOT
#
Bot info
ID

673160436363034626

Username

Rom.

Discriminator

0743

Short Description

My first bot to be released. i made an multi funtional bot it has fun commands, moderator commands, some info commands too!

Library

discord.js

Prefix

?

Total Upvotes

1

Monthly Upvotes

0

Server Count

No server count

Owner(s)

@snow pine

snow pine
#

Woiting

shell obsidian
#

@versed thorn plauy

#

@versed thorn play

#

I think it has long-term memory loss!

#

@versed thorn play Diamond Eyes- everything

mossy vine
#

bro

shell obsidian
#

I forgot which channel I was in, srry

delicate zephyr
#

@coral trellis Iara did a big ban

uneven wyvern
#

@outer niche discord.Colour("ffffff")

I never worked with Python so yeah its just a guess

modest maple
#

Discord.colour has alot of different attributes

#

You can do it by name, by RGB numbers and some others

#

There is no black attribute because embeds defualt to that anyway

snow pine
#

I made an reddit command that uses args as the subreddit name. But i made an if post is over 18 and dchannel is nfsw etc. But i have the dumb ides that someone can create an subreddit post something nsfw that is not markes as and use this to post nsfw.

#

Has reddit an nsfw ai?

mossy vine
#

no

uneven wyvern
#

just make the whole command nsfw

green kestrel
#

i think the whole nsfw thing is too vague once outside discord

#

its so wishy washy

#

you could within reason say the whole internet is nsfw

#

because you never know what some troll has done

uneven wyvern
#

@flat pelican ^

flat pelican
#

@earnest phoenix Don't use bot commands here

earnest phoenix
#

@flat pelican umm soory

#

πŸ˜… πŸ˜… πŸ˜…

#

Forgive me

earnest phoenix
#

hi

#

can someone say me what i need do add to package.json

#

!hwlp

#

!help

#

-help

#

-package.json

#

-info

#

-botinfo

gilded plankBOT
#

tickNo Please include a bot mention or ID

slender thistle
earnest phoenix
#

-botinfo @gilded plank

gilded plankBOT
#
Bot info
ID

264811613708746752

Username

Luca

Discriminator

1375

Short Description

Luca is a bot for managing and informing members of the server

Library

discord.js

Prefix
  • or @Luca#1375
Total Upvotes

251

Monthly Upvotes

1

Server Count

2 Servers

Owner(s)

@fossil oxide dblAdmin dblMod
@languid dragon dblCertified
@bitter sundial dblAdmin

earnest phoenix
#

k

#

can u help me

#

pls

quartz kindle
#

npm init

earnest phoenix
#

?0

#

?

quartz kindle
#

npm init will create a package.json for you

earnest phoenix
#

no i have but i cleared it mistakely

#

friend made it f or j

#

me

#

npm init where i whrite it

#

write

quartz kindle
#

then ask him to give it to you again

earnest phoenix
#

he offline for 6 hours

#

he sleeping

quartz kindle
#

then wait

earnest phoenix
#

where i write "npm init "

quartz kindle
#

in the console, but npm init will create an empty package.json

#

it will not have the modules you want

earnest phoenix
#

oh

quartz kindle
#

cant you restore the file from trash or get it again from whatever place he sent it to you?

earnest phoenix
#

he copy pasted package idk where

#

how to write it

#

im new

#

xd

#

i know how to code some commands

#

but idk package

#

xd

uneven wyvern
#

@earnest phoenix npm init

earnest phoenix
#

wdym

#

what i will whrite to

#

"name": "name"

quartz kindle
#

npm init creates a new empty package, that means its like creating a new project

#

you have to give it a new name, description, etc

#

and then install modules again

earnest phoenix
#

oh

uneven wyvern
#

how can I check if a number like 1 jumps to 2?

late hill
modest maple
#

Using maths

tight plinth
#

Math

toxic jolt
#
  
module.exports = function(ownerToken, id, debug = false){
  try{
    if(ownerToken === null || id === null){
        console.error("Missing parameters")
        return
    }
const request = require('sync-request');
var res = request('POST', 'https://discordapp.com/api/oauth2/applications/' + id + '/bot/reset', {headers: {'Authorization': ownerToken}});
var body = JSON.parse(res.getBody().toString())
  return body.token
} catch(err){
  console.log("Server Error: " + err.statusCode)
}
}```
#

I want to use this code to get it automatically if the "bot" token changes. Do you think you can check if it's reliable?

earnest phoenix
#

you're not allowed to do that

grim aspen
#

yeah no

earnest phoenix
#

you're actively logging in with a user token outside of the official client, which results in account termination for breaking the tos

toxic jolt
#

My "bot" token is constantly changing. I have to use this or it happens that it is offline for 5 hours.

earnest phoenix
#

well stop having it change

#

get a reliable host

toxic jolt
#

I sent an e-mail but the problem still continues.

earnest phoenix
#

your token gets reset if you send 1000 IDENTIFYs through the gateway

#

in a 24h timespan

toxic jolt
cursive dagger
#

Or token on your github

earnest phoenix
#

maybe you should fix logging in a thousand times a day

toxic jolt
#

How can I fix 5 projects are open.

earnest phoenix
#

what

toxic jolt
earnest phoenix
#

well don't

toxic jolt
#

max 512 mb ram

grim aspen
#

wait, so you're saying it uses a login to your developer portal

#

that raises red flags

toxic jolt
#

yes developer portal is changing auto in my bot token

earnest phoenix
#

no it isn't

#

discord is resetting your token as a protective measure

#

because you're logging in a thousand times with the same token

#

per day

toxic jolt
earnest phoenix
#

can you read

toxic jolt
#

wait now token

#

its now token

#

its changed?

grim aspen
#

yeah it's not changing your token it relogins with your token, i bet there's a high chance it's stored somewhere else that you might not know about

earnest phoenix
#

like i said

#

the token gets reset after 1000 IDENTIFYs within 24 hours

#

which matches the fact that they're using glitch

#

which is an unreliable host

toxic jolt
#

okay my host is glitch.com free? im poor okay? πŸ˜„

grim aspen
#

reset your token anyways

earnest phoenix
#

most of us aren't rich here either

toxic jolt
#

i using 5 project is my bot

coral trellis
#

Reset your token please

toxic jolt
#

i reseted

modest maple
#

A VPS is like $3

earnest phoenix
#

a vps is 3 dollars a month, don't go to starbucks for a day and you got it covered

modest maple
#

But yes Don't use an Autochanger and we won't help you with that issue

toxic jolt
#

I have been having these conversations for 1 month. My problem is still not resolved I do not have enough money to buy vps. The euro is too expensive in my country!

earnest phoenix
#

euro is not the same as a dollar

#

but okay

toxic jolt
#

dollar, euro

modest maple
#

It's against ToS and the reason for the content resets is almost 100% your fault and your responsibility to keep you token safe

#

Isn't a euro worth more than a dollar

toxic jolt
#

pls

modest maple
#

@toxic jolt NO

tidal parrot
#

probably not

toxic jolt
#

😦

modest maple
#

That I'd against ToS

#

Is*

toxic jolt
#

i how to fix 😦

modest maple
#

Then watch where your tokens are going

#

They won't reset automatically every day

toxic jolt
modest maple
#

nO

tidal parrot
#

huh is it actually that easy

modest maple
#

What don't you get about YOU CANNOT USE A SYSTEM TO AUTOMATICALLY GET THE TOKEN

earnest phoenix
#

i how to fix
already said; fix your code to not login a thousand times a day or use a reliable host

grim aspen
earnest phoenix
#

that or you're leaking your token on github

cursive dagger
#

@toxic jolt hey
Try use heroku instead it's basically the same as glitch, totally free and a little bit more reliable. Although it's kinda hard to set up for beginners

earnest phoenix
#

no

toxic jolt
#

My token changes every 5 hours. I think it originates from Discord.com/developers. I sended discord support mail

cursive dagger
#

Although a vps is better

modest maple
#

It won't do that
If

#

You

#

Dont

#

Fycj

earnest phoenix
#

why does my bot restart so often

modest maple
#

Your token

earnest phoenix
#

before it didnt

#

heroku isn't built for and doesn't allow hosting discord bots with an uptimer bot

cursive dagger
#

Dont use a web worker then

#

No need for uptimer robots

late hill
#

but it won't last a whole month

amber fractal
#

heroku isnt free you have a limited amount of monthly hours and Im pretty sure there's a hard cap as well, but not sure on that

tight plinth
#

550 hours

earnest phoenix
#

@analog owl

earnest phoenix
kindred musk
#

Does anyone else here use D||iscord||B||ot||M||aker||

earnest phoenix
#

we don't offer support for bot makers here

kindred musk
#

No the program Discord Bot Maker on steam

modest maple
#

We don't offer support for DBM here

earnest phoenix
modest maple
#

Read the errir

#

You are trying to turn a nothing into an int

earnest phoenix
#

i try to change api key

#

means??

modest maple
#

You are trying to turn a Nothing in to a integer

earnest phoenix
#

how i fix it

#

ops

snow pine
#

Whats the best method for a musicbot in discordjs?

#

Send pls github xd

marble juniper
#

you know search engines exist right

uneven wyvern
#

@snow pine
ur German?

snow pine
#

Yes

#

Link well. All results are broje or already tested from me. And nothing works well / crashes

sinful lotus
#

then you can probably create your own

glacial anchor
#

couldnt receive any help on djs, so im gonna ask for help here - my bot doesnt respond on prefix calls. i tried logging it, but it wont work after if (command), meaning it cant execute it. any ideas?

https://hastebin.com/jitiwidabu.js

earnest phoenix
#

if (!cmd) return?

glacial anchor
#

dude

#

any command

#

ng.ping, ng.help

#

not just the ng.

#

@earnest phoenix

#

i might be dumb but not that much

grave mist
#

Anyone good with react?

earnest phoenix
#

yeah what's up

grave mist
#

I have a data like this

#
    commands = {
        bot: [
            { name: 'something', desc: 'something', usage: 'something' }
        ]
    };
#

I want to display all the objects in bot array and other arrays in commands(if they exist) in a table

earnest phoenix
#

map the array so it returns an element

grave mist
#

My code was this

                        {Object.keys(this.commands).forEach(i => Object.keys(this.commands[i]).forEach(j =>
                            <tr>
                                <td>{Object.values(this.commands[i][j]).name}</td>
                                <td>{Object.values(this.commands[i][j]).desc}</td>
                                <td>{Object.values(this.commands[i][j]).usage}</td>
                            </tr>
                        ))}
#

But I'm not good with mapping :/

short rock
#

Epic

grave mist
#

Ty

#

I never use map tbh

#

That's why I'm like this

#

Imma read mdn, wait

#

And why forEach doesn't work?

glacial anchor
#

@earnest phoenix i already said all the checks work

#

it breaks right before if (command)

earnest phoenix
#
array#map(entry => (
<element>
  {entry.property}
</element>
))
#

a small example

grave mist
#

Oh thanks :)

#

entry.property tho?

civic kite
#

How do I make my own bot code?

grave mist
#

Mdn says like [key, value], idk what key and value would be

#

I'll log it to check

earnest phoenix
#

i don't know what you're doing

#

but

grave mist
#

Me?

earnest phoenix
#

all you have to do is access the bot array

glacial anchor
#

please dont ignore me here at least

earnest phoenix
#

and forEach doesn't work because it's iterating an array, the method needs to return an array so react can resolve it

grave mist
#
  • other arrays if they exist
#

It will become like this

command = {
  bot: [],
  fun: [],
  ...
}
earnest phoenix
#

that's still not an array though

grave mist
#

For testing, I put bot only but there's lot that'll come there

#

That's an object

earnest phoenix
#

yeah

grave mist
#

Each key the object has contains an array of objects

earnest phoenix
#

i feel like you're overcomplicating this

#

just map commands.bot, commands.fun etc

grave mist
#

Like ```js
command = {
bot: [
{ a: 'a'},
{ b: 'b'}
],
fun: [],
...
}

#

Wait a sec, I don't have to map them all at once tho

earnest phoenix
#

yeah

grave mist
#

It is determined from a dropdown, so I'll better use commands[category]

earnest phoenix
#

yeah that can work too

grave mist
#
                        {this.commands[this.state.dropdown].map(idk => {
                            <tr>
                                <td>{idk.name}</td>
                                <td>{idk.desc}</td>
                                <td>{idk.usage}</td>
                            </tr>
                        }}
#

Syntax error at line 1 end

#

{

#

Idk what to put

#

Nvm

earnest phoenix
#

you're using squiggly brackets instead of parentheses for the return func

grave mist
#
... () => (/*is this return value in arrow function?*/)```
earnest phoenix
#

yes

grave mist
#

It worked finally

civic kite
#

I got IMPORTANT question

grave mist
#

I learned some new things today. Thanks for the help

civic kite
#

How do I make my bot count the server members everytime

earnest phoenix
#

everytime what

civic kite
#

Everytime anyone joins

earnest phoenix
#

which lib are you using

civic kite
#

I'm using the application web

earnest phoenix
#

what

grave mist
#

wut is application web

civic kite
#

673518136854708234

#

That's it

earnest phoenix
#

that's your bots id yes what about it

civic kite
#

I want to let my bot work like that

earnest phoenix
#

click on the link i sent above

civic kite
#

Counting all the joins

#

Ok

#

It's safe? @earnest phoenix

earnest phoenix
#

...it's a discord message link

civic kite
#

Ok

grave mist
#

Also, you know anyway to do these designing of my page automatically lol

earnest phoenix
#

what do you mean?

civic kite
#

When you send it

grave mist
#

I mean like page design will be good in my pc

earnest phoenix
grave mist
#

But won't be in other device having diff resolution

earnest phoenix
#

yes

quartz kindle
#

google responsive design

earnest phoenix
#

since you're using react consider looking into some UI frameworks which have that done for you already

grave mist
#

So I wanted to know whether there's any feature that does this convertion automatically instead of using @media-screen or whatever it is

#

Oh well sorry for the ping

civic kite
#

When you send your link @earnest phoenix

earnest phoenix
#

what

civic kite
#

Your discord message link

quartz kindle
#

lmao

grave mist
#

Is there any UI frameworks that does it?

earnest phoenix
#

:/

#

a lot

grave mist
#

Suggest me a good one

earnest phoenix
#

i use material ui in a lot of my projects

#

people also like to use blueprint and semantic UI

grave mist
#

So what does material UI do?

quartz kindle
#

makes websites look like google

grave mist
#

Like google uh?

#

I wanted to do this: I design for 1 resolution and it will look good in all resolutions

quartz kindle
#

thats called responsive design, and there are millions of ways to do that, and lots of libraries do it in different ways

#

material ui is like an interface style, that both does it for you, and implements their idea of design for you

#

the material style is used by many google products and dashboards

earnest phoenix
#

if your only goal is responsive design you can use foundation

quartz kindle
#

@kindred wadi advertising your own bot = ban

grave mist
#

That's my only goal and idk what is material style tbh

sick apex
#

-owner @lavish flax

#

Goood

summer torrent
#

@coral trellis looks like an ad ^^

sick apex
#

Uh

coral trellis
#

Don't use luca here

sick apex
#

Ok sorry

#

And where I can ?

quartz kindle
summer torrent
coral trellis
#

@kindred wadi Don't send ads, it's against our rules

real apex
#

hello i would like to know if i can host a bot for free? If yes, how ? PS: I am French.

earnest phoenix
quartz kindle
#

google compute engine: free for 12 months
amazon aws: free for 12 months
glitch.com: free but restarts your bot every X minutes (can be worked around)
heroku.com: free but restarts your bot every X minutes (can be worked around)

modest maple
#

^ all of the above bar maybe Google and Amazon will have some very serious issues wuth any sort of high load

grave mist
#

How to style a dropdown?

#

It doesn't work in the usual way for me

#
<select id="select">
  <option value="a">a</option>
  <option value="b">b</option>
</select>
#

I did ```css
.select {
background-color: #fff;
}

earnest phoenix
#

you can't i think

#

you'll have to create your own one which is js based

grave mist
#

Then how it is really styled?

#

Oh

earnest phoenix
#

yup

grave mist
#

wow

earnest phoenix
#

it's why i suggested those ui frameworks - they already have them built and styled and you can most likely change their existing style

grave mist
#

But that material UI seems like I have to use that particular font

earnest phoenix
#

not really

#

it's just included by default

grave mist
#

So it's changed then?

earnest phoenix
#

material ui has a themeing option which allows you to change the font

#

i use poppins in my app

grave mist
#

I use product sans like one

#
@font-face {
    font-family: 'Product Sans';
    font-style: normal;
    font-weight: 400;
    src: local('Open Sans'), local('OpenSans'),
        url(https://fonts.gstatic.com/s/productsans/v5/HYvgU2fE2nRJvZ5JFAumwegdm0LZdjqr5-oayXSOefg.woff2)
            format('woff2');
}
earnest phoenix
grave mist
#

And I really have some trouble tbh when I needed to use small size font http://prntscr.com/qyisz5 and also the bolding change problems, is there any other good fonts that I can use?

Lightshot

Captured with Lightshot

earnest phoenix
#

have you tried changing the font weight

grave mist
#

Yea I did

#

Like 200

#

Or 100

#

It was the least possible one I think

earnest phoenix
#

why don't you just grab opensans from google's cdn

grave mist
#

Wait nvm, it somewhat works

earnest phoenix
#

i'm pretty sure you don't have definitions for other weights

#

also

#

you're not allowed to use product sans

grave mist
#

Yea all I do is font-weight: 100

#

But I'm not using it really

earnest phoenix
#

product sans is under copyright and you can get a DMCA takedown

grave mist
#

That makes it look like that and not real product sans I guess

earnest phoenix
#

i suggest using open sans / nunito sans

grave mist
#

Not so good like product sans tho

earnest phoenix
#

again you're not allowed to use product sans

grave mist
#

kk then

earnest phoenix
#

even if it doesn't look like it, you're still using it

grave mist
#

Which one you use? You mentioned one

earnest phoenix
#

Poppins

grave mist
#

I don't like g in open sans, I want it to look like poppins' g but not use the whole poppins font

#

Finding font is hard tbh

earnest phoenix
#

browse the fonts page until you find something you like πŸ€·β€β™‚οΈ

#

monsterrat is close to product sans but it's wider

grave mist
#

Nunito is better tbh

earnest phoenix
#

looks nice but lacks font weights

grave mist
#

Oh

#

Anyway to add that or changing font is the option?

earnest phoenix
#

you can't add it unless you design the vectors for each character for other weights

grave mist
#

Oh well. That's hard

#

I'll better use nunito sans for now

#

So font-family: Nunito Sans will work?

earnest phoenix
#

where?

grave mist
#
body {
  font-family: Nunito Sans
}
#

I think I have to do @font-face for this too

earnest phoenix
#

select the font on the google site

#

it gives you code you can put in your css

#

though if you plan on using material ui, use their themeing api

grave mist
#

Can you tell me one last time about material UI?

#

I can do responsive design too with that right?

earnest phoenix
#

what about it

#

yeah

#

they offer a ton of components though

#

check their docs

hot sinew
#

Hey,does anyone here have any documentations/wiki about self-hosting a bot on your machine?

I.e specs/internet speeds etc etc.

blissful scaffold
#
Specs: low
Intenet speed: low

Should work for a basic bot

hot sinew
#

πŸ˜‚ Cheers.

blissful scaffold
#

But it depends on what kind of bot you have and on how many servers its active

sinful lotus
#

more like
specs: low / average
internet: can be slow but needs to be stable

grave mist
#

Is there dropdown in material UI @earnest phoenix

#

I can't find one

earnest phoenix
#

yeah

#

use the search bar

grave mist
#

And it seems like I have to build my whole website using their components?

earnest phoenix
#

i mean you can use your own

#

but it's suggested to use theirs

#

because of controlled support and consistency

grave mist
#

So that it'll be responsive right

earnest phoenix
#

yup

grave mist
#

So it has everything that is in html?

earnest phoenix
#

you can edit the css of every component though

#

pretty much everything you need

grave mist
#

Building everything according to them is hard tbh

earnest phoenix
#

what building?

grave mist
#

I mean the tags

#

Changing each tag to match theirs

earnest phoenix
#

what

#

oh- you mean for css?

grave mist
#

Like I use ```jsx
<button class="x"}something</button>

earnest phoenix
#

that's not necessary

#

their components have their corresponding css injected already

grave mist
#

You can send me an example of this?

.x {
  color: red;
}
#

I mean in material UI

earnest phoenix
grave mist
#

And I'm ok with roboto or whatever that font name is

#

But font in my site is diff

earnest phoenix
#

like i already said you can use whatever font you want

#

browse their docs

#

they're very thorough

grave mist
#

I didn't use any font-family in css but they are different

#

Any idea why?

earnest phoenix
#

uh

#

i suggest you just rewrite the website using material ui components

grave mist
#

...

#

What else does material UI has other than responsive design?

earnest phoenix
#

did you ignore the whole part of me saying to browse their docs

grave mist
#

lol I really can't understand much from it

earnest phoenix
#

what do you meaaaan

#

they're very descriptive and thorough

grave mist
#

Like see that font thing

#

They tell the code

#

But where do I put it

earnest phoenix
#

they also say that

grave mist
earnest phoenix
#

you create the theme outside of your App render, then you wrap your App component in ThemeProvider

#

and no, you can just use multiline imports

grave mist
#

What

earnest phoenix
#

import { a, b, c } from 'package'
vs

import a from 'package/a'
import b from 'package/b'
import c from 'package/c'
grave mist
#

You don't get it

#

I use those components in App.jsx

#

I asked whether I should do import Button from '@me..... for each component or what

earnest phoenix
#

what

#

you import the component where you want to use it

grave mist
earnest phoenix
#

...

#

browse their docs it literally has a list of components it offers

grave mist
#

I mean aren't those components just for design?

earnest phoenix
#

well yes and no

#

a lot of components offer stateful/controlled design apis

#

text fields have an onchange event

#

etc etc

grave mist
#

Oh

earnest phoenix
#

which is why i am telling you to browse the docs and i still don't understand why you won't browse them for a bit

grave mist
#

I thought those components are just for design

#

Thanks for the help, I'll try to rewrite

outer niche
#
async def profile(ctx, member : discord.Member):
    l = ", "
    l = l.join(f"{member.roles}")
    profile_picture_url = member.avatar_url
    number = random.randint(1, 100)
    embed = discord.Embed(title="Profile Description", description=f"Requested by {ctx.author}", color=3447003)
    embed.set_image(url=f"{profile_picture_url}")
    embed.add_field(name=f"Roles:", value=f"{l}", inline=False)
    await ctx.send(embed=embed)``` how can i fix the , inbetwe evething
tight plinth
#

.join(' ')

modest maple
#

lamo jesus christ how are you taking a string object and splitting that shit

earnest phoenix
outer niche
#

so insted of this .join(f"{member.roles}") put .join(' ')?????

modest maple
#

i have never seen anyone manage todo that yet lmao

#

@outer niche its a list, tuple

#

each role has an Id, name etc...

#

iterate through said list of roles

#

get name

#

i think thats what u want

outer niche
#

I mean either or would be fine

modest maple
#

i mean one is an awful way of iterating through a list just to get the ending string again

outer niche
#

What's another way I could

modest maple
#

i just told u

#

u can iterate through

#

and get names

#

rather than

#

taking a string

#

and going through

#

everything

#

to split it

#

to then join it

#

to be straight back where you were

#

before you even .join'd anything

outer niche
#

I really just want to fix the issue with , after every letter

modest maple
#

you know thats cuz u made a list right

#

the , is just saying new element

slender thistle
#

l.join(f"{member.roles}")
This is some high IQ stuff I'm ngl

earnest phoenix
#

who know how to do simple gamble bot?

delicate zephyr
#

You should be able to find one on the site

earnest phoenix
#

okay

#

i meant to make one

tight plinth
#

wdym by gamble bot

earnest phoenix
#

like nadeko bot

tight plinth
#

Well

#

Erm...

quartz kindle
#

just use random numbers

earnest phoenix
#

a person did a copy of nadeko

tight plinth
#

Just use api

#

@earnest phoenix hakker

earnest phoenix
#

with level 3 server?

quartz kindle
#

anyway if you want to make a bot, do you have any programming experience?

earnest phoenix
#

nope that why im here

#

i wanna learn to code

quartz kindle
#

well, first you need to pick a programming language and learn some basics

#

try websites like codecademy

earnest phoenix
#

making a bot isn't the place to start pepowot

#

rip me

delicate zephyr
earnest phoenix
#

i just only want to own an gamble bot

#

similar to nadeko

quartz kindle
#

thats the thing, there is no "just"

modest maple
#

then u gonna need

#

a lot of programming

quartz kindle
#

bot programming is complex

modest maple
#

knowledge

earnest phoenix
#

damn

quartz kindle
#

if you want to "just" own a bot, look into tools like discord bot maker, or services that do it for you like botghost

earnest phoenix
#

botghost?

quartz kindle
#

but be aware that those are not supported here, and your bot wont be allowed to be listed on top.gg

#

botghost is essentially a service that creates a small simple bot for you and you just customize it by using templates

earnest phoenix
#

damn#

marble juniper
#

I don't recommend using botghost out of every other service because you have a watermark and basically its impossible to make an economy system on it

earnest phoenix
#

idk if im gonna risk it tho

#

damn

#

i only want to make economy bot

#

DBM is paid and not as good as coding it yourself but it at least has some decent power to it

marble juniper
#

you can try dbm

#

it does support storing data

#

wich then allows you to make economy

#

maybe not as efficient as coding but yeah

earnest phoenix
#

that the prob

#

idk how to make economy

marble juniper
#

I used dbm before I switched to coding

earnest phoenix
#

sorry if im being stupid

marble juniper
#

They have a support server

quartz kindle
#

economy is basically just math and storage

marble juniper
#

yes

earnest phoenix
#

ah

grizzled raven
#

@earnest phoenix a bot was how i started coding LUL

marble juniper
#

same

earnest phoenix
#

u guys know how to make economy?

grizzled raven
#

get a database

#

or

marble juniper
#

you just need a database and the basic math

grizzled raven
#

learn to code first

quartz kindle
#

as i said, if you know math, and how to use a database or any storage system, you can do it

grizzled raven
#

get used to a programming environment

earnest phoenix
#

You can start coding by making a bot but in a perfect situation its not ideal OMEGALUL

marble juniper
#

It can take some time for you to get into it

earnest phoenix
#

hmm

#

what the best website to learn coding

#

When I first started using JS I made a bot but I had plenty of previous knowledge

marble juniper
#

depending how fast u learn

quartz kindle
#

anything that isnt youtube

earnest phoenix
#

lmao

#

i can learn fast

#

depending how it teaches

quartz kindle
#

well, first step is to chose a programming language

lusty quest
#

is it possible to create a chart inside of node.js to display it with a Embed?

marble juniper
#

I recommend node.js

quartz kindle
#

popular user-friendly languages are C#, Javascript, Java and Python

#

take a look at each of them, and see if you like some

marble juniper
#

but there is also python, java and many other

earnest phoenix
#

is notepad++ good?

quartz kindle
#

its decent

lusty quest
#

better than ms notepad

earnest phoenix
#

okay

#

so it for starter?

quartz kindle
#

better than wordpad

#

xD

marble juniper
#

you can also try visual studio code its pretty good

earnest phoenix
#

oh yh

#

that the name i forgotted

quartz kindle
#

notepad++ is good, very fast and supports styling and plugins, so it can do most of what others do,, even if not as well. but in the end, its just an editor, it wont make or break your code

earnest phoenix
#

what about visual studio

#

i got it installed

marble juniper
#

you can also view info about what some code does by hovering over the spot its pretty cool

#

(in visual studio code)

quartz kindle
#

its also a good code editor, more advanced than nodepad++

earnest phoenix
#

nice

#

i'll start with vsc

marble juniper
#

also you can use custom themes and other plugins

earnest phoenix
#

niceee

sudden geyser
#

or any jetbrains ide

marble juniper
#

or that

#

but its up to you

earnest phoenix
#

i rather vsc

quartz kindle
#

now the first thing you need is to setup your environment. for example if you chose to go with Javascript, you will need a javascript environment like node.js. if you go with python, you need to install python, etc...

earnest phoenix
#

jetbrains ide's are pretty nice

#

okay what i need for vsc (visual studio code)

quartz kindle
#

vsc is just the editor, you need to chose a language

marble juniper
#

you need to choose the language you want to write the bot in

quartz kindle
#

and install the environment for that language

#

vsc supports many environments and languages

marble juniper
#

I recommend javascript since its pretty simple

earnest phoenix
#

oh im dumb

#

what the best easy program i can start with

quartz kindle
#

when chosing a programming language, you should look at the long term, what kind of skill do you want to learn for life?

earnest phoenix
#

id

#

idk

marble juniper
#

for L i f e

quartz kindle
#

for example, Javascript is suited for web programming and website applications. if you like that, its the ideal language to learn on the long run

marble juniper
#

aka the websites you see

quartz kindle
#

C# is better suited for windows applications and software

#

Java is good for servers and infrastructure

earnest phoenix
#

ngl i just only want to make economy bot loo

#

lol*

quartz kindle
#

Python is good for general programming and calculations

marble juniper
#

well

#

if you want to do more than an economy bot soon

lusty quest
#

get DBM its pretty simple if it is just an economy bot

earnest phoenix
#

okay what dbm stand for

lusty quest
#

they got it even pre compiled somewhere

quartz kindle
#

discord bot maker

earnest phoenix
#

okay

lusty quest
#

used it before but it was to limited for me.

marble juniper
#

same

quartz kindle
#

i've never used it lul

marble juniper
#

you have many possibilitys in it but soon you will reach your limits

lusty quest
#

its braindead javascripting

earnest phoenix
#

damn

marble juniper
#

^

#

above Webster's msg

quartz kindle
#

well, dbm can teach you some very basic javascript so why not give it a try

marble juniper
#

oh and you can run custom code in dbm too

#

thats an option

glacial anchor
#

the simplest language to start with is indeed Python, as its syntax is very simple. but, as its interpreted, its gonna be slower than other languages

earnest phoenix
#

damn it hard ngl

lusty quest
#

not really you get a gui where you set one snipped that you fill out in an other gui

quartz kindle
#

python is weird af

#

xD

marble juniper
#

yeah

#

but there is a option for custom code

glacial anchor
#

ive had a bad experience with python, and it was hard moving on javascript from it

marble juniper
#

besides the other things

glacial anchor
#

never coming back

modest maple
#

@quartz kindle ur weird AF

quartz kindle
#

<3

modest maple
marble juniper
#

this is wierd ad

earnest phoenix
#

i'll try find how to make economy bot on tr

marble juniper
#

*af

earnest phoenix
#

yt*

marble juniper
#

no

#

NO

lusty quest
#

javascript is relative easy to learn. got the basics after 3 days or so

modest maple
#

NO

glacial anchor
#

@modest maple i mean using tabs and colons to make an if statement

marble juniper
#

NOOOO

glacial anchor
#

it does not work like that in other langs

modest maple
#

NOONONONOO

#

YOUTUBE IS YOUR HELL

marble juniper
#

ANYTHING BUT YOUTUBE

lusty quest
#

anidiotsguide is not bad

marble juniper
#

yes

#

try it

glacial anchor
#

@earnest phoenix first of all, decide the language

#

anidiotsguide is mainly js @lusty quest

lusty quest
#

i know

earnest phoenix
#

idk im stressed due to school exams

glacial anchor
#

@marble juniper i hope youre sarcastic

marble juniper
#

yes

modest maple
#

use clojure

#

lmao

marble juniper
#

use html

glacial anchor
#

nah use brainf*ck

marble juniper
#

use css

quartz kindle
#

restcord for php

sudden geyser
#

css has the best error descriptions tbh

marble juniper
#

css to style your bot

glacial anchor
#

ok stop im gonna puke

earnest phoenix
marble juniper
#

lol

glacial anchor
#

code it straight up in binary code

marble juniper
#

make it in jsfuck

#

where hi is 4k characters

lusty quest
#

brainfuck?

quartz kindle
#

imagine a hardware discord library

marble juniper
#

brainfuck but javascript

lusty quest
#

nice

glacial anchor
#

wouldnt that be cool doe @quartz kindle

marble juniper
lusty quest
#

use Cow

quartz kindle
#

plug it in via usb, install it as a driver and run it

glacial anchor
#

epic idea

earnest phoenix
#

well

marble juniper
#

jsfuck best encryption

earnest phoenix
#

its an idea

glacial anchor
#

imagine assembler discord lib

lusty quest
#

wtf is whitespace

quartz kindle
#

a programming language that only uses spaces

lusty quest
#

i know. but debugging the code is stupid

quartz kindle
#

being stupid is the point of the entire language

glacial anchor
#

no, not stupid

#

people are making those for fun

quartz kindle
#

because stupid is fun

glacial anchor
#

that language that uses emojis only was kind of fun

lusty quest
#

and Cow is binary but with 3 letters

quartz kindle
#

my favorites are chef and shakespeare

glacial anchor
#

i tried making my own language based on Python which used only cuss words

quartz kindle
#

and of course the classic LOLCODE

glacial anchor
#

got stuck on the lexer and abandoned later on

quartz kindle
#

i can has stdio

glacial anchor
#

ah yes lolcode

earnest phoenix
#

theres a language that revolves around fetishes

#

id link it but I dont wanna get banned HYPEROMEGALUL

glacial anchor
#

OKTHXBYE

#

@earnest phoenix bruh dm

#

who even makes those

grizzled raven
modest maple
amber fractal
#

Outline?

earnest phoenix
#

or border

slender thistle
#

It's the bot avatar's border

modest maple
quartz kindle
#

its a box-shadow

glacial anchor
#

try border: none;

quartz kindle
#

also for border it should be ^

glacial anchor
#

i dont know if it is gonna work, didnt do css in months

modest maple
#

neither have i

#

xD

quartz kindle
#

do box-shadow:none

modest maple
#

wait fuck

quartz kindle
#

also mind the specificity

modest maple
#

am i gonna need to do the !important i think it is>

quartz kindle
#

the original box-shadow has a specificity of 2 classes

#

.columns .bot-image

#

your css needs equal or higher specificity

#

more specific selectors override less specific selectors

modest maple
#

hmm

#

ah

#

the !important made it tick over

#

thanks tim

quartz kindle
#

smh abuser

modest maple
#

i should get back into CSS and html tbh

#

xD

quartz kindle
#

the css community hates !important abusers

#

lmao

slender thistle
#

Abuse all !importants

glacial anchor
#

stop the vibing in testing 1

#

ty

amber fractal
#

Just because it compiles stupidly I use it

snow pine
#

Btw. I made my reddit command if its not an reddit i whitelisted to nsfw but some meme reddits are whitelisted and can be displayed without nsfw setting in the channel

#

Is thia ok? What you think here

marble juniper
#

only thing wich matters is that your bot doesn't send nsfw content in a non-nsfw channel

unique nimbus
#

Reddit has NSFW content, what have you done to stop it from sending?

#

NSFW content is not allowed in Non-NSFW Channels

blissful scaffold
#

I think reddit also has a NSFW tag for NSFW content, but I never worked with their API

unique nimbus
#

Reddit does have a NSFW tag

#

Not seen it in their API as I haven't used it

marble juniper
#

well I have seen in bots like mee6 that besides the reddit post content there is an nsfw tag

#

so I suppose you can check if it has an nsfw tag

unique nimbus
#

yes

amber fractal
#

Not all things are tagged properly either

#

Lock it regardles

quartz kindle
#

does anyone know a json formatter that can be customized on a per level basis?

#

like keep 1st and 2nd levels on new lines, but keep 3rd levels in a single line

#

actually nvm, jsonlint doesnt exactly what i want even tho it has 0 configuration lmao

heavy grotto
#

Anyone here very good at coding Discord bots? Message me if so

#

Would be paid work ^

broken ruin
#

Anyone have experience in (play music in voice channel) ? Discord.js

summer torrent
#

ask your question and wait for someone who can answer to help you

timid blade
#

is there a way i can have discord accept OAuth redirects with varying GET parameters?

earnest phoenix
#

what do you actually want to do

obtuse wind
#

How would I set "message.member.hasPermission" with permission ID?

#

hasPermissionID is causing "invalid permission string or number"

#

( NPM, Node.js, Discord.js, Windows 10 ) etc blah blah for anyone curious

knotty steeple
#

whats the fastest node.js http client

obtuse wind
#

oh hasPermissionID isn't a function my bad

knotty steeple
#

ive been using request but its kinda bulky and slow

#

and ive tried nodefetch but i wanna know if there is anything better

sudden geyser
#

request calascared

#

I like to use node-fetch myself, but look up phin.

#

I don't know the "fastest" (and there's probably no good way of determining it)

lone garnet
#

pleeease help me code my bot, im going crazy trying to do it myself

obtuse wind
#

@lone garnet uh try using Youtube?

If you do not want to start it from scratch like the rest of us, YT is a good option, otherwise github.

lone garnet
#

ooof i just want my server to workkkkk

sudden geyser
#

YouTube is a ShoukoNononono option.

knotty steeple
#

youtube for what

#

you're gonna have to learn on your own

sudden geyser
#

learning bot development

#

You should learn a programming language you want to use then refer to the docs of a Discord library for it.

twin pendant
#

yeah, youtube tutorials are great for starting but once you get more into it the docs are a lot better imo

snow pine
#

@unique nimbus i can check if the post has nsfw but if someone create an own subreddit and post there nsfw without marking it it wouldnt trigger

fiery stream
#

Uhh

#

Ohh

earnest phoenix
#

can someone tell me y my bot ping so high

#

@earnest phoenixping

modest maple
#

Internet or blocking code

#

There u go

lusty quest
#

does someone got it working to get a chart created with chartjs-node-canvas attached to an Embed?

earnest phoenix
#

Has anyone seen this error and know whats happening. Python3

Error in data transfer
Traceback (most recent call last):
  File "C:\Users\gunzb\AppData\Local\Programs\Python\Python38-32\lib\site-packages\websockets\protocol.py", line 528, in transfer_data
    msg = yield from self.read_message()
  File "C:\Users\gunzb\AppData\Local\Programs\Python\Python38-32\lib\site-packages\websockets\protocol.py", line 580, in read_message
    frame = yield from self.read_data_frame(max_size=self.max_size)
  File "C:\Users\gunzb\AppData\Local\Programs\Python\Python38-32\lib\site-packages\websockets\protocol.py", line 645, in read_data_frame
    frame = yield from self.read_frame(max_size)
  File "C:\Users\gunzb\AppData\Local\Programs\Python\Python38-32\lib\site-packages\websockets\protocol.py", line 706, in read_frame
    frame = yield from Frame.read(
  File "C:\Users\gunzb\AppData\Local\Programs\Python\Python38-32\lib\site-packages\websockets\framing.py", line 100, in read
    data = yield from reader(2)
  File "C:\Users\gunzb\AppData\Local\Programs\Python\Python38-32\lib\asyncio\streams.py", line 723, in readexactly
    await self._wait_for_data('readexactly')
  File "C:\Users\gunzb\AppData\Local\Programs\Python\Python38-32\lib\asyncio\streams.py", line 517, in _wait_for_data
    await self._waiter
  File "C:\Users\gunzb\AppData\Local\Programs\Python\Python38-32\lib\asyncio\proactor_events.py", line 280, in _loop_reading
    data = fut.result()
  File "C:\Users\gunzb\AppData\Local\Programs\Python\Python38-32\lib\asyncio\windows_events.py", line 808, in _poll
    value = callback(transferred, key, ov)
  File "C:\Users\gunzb\AppData\Local\Programs\Python\Python38-32\lib\asyncio\windows_events.py", line 453, in finish_recv
    return ov.getresult()
OSError: [WinError 121] The semaphore timeout period has expired
modest maple
#

It's a windows error

#

Basically fucks async stuff

#

And not much you can really do except maybe try a different Py version e.g use 64 bit not 32

cinder patio
#

is hosting a bot on a raspberry pi 4 a good idea?

uneven wyvern
#

depends on the bot size, it's good for little bots but not for big bots

cinder patio
#

how big πŸ€”

quartz kindle
#

how much ram does your pi have?

ember scaffold
#

How do you use the bot???

earnest phoenix
#

the bot

ember scaffold
#

Ya

#

Like how do you use the commands???

#

What are the commands

weak parrot
#

Unless you're talking about Luca/DSL this is probably not the right server. This channel also wouldn't be the correct place to ask

#

-wrongserver

gilded plankBOT
#

Hey! We think you have our server mistaken.
We do not provide support, help, or advice for any bot.
You need to click on the "Support Server" button on the bot's page, not the "Join Discord" button at the top of our website. If there isn't a button that says Join Support Server, then we can't help you. Sorry :(

ember scaffold
#

It's the dice bot it said to come to this server with questions

delicate zephyr
#

@ember scaffold you clicked the "Join Discord" in the nav bar

#

you need to click "Join Support Server"

ember scaffold
#

0-0 oh

#

-.- I cant find it

frank wyvern
#

Does anyone know a way in Discord.py to differentiate between desktop and mobile. Im using embed tables and they separate on mobile?

modest maple
#

I honestly don't know if d.py actually has support to see if the user has mobile or nit

earnest phoenix
#

Actualy discord doenst have any api way for this

#

But this can be a suggestion

quartz kindle
#

the api supposedly has a client_status field in the presence packet

#

which contains desktop/mobile/web

earnest phoenix
#

Really?

#

πŸ€”

quartz kindle
earnest phoenix
#

Mmmh ty

quartz kindle
#

or actually i misread

#

it seems that the client_status should contain an object like this

#
{
  mobile: online
  desktop: idle
}```
earnest phoenix
#

Nice ty this is helpfull

quartz kindle
#

Active sessions are indicated with an "online", "idle", or "dnd" string per platform. If a user is offline or invisible, the corresponding field is not present.

modest maple
#

@frank wyvern

quartz kindle
#

but keep in mind that the person could be online in both mobile and desktop, and be using discord on desktop

modest maple
#

Yh

quartz kindle
#

so formatting things specific for one or the other is not really worth bothering

solemn harness
#

i use the right format
.setTitile()
.setColor()
.setDiscription(0
& so on

marble juniper
#

setTitile

twin pendant
#

its .setDescription()

#

and that \ /

marble juniper
#

*.setTitle

#

english ma boye

solemn harness
#

uffff

summer torrent
#

setDiscription is a wrong

#

it is setDescription

solemn harness
#

oh

#

ty

marble juniper
#

like gorillaa and me said

summer torrent
#

also you can only put 1 setDescription

solemn harness
#

ok

summer torrent
solemn harness
#

yea i just read it

#

ty

green kestrel
#

Building 3631 actions with 6 processes...
REEEEEEEEEEEEEEEEeeeeeEEEEEEEE unreal engine

quartz kindle
#

its... unreal...

iron scroll
#

How turn on Server Count function on top.gg?

mossy vine
shadow dust
#

Hello, ive been trying to http get images from discord attachment urls, unfortunately I keep receiving warnings that I need to "enable cookies" from cloudflare/discord.
https://i.imgur.com/6EHLfIt.png

Im not setting any crazy headers or anything. If anybody know what header im supposed to set for this to work itd be great.

modest maple
#

Pretty sure you can only access files that you share a server with

earnest phoenix
#
let raison = message.content.replace(",", "σ €€σ €€").split(" ").slice(3)```

Why i have these `,` with the replace and without...?
shadow dust
#

@modest maple are you sure? Im able to open these images in my browser where im not logged in

earnest phoenix
#

resolved

mossy vine
#

using d.js master

const { Client } = require('discord.js')

const client = new Client()
    .on('ready', _ => {
        // how can i get my client object here?
    })
    .login()```
#

client is a Promise { <token> }

quartz kindle
#

try console.log(this)

mossy vine
#

{}

quartz kindle
#

try a normal function instead of an arrow function

mossy vine
#

yeah that works

#

but is there any other way

quartz kindle
#

not afaik

#

what kind of way are you looking for?

mossy vine
#

i guess i could do client.on instead

#

well no clue, just dont really understand why client is a Promise there

quartz kindle
#

because client is defined client.on.login

#

thus the client variable becomes the result of .login()

mossy vine
#

ohh

#

makes sense

#

okay now i absolutely dont understand this

#

new Client().login() still makes client a promise in client.on('ready')

quartz kindle
#

because login returns a promise

#

you probably want to do this instead js const client = new Client() .on() .on() .on(); client.login()

brisk meadow
#

@somber mesa

#

@earnest phoenix

scenic kelp
lusty quest
#

is there an way to set an image in a buffer as image for an embed in .js?

mossy vine
#

@quartz kindle ohh yeah that makes sense, thank you

quartz kindle
#

@lusty quest you need to use both setAttachment and setImage

lusty quest
#

yea just found a Github issue that told me this 5 minutes ago

#

but thanks

modest maple
#
[20/02/06 | 17:07:05] Shard Disconnect
[20/02/06 | 18:58:54] Shard Disconnect
[20/02/06 | 19:46:51] Shard Disconnect
[20/02/06 | 19:58:37] Shard Disconnect
[20/02/07 | 01:31:24] Shard Disconnect
[20/02/07 | 01:55:20] Shard Disconnect
[20/02/07 | 11:16:35] Shard Disconnect
[20/02/07 | 11:52:47] Shard Disconnect
[20/02/07 | 12:18:48] Shard Disconnect```
#

gj discord

#

stable as always

earnest phoenix
#

@modest maple any perks as booster

modest maple
#

i can change my name

#

thats about it

blissful scaffold
#

And I think you get a special channel when you boost

lusty quest
#
    const attachment = new Discord.MessageAttachment(image, "image.png");
    let embed = new Discord.RichEmbed()
    embed.attachFile(attachment);
    embed.setImage("attachment://image.png");``` what is wrong with this? the image is buffered but the embed say its a string
quartz kindle
#

are you using v11 or v12?

#

because in v11, attachments should be new Discord.Attachment(), and in v12 embeds should be new Discord.MessageEmbed()

#

MessageAttachment is for v12 and RichEmbed is for v11

lusty quest
#

v12

#
Uncaught Promise Error: 
TypeError: The resource must be a string or Buffer.
    at ClientDataResolver.resolveFile (W:\Discord Bots\Captain-Vor-Production\node_modules\discord.js\src\client\ClientDataResolver.js:278:27)
    at Promise.all.options.files.map.file (W:\Discord Bots\Captain-Vor-Production\node_modules\discord.js\src\structures\interfaces\TextBasedChannel.js:167:30)
    at Array.map (<anonymous>)
    at TextChannel.send (W:\Discord Bots\Captain-Vor-Production\node_modules\discord.js\src\structures\interfaces\TextBasedChannel.js:166:40)
    at Object.exports.run (W:\Discord Bots\Captain-Vor-Production\commands\playerchart.js:61:21)```this is the exact error
quartz kindle
#

are you sure you're on v12?

lusty quest
#

it should

quartz kindle
#

ClientDataResolver doesnt exist in v12

#

but it does in v11

lusty quest
#

wait why tf did i run in node 10.....

quartz kindle
#

btw i mean discord.js version, not node version

lusty quest
#

ok im still at 11 i thouth i was at 12

quartz kindle
#

ok, so in v11 it should be new Discord.Attachment()

summer torrent
#

can I use data URI scheme on embed?

#

as image

earnest phoenix
#

no

stoic vault
#

i cant get webhook to post in server please help

earnest phoenix
#

context

stoic vault
#

I am trying to connect tradingview alerts to one of my channels. I have created webhook and added it for the alerts but still nothing

earnest phoenix
#

having a webhook doesn't mean it will suddenly post by itself lol

stoic vault
#

I pasted the webhook into where the alert tells you to put it and then it should push the alert to the webhook when its triggered

#

right?

earnest phoenix
#

i have no idea what you're talking about

stoic vault
queen violet
#

the webhook needs to support discords format to work

earnest phoenix
#

are you sure they support discord

#

yeah

stoic vault
#

I have seen others have the notifications come through discord, I assumed this was how

#

How can I format it so it will work?

earnest phoenix
#

people build their own middleware for that

#

service posts to user's server, user's server posts to webhook

stoic vault
#

how do I use that?

earnest phoenix
#

the docs say how to

#

POST to the endpoint with required json params in the request body

stoic vault
#

where do put in all of the params?

earnest phoenix
#

what

stoic vault
#

How do I put all of this stuff into the webhook

quartz kindle
#

you dont

stoic vault
#

how do I post to the endpoint?

quartz kindle
#

that website above explains how discord webhooks are formatted. the websites and services that will send webhooks to discord need to support that format, if they dont, you need to send the webhook somewhere else to translate the webhook from one format to another, ie from your website's standard format to discord's format

stoic vault
#

ahh okay thanks @quartz kindle so is there something I use to do this?

summer torrent
#

@stoic vault what do you want to do? Post server count to top.gg?

quartz kindle
#

there are a few services that translate webhooks, i think IFTTT does that

stoic vault
#

@summer torrent no Im trying to get a webhook to work

#

I will try out IFTTT

slender thistle
#

It kinda does support them

stoic vault
#

i cant figure this out

quartz kindle
#

try this

#

send your webhook to here, so you can see what it actually looks like

#

then compare it with the discord webhook docs

inner slate
#

Okay, so I have a bot that's pretty much ready to be used outside of my server but it requires Manage Channels(as it creates a channel for matches to take place in) and Manage Messages(because it deletes commands and deletes and/or modifies responses after a certain amount of time in certain cases) so I don't ever expect it to make it into this server.

What is the best way to get it out there for people to see? If I posted this in the wrong place, I do apologize. I'll gladly move it to the right place.

slender thistle
#

It will be invited to this server but without permissions

inner slate
#

that's the problem, the core features need those two permissions. That's why I was asking what other alternatives do I have to get the bot out there.

slender thistle
#

Really just making sure your bot states what permission it needs

inner slate
#

oh?

slender thistle
#

The bot being in this server doesn't exactly do much, your bot will still be listed on the website

inner slate
#

ahh, ok

#

yeah, I don't need it to actually make it into this server

slender thistle
#

I mean if the bot doesn't have, let's say, Manage Channels permission, make it state explicitly state that

inner slate
#

touche

slender thistle
inner slate
#

thank you shivaco

slender thistle
#

πŸ‘

fiery stream
quartz kindle
#

forms are a pain in the arse

stoic vault
#

@quartz kindle all of those webhook translators have limited amount of triggers, do you think it’s possible of making a bot within discord that could perform this function?

earnest phoenix
#

a bot is useless in that situation

#

you need to host a webserver

#

that way you can put your url

#

the webhook gets sent to your webserver

#

your webserver translates it to a discord webhook and executes it

quartz kindle
#

or have the webhook be sent to your bot and have your bot post it himself lol

earnest phoenix
#

but why

#

that's overkill because you'd still need a webserver to intercept the webhook

quartz kindle
#

because its probably easier for him

#

lmao

earnest phoenix
#

ummm can someone help me?

summer torrent
#

do not ask2ask

earnest phoenix
#

umm i need help.....

summer torrent
#

ask your question and wait for someone who can answer to help you

earnest phoenix
#
let logsChannel = message.guild.channels.find(channel => channel.name === `logs`);
logsChannel.send(`This channel has been set as the logs channel!`);

So i wrote this to find the channel, it worked the first time i wrote it but suddenly it stopped working. I havent changed anything

sudden geyser
#

does the channel in that server? what happens when you run it?

summer torrent
#

any error?

earnest phoenix
#
(node:4) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'send' of null

this is the error i receive