#development

1 messages Β· Page 496 of 1

earnest phoenix
#

which is a pretty broad question

#

but 18.04 ubuntu is fine for you

#

most likely

#

so far i opened linux then i don sudo apt-get update then i done sudo apt-get install apache2

#

then what do i do? i dont know

empty bloom
#

@earnest phoenix you suck my dick

earnest phoenix
#

@earnest phoenix mega is being mean to me

empty bloom
#

tell marco to also suck my piss

earnest phoenix
#

bro shut up

empty bloom
#

i dont know how you are talking while you should be sucking my dick

earnest phoenix
#

??

#

no

#

he is being me mean to me

empty bloom
#

@earnest phoenix i'm gonna beat you ass when after you suck my dick

earnest phoenix
#

@earnest phoenix bro you eaither take action or i will reply to this dude

vocal meteor
#

xD

empty bloom
#

i will take action after you suck my piss too

vocal meteor
#

@empty bloom I think you will get banned soon

earnest phoenix
#

oh man thank you

vocal meteor
#

congrualations

earnest phoenix
#

i also got a report

#

this bot dmed me out of nowhere

#

@earnest phoenix tom so what is my next step?

#

i installed apache2 on my linux

#

i can help u with errors but im not a tutorial

vocal meteor
#

hmm but google can may be

earnest phoenix
#

oo, but a tutorial would be nice i dont know if i was meant to even upload my website on the www directory

#

@vocal meteor ask your friend google to find me a tutorial then

#

lets see

vocal meteor
#

title

earnest phoenix
#

how host a website on linux

#

none of those youtubers

#

tell you how to host it they tell you how to install it

vocal meteor
#

what do you use ubuntu or kali

earnest phoenix
#

ubuntu 18.04

#

@vocal meteor seee google doesnt always help

vocal meteor
#

hmm i am trying

#

Is that ok

earnest phoenix
#

i watched some of those ones

vocal meteor
#

hmm xD

#

My friend @tidal ridge failed to help you Thonk

#

-bots @tidal ridge

gilded plankBOT
#

Bots don't have bots, silly.

remote fractal
vocal meteor
#

wadu heck @remote fractal

earnest phoenix
#

css backgrounds

#

@vocal meteor i have been through those videos

#

and its hosted on local ip

#

on public man

vocal meteor
#

hmm you want to host it publicaly

earnest phoenix
#

yes

#

sir

#

thats the whole point

#

this makes me feel sad

vocal meteor
#

Sorry, friend i also don't know

#

even i don't use linux

earnest phoenix
#

aaaaaaaaaaaaaa

#

bro this is why i gave up an gravy calls me lazy

vocal meteor
#

what you want to do with apache2

#

dashboard

earnest phoenix
#

i want to host

#

my website

#

using apache2

vocal meteor
#

hmm you can purchase a domain and host with cpanel

#

also

earnest phoenix
#

i have a domain

#

infact my website is hosted on another vps

#

but i want to learn how to do it

#

here i will dm you my website

vocal meteor
#

ok

earnest phoenix
#

i cant

#

lol

#

type that up

vocal meteor
earnest phoenix
#

is that your website?

vocal meteor
#

yeah

earnest phoenix
#

looks mad

#

idk if i like it mroe

vocal meteor
#

xD

earnest phoenix
#

than my one

vocal meteor
#

theme is nice

earnest phoenix
#

but

#

look

#

its not secure

#

mine has the lock

#

on it

vocal meteor
#

yeah doesn't have ssl certificate

earnest phoenix
#

yeah

#

i can see

#

how are you hosting it

vocal meteor
#

for dashboard //dead database for website cpanel //active

earnest phoenix
#

@tidal ridge @magic anchor help me host my website on you guys

#

is it free @vocal meteor

vocal meteor
#

yes glitch is free you can create number of projects as you want

earnest phoenix
#

mmmmm

#

but isn't good for hosting Discord bots

vocal meteor
#

@tired rose is hosted on glitch

earnest phoenix
#

?

#

he;[ me

#

help me

vocal meteor
#

hello express

earnest phoenix
#

then what

vocal meteor
#

dm me the url

earnest phoenix
#

why are you hacking me

vocal meteor
#

as you wish

earnest phoenix
vocal meteor
#

accept my request to join rg

earnest phoenix
#

@vocal meteor can we talk voice to voice

#

bro

#

we have got closer than just being discord people

vocal meteor
#

well my datapack is over my internet is too slow

earnest phoenix
#

its fine

#

lets talk

#

join general

vocal meteor
#

see it

earnest phoenix
#

@vocal meteor

vocal meteor
#

xd the website doesn't open for me

earnest phoenix
#

why not

vocal meteor
#

finally website opened

#
A socket error occurred during the Upload test. A firewall could be blocking the connection or the server might be having some issues. Please try again later. ```
#

xd

earnest phoenix
#

@tough lark what have you done

#

omg

#

my ears

tough lark
#

that

earnest phoenix
#

this is rape

tough lark
#

was a mistake

earnest phoenix
#

i think we are breaking discord

tough lark
#

i dnt expect that

earnest phoenix
#

its lagging for me

tough lark
#

not sure why

earnest phoenix
#

@tough lark join back

tough lark
#

no thanks

earnest phoenix
#

why not

tough lark
#

well

#

for one

#

i like my ears

earnest phoenix
#

aaaaaaaaaaaaaaaaaaaaaaaaaa . omg i wanna explode rn

#

this is getting on my nerves

#

ITS TREGIGERING ME

#

SOOOOOOO BAD

#

I WILL BREAK EVERYTHING

vocal meteor
earnest phoenix
#

I SAW THAT

#

sorry for caps

vocal meteor
#

nope

#

i mostly use caps

knotty steeple
#

how to make it actually install

topaz fjord
knotty steeple
#

sudo dpkg --configure -a this gave no output though Thonk

earnest phoenix
#
UnhandledPromiseRejectionWarning: DiscordAPIError: 404: Not Found
warning.js:18
    at item.request.gen.end (c:\Users\adamh\ModoBot\node_modules\discord.js\src\client\rest\RequestHandlers\Sequential.js:79:15)
    at then (c:\Users\adamh\ModoBot\node_modules\snekfetch\src\index.js:215:21)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:189:7)```
#

hey guys

#

I'm getting this error using discord.js

#

anyone got the same?

#

so uhh

#

whats the code mate

#

just a simple client.login(token)

#

token is defined

#

no for the uhh

#

warning.js

#

wat

#

because that's where problem says its at

knotty steeple
#

its a discord api error

earnest phoenix
#
return console.error(message);```
#

yea

#

is it general rn though

#

that's line 18 of warning.js

#
function writeOut(message) {
  if (console && typeof console.error === 'function')
    return console.error(message);
  process._rawDebug(message);
}```
#

that's the surrounding function

#

@knotty steeple are you getting api errors?

knotty steeple
#

no

earnest phoenix
#

you're using the latest discord.js?

knotty steeple
#

11.4.2

earnest phoenix
#

how do I view my version?

#

npm version discord.js?

#

mope

knotty steeple
#

just require discord.js and get version

earnest phoenix
#

um

#

11.4.2

#

yea

rustic axle
#

node_modules/discord.js/

earnest phoenix
#

wait a sec

rustic axle
#

There should be a 3 line file with client version

knotty steeple
#

something on your end probably

#

tho

rustic axle
#

Yeah

earnest phoenix
#

not codewise?

#

omh

#

fixed it

#

sorry about that guys

#

accidentaly had owner: ' '; for the client constructor

rustic axle
#

Just delete all of your node_modules and reinstall using npm

queen fog
#

How do I learn coding?

#

Coding on android 5.1

earnest phoenix
#

When I uploaded my bot to a Linux server, it lost the ability to play audio files. Any reason for this?

NodeJS and NPM versions are not the interference.

gilded blaze
#

You probably had some external dependencies which need to be installed on your Linux server

kindred jewel
#

If I were running my bot from the command line on a windows desktop, is it possible to have it execute autohotkey scripts? is it possible to do that through javascript at all?

#

I was thinking, if it was running off a dedicated pc and that was possible - it would open up many many possibilities

zealous veldt
#

I think if there is an AHK CLI, you could use an exec

rustic axle
#

Wth why would you want to do that

#

Oh nvm remote access

kindred jewel
#

Well here's one thing I was thinking you could do with that, if you had a bunch of small ahk scripts and you executed them in the correct order you could make the bot do something like, open up mspaint, copy paste some different images onto the canvas, type up some text boxes on top etc, save the image and then post that into the chat of the server your in, you could potentially communicate everything to the users with fancy looking images, instead of just using text / embeds or whatever

gilded blaze
#

That sounds like canvas, but way harder

kindred jewel
#

whats canvas? 99% of my coding experience before learning this stuff is making C# unity games

gilded blaze
kindred jewel
#

oh so this does pretty much exactly what I was thinking of?

#

cool πŸ˜ƒ ill look into it

#

ty

restive silo
#

@kindred jewel if you know C# why not make a bot in that lang?

kindred jewel
#

Can I do that? I hate javascript already, but ive already coded a whole music bot with it as a learning exercise lol

restive silo
#

sure

#

there are C# libs for making discord bots

rustic axle
#

Yeah its just that there is more docs on Discord.js

restive silo
rustic axle
restive silo
#

yea but if you know C# then you get easily into Discord.Net

#

and it also has docs

#

even tho they aren't always up to date

#

these are C# bindings to ImageMagick whats a popular image manipulation lib written in C

kindred jewel
#

damn, thank you guys so much πŸ˜„

restive silo
#

πŸ‘

#

even tho i agree d.js has mostly the best docs thats no reason to not use a langauge you already know since you can do way more in a langauge you are familiar with already then some new lang

rustic axle
#

^

earnest phoenix
#

I load a JSON file into a variable. The only issue is its size (around 50GB). Any way to decrease this size?

#

It causes a glitchy glitchy

hidden ginkgo
#

I don't think the size is the only issue there lmao

tough lark
#

50GB JSON file?

#

u scare me

split juniper
#

I have a question about sharding

quartz kindle
#

why do you have a 50gb json lmao

split juniper
#

is it absolutely necessary to shard your bot once it hits over 2.5k?

quartz kindle
#

yes

#

if you have more than 2.5k servers, discord wont let you login

split juniper
#

woah

#

aight

earnest phoenix
#

I won't need to worry, I only have 25 servers. I need 100 times more servers to reach that point.

earnest phoenix
#

how do make bot say animated emoji plese

#

what's the thing

limpid otter
#

Do \EMOJI

earnest phoenix
#

it's like <dittoid>

limpid otter
#

and then you'll get something like: \πŸ‘

#

Oh wait

#

No try to do it

#

ah

#

It'll look soemthing like this: !thonkku

#

@earnest phoenix

earnest phoenix
#

![lewis](https://cdn.discordapp.com/emojis/461720542458675211.webp?size=128 "lewis")

#

epic thanks

#

Yeet my variable measures 51GB when I put it in a text file

#

im getting a weird error when trying to use a config file with js it says Unexpected end of JSON input

rustic axle
#

You are missing a symbol

earnest phoenix
#

on my index.js this is what i have const config = require("./config.json");

rustic axle
#

In the json file

#

You probably are missing a comma

#

Or something

earnest phoenix
#
    "prefix": "<>",
    "token": "token-here"
}```
rustic axle
#

πŸ€”

earnest phoenix
#

want me to send the error message

rustic axle
#

Yeah screenshot it or put in a code block

earnest phoenix
#
    at JSON.parse (<anonymous>)
    at Object.Module._extensions..json (internal/modules/cjs/loader.js:708:27)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.<anonymous> (/Users/lukebaird/Desktop/Coding/Bots/JackABot/testing/node_38dfe050cd695.tmp:3:16)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)```
tough lark
#

that should be fine

earnest phoenix
#

ive looked everywhere online and i cant find anything on it

zenith moss
#

Send a seen of config.json without your token

#

ss*

tough lark
#
  1. send the whole file
  2. how are you requiring it
zenith moss
#

Check if it is like this

#
  "prefix": ">",
  "ownerID": "263568768456851458",
  "logs": "495609131596775425"
}```
#

without logs and add token

tough lark
#

he sent it up there

#
{
  "prefix": "<>",
  "token": "token-here"
}
zenith moss
#

Oh

tough lark
#

nothing wrong with it

zenith moss
#

oops didn't look up

#

Has he saved the json file

north arch
#

dno asked him to send it

#

and how he is requiring it

#

feking alt again

tough lark
zenith moss
#

WHo is a alt?

tough lark
#

my alt

zenith moss
#

oh

tough lark
#

i keep accidently switching

zenith moss
#

@earnest phoenix send your index.js file also make sure you saved them

tough lark
earnest phoenix
#

One sec my discord is bugging out

zenith moss
#

You have three monitors?

tough lark
#

yeh

zenith moss
#

nice

tough lark
#

3 accounts

earnest phoenix
#

Dang

tough lark
#

is a pain

#

@north arch owns the bots

#

its a shared account

zenith moss
#

Ah

earnest phoenix
#
const client = new Discord.Client();
const config = require("./config.json");
const fs = require("fs");

client.on('ready', () => {
  console.log(`Logged in as ${client.user.tag}!`);
});

client.on('message', msg => {
  if (msg.content === config.prefix+'ping') {
    msg.reply('Pong!');
  }
});

client.login(config.token);```
tough lark
#

other than driving me and my linter crazy, nothing wrong there

zenith moss
#

config.prefix + "ping"

#

maybe

earnest phoenix
#

ill try

tough lark
#

nah

#

its not that

zenith moss
#

okay

tough lark
#

can u sent the config.json

#

just take the token out

zenith moss
#

also make sure you have the files saved

tough lark
#

tho im curious if your token is escaping

earnest phoenix
#
    "prefix": "<>",
    "token": "token-here"
}```
zenith moss
#

Have you hit save?

earnest phoenix
#

yes

tough lark
#

honestly i dont know, there is nothing wrong with any of that

zenith moss
#

I've had files bug out on me before I just deleted the file and pasted the stuff back

rustic axle
#

Could be a defunct memory cell

#

Just create a new file

#

Like he said

zenith moss
#

Yeah

rustic axle
#

Either that or windows didn't allocate/format properly

earnest phoenix
#

I just ran it through terminal it’s working now

zenith moss
#

Oh okay

earnest phoenix
#

Thanks

rustic axle
#

πŸ‘

zenith moss
#

πŸ‘

carmine echo
#

How do I get a number of guilds the bot is in using eris? Why am I using eris? Maybe it uses less ram idk

#

help plox thx

earnest phoenix
#

eris is so gay

#

bot.guilds.size

#

@carmine echo

carmine echo
#

Yes

#

Eris is gay

#

I wasted lots of my time. I thought it'd use less ram. It doesn't use less ram.

earnest phoenix
#

Dude, I don't even know this and I knew that....

carmine echo
#

In fact it uses more

earnest phoenix
#

Use discordjs

carmine echo
#

I do use discord.js. I didn't like the fact that it used 120mb of ram for a simple bot though (which just deletes a message if it has the correct words in it). I thought eris'd use less ram. It uses 90mb. Totally worth all the time I put into it /s @earnest phoenix

earnest phoenix
#

Erm...

#

30mb of ram is nothin

carmine echo
#

Indeed.

#

/s means sarcasm.

earnest phoenix
ruby talon
#

Why do I get this lol:

WebSocket connection is closed: code = 1001, no reason.
#

exe dee

#

Its already fixed tho

#

πŸ˜›

lucid iris
#
(node:2427) UnhandledPromiseRejectionWarning: DiscordAPIError: Missing Permissions

    at item.request.gen.end (DELETED/node_modules/.registry.npmjs.org/discord.js/11.4.2/node_modules/discord.js/src/client/rest/RequestHandlers/Sequential.js:79:15)

    at then (DELETED/node_modules/.registry.npmjs.org/snekfetch/3.6.4/node_modules/snekfetch/src/index.js:215:21)

    at <anonymous>

    at process._tickCallback (internal/process/next_tick.js:189:7)

Any idea how to debug this? Trace doesn't show the origin of the exception.

earnest phoenix
#

It's because it's at the API level

#

The error clearly says: your bot is missing permissions

lucid iris
#

What permissions would commonly be required?

earnest phoenix
#

It depends on what your doing

lucid iris
#

...does it need the kick members permission to make itself leave a server?
Doesn't make much sense but I'm out of ideas.

earnest phoenix
#

When in doubt, just give the bot full permissions

lucid iris
#

That's not fixing the issue; it's avoiding it GWmiyanoAngry

earnest phoenix
#

My variable is now 125 GBs...

#

I'm gonna make it dump the variable every 4 hours

lucid iris
#

It does set its own activity; does this need an additional permission?
this.queryBot.user.setActivity("!help | " + this.queryBot.guilds.size + " servers", { type: 'LISTENING' }).then();

earnest phoenix
#

no. and that is not per server so how would it be... lol

lucid iris
#

Oh, right

#

I'm overthinking this already

#

Don't have a clue where the issue might lie

earnest phoenix
#

add a listener for unhandled promise rejection

#

I think you get a proper stack trace

lucid iris
#

So know I know that's an option.
I've added a snippet that supposedly does that but now permission exceptions aren't being thrown GWeeeChiyoDead.
Might have to check the logs after a while.

earnest phoenix
#

promise rejection is not an exception btw. and make sure you log everything from promise rejection listener

#

permissions error most likely from kick, ban, anything ur role doesnt have permissions to do

#

@lucid iris you don't have much to go on...

dusky delta
earnest phoenix
#

The API is rejecting the request because your bot application is missing a permission

lucid iris
#

So I need to look for something that isn't working?
So far everything seems like it does.

earnest phoenix
#

catch ur promise rejections and handle them

#

it wont fail if it has correct perms

lucid iris
#

Tried this:

process.on('uncaughtException', function (err) {
  console.log(err);
});

...but it didn't seem to work.

I've subscribed to all promises now with error handling so hopefully I'll catch whatever's going on.

bitter sundial
#

uncaughtException doesn't catch unhandledRejections

lucid iris
#

"promise rejection is not an exception"
No wonder then uncaughtException didn't work...

north arch
#

@lucid iris ```js
const unhandledRejections = new Map();
process.on('exit', (code) => { console.error(forced exit of code: ${code}); });
process.on('unhandledRejection', (reason, p) => { unhandledRejections.set(p, reason); console.error(Unhandled rejection:, p, reason); });
process.on('rejectionHandled', (p) => { unhandledRejections.delete(p); console.error(Rejection handled: ${p}); });
process.on('uncaughtException', (err) => { console.error(Caught exception: ${err}); });
process.on('warning', (warning) => { console.error(Process warning: ${warning.name}\nMessage: ${warning.message}\nStack trace:\n${warning.trace}); });

#

throw that on the first line of ur entry file

lucid iris
#

Thanks, gonna make use of it..

north arch
#

np

#

used to use it all the time

#

just to stop crap crashing out

lucid iris
#

Shouldn't it be Caught exception: ${error.message}

north arch
#

if u did

#
 console.error(`Caught exception: `, err);
#

it would print the entire object

#

i got that code like 4 years ago

#

and never rly touched it

#

:D

#

i dont use it anymore

ruby dust
#

ctx.guild.default_role.permissions_in(ctx.channel).read_messagesis this a good way of checking if everyone role has permission to read messages in current channel?

kindred jewel
#

@ruby dust Deivedux can you be more clear? are you trying to check if a specific user has access to a specific channel? or you are trying to get a list of the users who can read a certain channel?

limpid cosmos
#

My tempmute don't work can anybody help me ?

kindred jewel
#

is the limited speed that bots can spam messages to the chat something that you can get around easily?

#

like on my own server

earnest phoenix
#

I don't think so :o

#

well maybe by bugging discord system

ruby dust
#

I mean what I mean, check if the default role has access to the current channel

earnest phoenix
#

Im looking for developers to help me out on my bot dm me!

topaz fjord
#

non

earnest phoenix
#

its discord.js im new to development i released beta of my bot yesterday its on 27 servers and i need experienced js devs

#

You don't say..

quartz kindle
#

dm me if there is money involved

knotty steeple
#

dm me if the bot isnt going to be complicated mmLol

trim saddle
#

@knotty steeple dm me for succ

earnest phoenix
#

dm me just because bot

zenith moss
#

Can someone help me, I forgot how to make a command to leave a guild, such >gleave id

earnest phoenix
#

uhh

#

what library

zenith moss
#

d.js

#

nvm figgered it out

#

I just needed to remove my bot from a bot farm

earnest phoenix
#

oh ok

zenith moss
#

Nice bit of bots

hidden ginkgo
#

Just managed to shrink my bot line-count by 6% and have everything remain fully functional

topaz fjord
#

ok

earnest phoenix
#

can someone just help me make my bot

#

im trying to make a mod bot

#

what lang

#

english

ruby dust
#

nice

earnest phoenix
#

or engrish

ruby dust
#

go learn a programming language first, no one is going to spoonfeed you code

earnest phoenix
#

like saying a fire extinusher is a hand grenade

#

thats engrish

ruby dust
#

english is a human language

earnest phoenix
#

yeah

#

but learn a coding language

ruby dust
#

I told you to learn a programming language

earnest phoenix
#

like yesterday

#

you asked how to fill out the dbl form

hidden ginkgo
#

I suppose you could consider natural languages a form of programming language if you're commissioning a developer.

earnest phoenix
#

just learn a programming language

ruby dust
#

...what

hidden ginkgo
#

I think he's doing that commissioning thing

ruby dust
#

that docs is such a mess...

hidden ginkgo
#

Does it include a budget?

earnest phoenix
#

oof

hidden ginkgo
#

cause it isn't free πŸ˜„

ruby dust
#

you don't even have a goal, you are just writting everything you see that involves a discord bot

earnest phoenix
#

no theres no budget

#

yes

hidden ginkgo
#

blank cheque eh

#

nice

earnest phoenix
#

as a base thing to go off of

#

its not a base

#

ok

#

then

ruby dust
#

also your docs contain not only python language

#

you have a mixture of different languages

earnest phoenix
#

that java code at the end tho

weary radish
#

Im going to try to make a bot about Fortnite. If I could get help that would be amazing.

earnest phoenix
#

uhhhhh

#

what language is it going to be in

ruby dust
#

another guy without knowledge trying to make bots sigh

earnest phoenix
#

oh i did not know there was java script at the end

hidden ginkgo
#

LOL

weary radish
#

Im going to try to make a bot

hidden ginkgo
#

this has to be troll

earnest phoenix
#

there isn't

weary radish
#

I can sorta code

earnest phoenix
#

its java

ruby dust
#

does fortnite have an API or something?

earnest phoenix
#

@weary radish what language can you code in

knotty steeple
#

@earnest phoenix already told him to learn yesterday

earnest phoenix
#

also that too

#

i actually was the first one

weary radish
#

Im learning Java, and Lua

earnest phoenix
#

i cant find the lik for the learn python thing

knotty steeple
#

lua haha yes

earnest phoenix
#

link* not lik

#

check to see if theres an api @weary radish

knotty steeple
#

just learn javascript if ur doing that

weary radish
#

Ok

knotty steeple
#

mmLol im joking

west raptor
#

Lua is good

#

Tbh

knotty steeple
#

because uh lua and js have some things that are the same

hidden ginkgo
#

There is an api

west raptor
#

Lua is like a simpler version of py

earnest phoenix
#

samurai

knotty steeple
#

python? nah

earnest phoenix
#

is lua hard to learn

knotty steeple
#

no lul

earnest phoenix
#

kk

ruby dust
#

@earnest phoenix if you want to make a decent bot, drop everything, learn everything about python, not just the basics, know that you aren't going to make something cool off the bat either, you will be able to play around with python and make more than just a discord bot once you'll learn enough, which won't be as soon as you think anyway

earnest phoenix
#

i want to use it thtas why i asked

knotty steeple
#

i only know python basics mmLol

west raptor
#

Lua is actually quite similar to py from what I've seen

knotty steeple
#

variables are similar to js besides using local instead of const/var/let

earnest phoenix
#

im just trying to make a mod bot for my server

ruby dust
#

you really remind me of myself

#

it's really a bad idea

knotty steeple
#

mod bot

#

just stop right now

earnest phoenix
#

ok

ruby dust
#

you won't go anywhere if you don't know a programming language

weary radish
#

Im trying to make a mod bot/music bot

#

or something

#

I dont really know

west raptor
#

Just use a pre-made one if you don't understand what we are saying

earnest phoenix
#

im good at useing scratch i can do any thing on it

west raptor
#

lol

weary radish
#

Oml

#

Really

west raptor
#

Scratch

hidden ginkgo
#

Desire is the first step I suppose

weary radish
#

Lemme find a project I did when I was younger.

knotty steeple
#

scratch

#

oh my

#

someone needs some blessings

earnest phoenix
#

uwu

ruby dust
#

oh right, why not just use public bots? there are like over 3 thousand of public bots hosted for users for free and people still want to go making bots facepalm

weary radish
#

LOL. I just saw a google search for "What coding language does scratch use" oml

ruby talon
#

Scratch

#

Exe dee

earnest phoenix
#

thats important

ruby talon
#

School 2.0

knotty steeple
#

ikr

earnest phoenix
#

we need to know whats hip and whats not

ruby dust
#

you know why people want to make bots so badly?

ruby talon
ruby dust
#

because they think it's as easy as using bot commands

ruby talon
#

Yeet

hidden ginkgo
#

It isn't?

weary radish
ruby talon
#

Nope, u have to type more

weary radish
#

Dang

ruby dust
#

well and also know what to type as well

weary radish
#

Just realized that I made some mmistakes

#

mistakesw

#

dangit

#

Mistakes

ruby dust
#

you can edit messages

#

mindblown

ruby talon
west raptor
#

I actually learned a lot of Javascript from making bots

#

It's not all bad

knotty steeple
#

same

ruby talon
#

@west raptor I learned 90% of what I know from Python rn frum making bots

#

Exe dee

knotty steeple
#

i mean

#

i knew js like since i was 11

#

but

ruby dust
#

there's a big difference between just trying to make a bot and actually learning the language while making a bot

west raptor
#

Python is pretty easy to learn imo

knotty steeple
#

not much stuff as now mmLol

ruby talon
#

After I "Masterd" Python I wanna learn JS

west raptor
#

Js is cool

earnest phoenix
#

i made crossy road in scratch and it can be used with w a s d and the arrow keys

west raptor
#

Learn it if you have time

hidden ginkgo
#

The developer of crossy roads is here???

ruby talon
#

@earnest phoenix in scratch bloks or scratch code?

hidden ginkgo
#

Big fan of yours

knotty steeple
#

scratch isnt a programming language

#

smh

ruby talon
#

@knotty steeple wdf is smh

#

Me stupid

ruby talon
#

*gets skipped

#

Ok

#

Timing

#

Ty @knotty steeple

earnest phoenix
#

hold on

#

(node:3284) UnhandledPromiseRejectionWarning: TypeError: Object.keys is not a function oof

#

a part is not done

#

but the car turn

#

theres levels

#

not done yet

#

and an easter egg

ruby dust
#

sigh

#

how old are you

earnest phoenix
#

im not telling my age

#

me neither

#

lol

#

i never tell my age to anybody

#

other then my friend

#

s

knotty steeple
#

same

earnest phoenix
#

so uh

ruby dust
#

why

earnest phoenix
#

``

#

(node:3284) UnhandledPromiseRejectionWarning: TypeError: Object.keys is not a function

#

any idea

#

why basic javascript

#

isnt allowed

#

;-;

knotty steeple
#
 /var/cache/apt/archives/locales_2.27-6_all.deb
 /var/cache/apt/archives/libc-l10n_2.27-6_all.deb
 /var/cache/apt/archives/libc-dev-bin_2.27-6_amd64.deb
 /var/cache/apt/archives/binutils_2.31.1-6_amd64.deb
 /var/cache/apt/archives/binutils-common_2.31.1-6_amd64.deb
 /var/cache/apt/archives/libbinutils_2.31.1-6_amd64.deb
 /var/cache/apt/archives/binutils-x86-64-linux-gnu_2.31.1-6_amd64.deb
 /var/cache/apt/archives/libc6-dev_2.27-6_amd64.deb
 /var/cache/apt/archives/libgpg-error0_1.32-1_amd64.deb
 /var/cache/apt/archives/libgcrypt20_1.8.3-1_amd64.deb
 /var/cache/apt/archives/liblz4-1_1.8.2-1_amd64.deb
 /var/cache/apt/archives/libc6_2.27-6_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)``` im trying to install pip and i get this?
earnest phoenix
#

pip GWfroggyBlobThonk

#

idk how to get that

ruby dust
#

installing pip in a server?

knotty steeple
#

on my debian server yes

earnest phoenix
#

uwu

ruby dust
#

I'm pretty sure it should work if you try sudo apt-get install pip3

#

actually there's a difference between python and python3

#

same with pip

knotty steeple
#

unable to locate package

#

also before i did sudo apt-get install python3-pip

ruby dust
#

now I'm thinking that your server is not up to date

knotty steeple
#

its not lul

#

version 7 GWvictoriaNotLikeBlob

earnest phoenix
#

i do have a rasbery pi

ruby dust
#

try this sudo apt-get update sudo apt-get -y upgrade

earnest phoenix
#

so i can use python on it

#

because it comes with it

ruby dust
#

also try to reboot your server with sudo reboot

earnest phoenix
#

what

#

ok

knotty steeple
#
debconf: delaying package configuration, since apt-utils is not installed
dpkg-deb: error: archive '/var/cache/apt/archives/base-files_10.1_amd64.deb' contains not understood data member control.tar.xz, giving up
dpkg: error processing /var/cache/apt/archives/base-files_10.1_amd64.deb (--unpack):
 subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
 /var/cache/apt/archives/base-files_10.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)```
#

fun

earnest phoenix
#

i just going to assume you are under the age of 13

#

maybe 12

ruby dust
#

worth mentioning a mod yet?

earnest phoenix
#

nah

ruby dust
#

they'll just gonna annoy us more then...

earnest phoenix
#

im waiting until they have an actual problem

#

it might be possible

ruby dust
#

their problem is they very persistantly think that they know scratch and ignoring everyone

#

and wants to make a bot

earnest phoenix
#

yep but i know scratch

#

very good

#

ok

#

so uh

#

what

#

idk

#

did you finally learn python

ruby dust
#

are you joking?

earnest phoenix
#

ehhh

topaz fjord
#

scratch worst programming language

earnest phoenix
#

what

#

not scratch batch

#

lol

topaz fjord
#

writing linux scripts is where its at mmLol

earnest phoenix
#

I mean tbh Scratch is worse nvm

#

is scratch even a programming language tho? spoonfeed

#

Discord bot maker is πŸ˜‚

#

jk

#

ew gros

topaz fjord
#

discord bot maker makes a bot in js

earnest phoenix
#

I use node.js

topaz fjord
#

what the fuck

#

its thundering

earnest phoenix
#

I could make discord bot maker lol

#

@earnest phoenix thats only 6

topaz fjord
#

i respect discord bot maker

ruby dust
#

can you make something better than the existing dbm?

earnest phoenix
#

Probably not tbh

#

i normaly dont have that much tabs open

#

Its already pretty good

#

plus you didn't answer my question

#

never tried it though

topaz fjord
#

dbm is good software just not good for making bots

earnest phoenix
#

lol can you make like websites on it and stuff..?

topaz fjord
#

no

#

you cant

earnest phoenix
#

if anyone does want to help me i will make you an owner

#

dbm is good for making books

topaz fjord
#

no

earnest phoenix
#

yes

topaz fjord
#

its not

earnest phoenix
#

its yest

#

well

#

still getting this error

#
(node:3284) UnhandledPromiseRejectionWarning: TypeError: Object.keys is not a function```
#

Idk how to fix it at all

#

it is an object I <promise>

topaz fjord
#

show code

earnest phoenix
#

lol

#
var chatdata = {hi:{"hi":0.45, "the":0.1, "hello":0.45},the:{"hi":0.33, "hello":0.33, "the":0.33}}

var Keys = Object.keys(chatdata)```
knotty steeple
#

6 tabs arent that much

earnest phoenix
#

thats not much either

#

thats not much tho

knotty steeple
#

i have more most of the time mmLol

earnest phoenix
#

I usally have 2 chromes open lol

#

sad

knotty steeple
#

~14

#

but eh

earnest phoenix
#

tbh

#

i be on chrome most of tine

#

without realizing it

#

My computer hates me

#

πŸ˜‚

west raptor
#

I usually have 40 tabs open

#

Not even joking

earnest phoenix
#

k

#

still not enough

west raptor
#

Luckily Firefox can handle 40 tabs

earnest phoenix
#

Firefox = ram consumer

#

lol

#

Thats literally the name of firefox on my pc

west raptor
#

what

#

no thats chrome m8

earnest phoenix
#

mhm

#

thats what they all say

#

lol

#

This seems like a nice desktop

west raptor
#

no like seriously

#

i just started my computer

earnest phoenix
#

OOF

#

really

west raptor
#

yes

earnest phoenix
#

Jonny Jonny.. yes papa..

#

lmao

#

sorry

#

DM me I'm hiring experienced discord.js developers to help out on my bot as I'm new to development beta released yesterday and we just hit 27 members.

west raptor
#

27 members

ruby dust
#

people still do these ads?

earnest phoenix
#

lol

west raptor
#

are u sure about that

earnest phoenix
#

hiring

#

Does

#

I have like 40k members only on like 50 servers

#

mean

#

paying

ruby dust
#

my one bot is in about 200 servers and another in 80

#

both have 62k users

earnest phoenix
#

damn fam

#

27 servers *

west raptor
#

27 servers

#

how does ur bot

earnest phoenix
#

yeet

west raptor
#

have more than mine

earnest phoenix
#

lol

#

Jonny u gotta do that dm advertising

#

you already know

#

jk

west raptor
#

hell ya

#

brb

#

wait no

earnest phoenix
#

dms admin

#

lol

west raptor
#

i should vote lock shit

ruby dust
#

I'm never votelocking, I don't want my bot to be attached to some site, it's a discord bot after all

earnest phoenix
#

vote lock wdym

#

I mean I'd give em bonus's if they voted but I wouldn't lock it

ruby dust
#

restrict commands from users that haven't voted for the bot

earnest phoenix
#

like coinmaster

ruby dust
#

I mean, I wouldn't even give bonus for that, I'm totally against my bot being attached to some site like that

#

if people vote for my bot I'd appreciate their support

west raptor
#

i mean i will only vote lock if i have to

#

ie. a command takes a lot of resources to do

ruby dust
#

it's not really a development question, but for those python users, is it better to filter words if they containt in message.content or message.content.split()?

#

idk how else to explain

#

split basically means turning a string into a list of strings, in this case separated by spaces

lusty dew
#

How can you make it so your cooldown works perfectly
Like when you reset bot
no one can use the command
if they used it before the reset

bright spear
#

stop talking in bold

lusty dew
#

Omg

bright spear
#

also always say the lib ur using

lusty dew
#

Why is everyone so pissed when I talk in bold

#

Like wth

bright spear
#

cuz its annoying

#

like you

lusty dew
#

How

#

Advaith don't be a dick

#

-_-

toxic forum
#

Use something to store that information in a file or database

#

@lusty dew

earnest phoenix
#

i did

rustic axle
#

Hey does anyone happen to know of a npm package that can search/find/fetch github repos and give metadata kthx

bright spear
rustic axle
#

Yeah I already tried that but I wan't something that would actually look up a repo by name or id

bright spear
#

looks like thats what the first result does

rustic axle
#

wht

#

o

#

hmm

#

Thanks!

bright spear
#

yw

pseudo inlet
#

yo waddup guys

#

in discordpy how would you take a mention and get the id out of it?

earnest phoenix
#

Use a converter

#

async def discordpy(user: discord.User):

ruby dust
#

message.mentions returns a list of mentioned member objects @pseudo inlet

dim grove
#

Does a profanity filter count as autoresponses? (It says "Warning: profanity detected." upon detecting profanity) One fun thing about my filter is that it doesn't trigger on words like s__crap__ but it does trigger even if the word has spaces in the middle (e.g. c* **), a feature which most profanity filters lack.

ruby dust
#

Everything is an autoresponse if it doesn't have a toggle

#

Why do people have to make their features enabled by default sigh

rustic axle
#

ie. Nightbot's auto channel commands

ruby dust
#

Best way of doing it is to promote your features your bot has and let those servers enable them if they want so

earnest phoenix
#

I have everything disabled by default with the exception of a few core commands, like help, prefix, stats

earnest phoenix
#

scrap

earnest phoenix
#
bot.on('message',message => {
    if(message.content.startsWith(Prefix + "giveaway")) {
    let embed = new RichEmbed()
    .setTitle(`Giveaway`)
    .setDescription(`React with :tada: to enter!`)
    .addField(`Item`,``)
    .setFooter(`Ends Wednesday , October 3rd , 2:00PM EST`)
    .setColor(`RED`)
    message.channel.send(embed).then(function (message) { 
    message.react("πŸŽ‰")    
    })
  }
})

Can anyone help me make it so when someone does >giveaway (item) it shows it on The Item Field.

sick cloud
#

why are you posting that

#

it's very clear

#

just set the field value to whatever arg is provided

earnest phoenix
#

idk how to do >giveaway (item) and make the itme show up on the Item field

sick cloud
#

args

earnest phoenix
#

idk how.

#

im new 😦

sick cloud
#

read up

#

there's a guide on args

#

i'm on holiday and don't wanna explain coding on mobile

earnest phoenix
#

i want it to allow spaces it does a , for spaces

rustic axle
#

Then remove the split function

#

Thats basic string manipulation

earnest phoenix
#

.

rustic axle
#

Seems lit

inland latch
#
async def servcount():
    await bot.wait_until_ready()
    await asyncio.sleep(10)
    whilelo = 1
    while whilelo > 0:
        async with aiohttp.ClientSession() as dblsess:
            async with dblsess.post("https://discordbots.org/bots/452598458625425428/stats", json={'Authorization': 'notoken4u','server_count': len(bot.servers)})
    await asyncio.sleep(900)

how does this not work? having invalid syntax errors

#

in this

#

how would i patch this?

earnest phoenix
#

guys does dbl automatically update ,the guild count ?

#

how does that work?

inland latch
#

@earnest phoenix You send your guild count to them via a POST API. You'd put this request in a loop, and have it send the guild count every 15 mins or whatever you want.

earnest phoenix
#

nice i was thinking about that

inland latch
#

any idea why my async with is causing an error?

earnest phoenix
#

not sure what lang is that

inland latch
#

python

inland latch
#

how long will dbl take to process the server count?

ruby talon
#

@inland latch Library?
Overall code?

#

@inland latch like 1 sec max lol

earnest phoenix
#

I have a question

#

How does everyone in here get there bot running 24/7

#

I'm kinida new

uneven depot
#

you'd have to use something called a process manager (basically like task manager in unix-like OS's). There's like a million ways to do it. Some languages have libraries that'll do it for you.

#

So something like systemd or supervisor could be used to make sure bot keeps running, and restarts if it fails. It seems like python has some libraries you could pip install to achieve similar behavior, although I haven't tried them.

weak parrot
#

To have your bot running 24/7 it needs to be on a machine which can run 24/7. As an example a server or a VPS

hidden ginkgo
#

I manually process every message and command like someone in the mail service, so my bot is offline 8 hours a day.

sick cloud
#

πŸ‘

steel swallow
#

hey guys

#

i have multiple questions

earnest phoenix
#

k

steel swallow
#

so my bot runs on JS

earnest phoenix
#

ok

steel swallow
#

and i wanna make custom images for things

earnest phoenix
#

ok

steel swallow
#

like what tatsumaki does for her profile

earnest phoenix
#

ok

steel swallow
#

what is a good library or can you point me in the direction on how to do it?

earnest phoenix
#

gm

steel swallow
#

that didnt hyperlink

#

but thank you

knotty steeple
#

@steel swallow canvas is better

steel swallow
#

yeah?

earnest phoenix
#

@knotty steeple no

#

Bad samurai

steel swallow
#

uh?

#

look. im just trying to lay some images over the top of each other to convey information

knotty steeple
#

well i used canvas-constructor to make my profile command and it was 😩

steel swallow
#

what does your profile command look like?

earnest phoenix
#

crying emoji

#

it was crying emoji

steel swallow
#

oh

#

my second question

#

so microsoft Azure

#

i get a free account with my uni

#

could i feasibly run my bot 24/7 using it?

knotty steeple
steel swallow
#

oh cool

#

that's basically what i am looking to do

#

only a bit more complex

hidden ginkgo
#

For Java, I use an xhtml2image library which seems to work pretty well buts it's quite slow (upto 1 second), how fast are the canvas/gm images?

steel swallow
#

im not working with Java

hidden ginkgo
#

I know

quartz kindle
#

canvas is the best option

#

much faster than gm or any external library

#

plus, canvas is not only image manipulation, its a full drawing api, so it can do much more than any image manipulation lib

covert tartan
#

what timzone is used for the isWeekend double voting thing?

steel swallow
#

thanks

wide ruin
#
{
"install": {
  "include": [
   "^package\\.json$",
    "^\\.env$"
  ]
},
"restart": {
  "exclude": [
    "^public/",
    "^dist/"
  ],
  "include": [
    "\\.js$",
    "\\.json"
  ]
},
  "throttle": 900000
}``` is watch.json, logs say 
`SyntaxError: Unexpected string in JSON at position 209
    at JSON.parse (<anonymous>)
    at /opt/watcher/source/app-picker.js:107:37
    at ChildProcess.exithandler (child_process.js:268:7)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:915:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)`
#

thats all i changed

earnest phoenix
#

Are there any good guides on sharing a NodeJS application?

wide ruin
#

the code or the bot?

earnest phoenix
#

Both.

wide ruin
#

just show the bot in a server

earnest phoenix
#

What?

#

How would HasteBin shard a bot?

wide ruin
#

that would share code

#

but what do you mean then

earnest phoenix
#

I need to shard my bot.

wide ruin
#

shard?

#

share?

earnest phoenix
#

Yeah. I don't think you know. I'll wait until someone else gets on.

wide ruin
#

i still ne help too btw (d.js)

#

need*

earnest phoenix
#

What's on position 268:7?

wide ruin
#

well is that a line or what

earnest phoenix
#

...

#

If you don't know how to read a position, I don't think you should be making a bot.

#

A syntax error is easy to fix.

#

Read the docs!

wide ruin
#

i have copied code from a bot with the same watch.json

#

(the only thing that changed)

#

and still wont work

split juniper
#

So uhhhh, my bot was kicked cause of a command with gay jokes

#

Does that go against the ToS?

#

I was told it crosses the line but it's meant to be satire

earnest phoenix
split juniper
#

Wanted to get opinions from other devs

earnest phoenix
#

@earnest phoenix thanks

#

@split juniper it was hate speech... Not a joke.

split juniper
#

RIP

#

was meant to be satire

#

removed it tho

earnest phoenix
#

i reported it mmLol

lavish forge
#

When suicide jokes are acceptable but homophobic ones aren't.

zealous veldt
#

There is a difference between jokes and hate speech

#

One is illegal in some countries

split juniper
#

But does it count as hate speech if it's satire

lavish forge
#

Yeah. Germany is pretty hard on jokes.

#

Merriem. There's no such thing as satire anymore. Everyone gets offended and upset by every miniscule thing, even if it has nothing to do with them.

split juniper
#

I can't agree more...

#

But I'll follow what the mods say

#

since it's their job

#

although it does not directly terminate the ToS of discord I believe

#

as far as I've read

#

maybe it violates the ToS of DBL

#

which I have not fully researched

#

just from the channel

earnest phoenix
#

Hey there, is there anyway to prevent a bot to respond to another bot in discord.py rewrite?

lavish forge
#

I thought bots didn't typically respond to each other unless you explicitly designed it that way.

earnest phoenix
#

oof

split juniper
#

Nope, it's the other way around

#

at least for discord.js

#

H

lavish forge
#

Hmm

earnest phoenix
#

its python

cursive dagger
#

You can modify the on_message

#

@earnest phoenix i did a pull req

rich sail
#

need help

earnest phoenix
#

ok

cursive dagger
#

@rich sail what u need help with?

rich sail
#

fixed

earnest phoenix
#

Thank you for the contribution @cursive dagger!

#

I'll give credit in a update for the bot

cursive dagger
#

@earnest phoenix ur welcome! Hope the indent isn't broken cus I am on mobile xD

vocal yew
#

Can I have VoteBot readded I changed the token

sullen path
#

just resubmit it

earnest phoenix
#

thats alright, I'll use it in a new update I am working on

#

and it will have a credits command

lucid iris
#

I've been getting a permissions error for a few days and I've just noticed the permissions raw value on this server is different from all the others.
Is there anything I can edit on my submission on the site to get the bot to have the proper permissions here?
Do I need to completely remove it and add it back?

earnest phoenix
#

what you mean

#

i mean like

late hill
#

You can edit the invite link

#

To have different permission

earnest phoenix
#

if your talking about your bot not sending messages

late hill
#

But it won't change anything to servers it has already been added to

#

Obviously

earnest phoenix
#

they're talking about this specific server

#

not the invite link

late hill
#

Yeah

#

You add permission to the invite link

#

To make your bot work in servers

earnest phoenix
#

no

#

like

late hill
#

Where the the everyone role doesn't have all permission your bot needs

earnest phoenix
#

this specific server has different permission values for bots

#

thats what they mean

late hill
#

yeh

lucid iris
#

I don't see anything not working but sometimes DiscordAPIError: Missing Permissions is thrown.
I've run this snippet console.log(guild.id, guild.me.permissions.raw); and noticed this server had different permissions.

#

So I thought maybe this one's the one triggering the exceptions.

earnest phoenix
#

@lucid iris what is the the full error

late hill
#

But the only thing you can change is the permissions the bot invite comes with

earnest phoenix
#

oof

lucid iris
#

That's the problem, DiscordAPIError: Missing Permissions is the full error.
I've tried debugging it but I still don't know what action triggers it.

late hill
#

Anything else is up to whoever owns that server

earnest phoenix
#

wesley what are you talking about

late hill
#

There is no way for him to edit his bots permissions

#

On a server that isn't his own

earnest phoenix
#

nothing about this talks about his invite tho

late hill
#

It does

#

Because the invite comes with permissions

#

So you can make sure

#

That it has whatever permisisons you need

earnest phoenix
#

dbl uses a specific invite link for bots

late hill
#

πŸ€”

#

You can use your own

#

And put permissions in it..

earnest phoenix
#

look