#development

1 messages ยท Page 1662 of 1

lyric mountain
#

Technically that's true

old cliff
#

I learnt ms logo at 8

lyric mountain
#

Someone had to do it once

#

The pixels stuff I mean

dusky sundial
#

Yeah, I guess

#

poor person

old cliff
lyric mountain
#

My first ever lang was wiremod expression 2

old cliff
#

My first lang was ms logo

#

Then html

lyric mountain
#

Shit's c-based

old cliff
#

Then c++

#

Then python

#

Then js

#

Then php

#

Then node.js

lyric mountain
#

Ms logo?

old cliff
#

Yea

#

Turtle

#

Ms turtle

lyric mountain
#

No idea what's that

old cliff
#

Search

#

On Poogle

lyric mountain
crystal wigeon
#

someone help pepeSadge

old cliff
#

Wait

crystal wigeon
#

on kibana. its not letting me upload .log file

old cliff
crystal wigeon
#

also 1 file worked but its not showing logs but instead shows an aggregated bar

lyric mountain
#

Never heard of that lang

#

But I guess that explain why you became a js dude

#

You started with an interp lang from the beginning

#

I started with a strong typed lang

lyric mountain
crystal wigeon
#

nop

#

its only 10mb

#

it says it couldn't determine the type

lyric mountain
#

Change extension to txt then

crystal wigeon
#

it has no extention. like the same file worked once but wont work for the other

#

even if it didnt work

#

its showing me bar chat

#

of how many "errors" i have

#

not the error log itself

lyric mountain
#

Idk then, but try changing the extension

old cliff
#

Just opload on hatebin

open grotto
#

how do we get the bot ?

old cliff
#

You dont get it

#

You make it

open grotto
#

how

old cliff
#

What bot but?

open grotto
#

do i need to be on PC

old cliff
#

You wanna invite a bot or make your own?

open grotto
#

makew my own

old cliff
#

Code it

#

First choose a language you are comfortable with

#

Then learn its basics

open grotto
#

can i textg you private

old cliff
#

Then move onto bot development

old cliff
open grotto
#

+help

#

do i need a PC

old cliff
#

No... you can code on mobile too

#

But it would be difficult

open grotto
#

i am stupid

#

i am talking abt fn bots

old cliff
#

Fortnite bots?

earnest phoenix
#

Hey does anyone know if the site support discord webhook as the voting webhook? Please ping me if you have an answer

boreal iron
crystal wigeon
#

how do i check if bot has permissions to send message in a particular channel?

boreal iron
earnest phoenix
boreal iron
#

You can use the permission's bitfield, name or even an array of names

#

Oh lmao I should read more carefully

crystal wigeon
boreal iron
#

Then use message.channel.permissionsFor()

#

const permissions = message.channel.permissionsFor(message.guild.members.cache.find(...));

if(permissions && (permissions.has(xxx) || permissions.has(yyy)))

crystal wigeon
#

its weird

#

because it shows the bot has perms in that specific channel

#

but it doesnt

lusty quest
crystal wigeon
#

that returns for the whole guild tho?

#

i want perms for a specific channel

#

var permissionsArray = ch.permissionsFor(client.user).toArray(); console.log(permissionsArray);

#

i did this

lusty quest
#

eww var

crystal wigeon
#

[ 'ADD_REACTIONS', 'STREAM', 'SEND_MESSAGES', 'EMBED_LINKS', 'ATTACH_FILES', 'READ_MESSAGE_HISTORY', 'USE_EXTERNAL_EMOJIS', 'CONNECT', 'SPEAK', 'USE_VAD' ]

#

and it returned this array

#

but in that channel

#

the bot has no perms

lusty quest
#

im not sure if the user object would be right

#

pass the member object

crystal wigeon
#

for the bot?

lusty quest
#

yes

crystal wigeon
boreal iron
lusty quest
#

since client.user is just the user object not the member

lusty quest
carmine summit
#

is there a simpler phrase for this? .replace(/^\s/g, "").replace(/\s$/g, "")

lusty quest
#

what did you want to do?

crystal wigeon
lusty quest
#

sry

crystal wigeon
#

it still shows all perms

#

even tho it doesnt have those perms in that channel

#

i tried channel.permissionsFor

#

still returned the same array

lusty quest
#

const botPermissionsIn = guild.me.permissionsIn(channel); this should return the permissions the bot got in this channel

crystal wigeon
#

channel id? or the whole channel

lusty quest
#

channel object

crystal wigeon
#

it returned a bitfield

lusty quest
#

this helps

crystal wigeon
#

how

#

xd

#

i tried channel id and that also returned the same bitfield

lusty quest
#

console.log(botPermissionsIn.serialize())

#

should return an object with the permissions

crystal wigeon
#

noice

#

damn i really need to learn how to serialize those objects :c

#

well

#

that also didnt work

lusty quest
#

what does it give you?

crystal wigeon
#

because it says it has send message perms

#

i mean. in the channel it deosnt have any perms

#

but it says

#

it does

lusty quest
#

you inhert the permissions from the role

#

if no permissions per channel are set

crystal wigeon
#

yeah but the channel perms overwrite them

#

right

lusty quest
#

yes

crystal wigeon
#

the bot isnt even in that channel

lusty quest
#

does the bot got view channel permissions?

crystal wigeon
#

nop

lusty quest
#

then the bot cant see the channel

#

but can check the permissions

crystal wigeon
#

but it says it can send message

lusty quest
#

do it work?

crystal wigeon
#

VIEW_CHANNEL: false, SEND_MESSAGES: true,

#

nah i mean it doesnt send the message because discordApi

#

throws error

lusty quest
#

well then it works as intended

crystal wigeon
#

mm

#

thanks

lusty quest
#

you need View_Channel and Send Messages to send stuff

carmine summit
#

Hey, I have an array like

[{item_name: "Banana", price: "500"}, {item_name: "Apple", price: "500"}, {item_name: "Carrot", price: "250"}, {item_name: "Apple", price: "750"}, {item_name: "Carrot", price: "1000"}]

I want to have an array with the lowest prices of every product.

[{item_name: "Banana", price: "500"}, {item_name: "Apple", price: "500"}, {item_name: "Carrot", price: "250"}]
lusty quest
#

probably, but idk the answer

boreal iron
#

Wut i donโ€™t get it

#

U wanna sort the array?

lusty quest
#

he wants to sort the array to get an array of the lowest numbers

carmine summit
#

@boreal iron I want to like sort it for every product on the lowest price

boreal iron
#

Object.keys and Object.values will be your friends to sorting it KEKW

carmine summit
#

should I just .sort it then just remove the duplicates?

boreal iron
#

Oh there similar object keys, I see

carmine summit
#

yeah I think sorting it to the price then removing the duplicate products is the way to go

lusty quest
#

from where did you get the array anyways? if its a database you could already get it sorted from there

boreal iron
#

Yeah and to keep the lowest check if the object.key exists in your new array and if so if the object.value is > then replace

carmine summit
lusty quest
#

ok

carmine summit
#

wait, is sort() only available for arrays?

#

nvm

lusty quest
#

for objects well it could be a bit more annoying

carmine summit
#

yeah I think I can do it

pale vessel
#

but that's an array though

lusty quest
#

i guess this helps even more

boreal iron
#

<array>.sort((a, b) => {
return a.price - b.price;
});

#

Something like this

#

Actually canโ€™t test it on mobile

median river
#

?help

boreal iron
#

Just sort it then remove the duplicates if their value is larger than the found other dublicate

carmine summit
#

yes

rose warren
#

Thanks for that ๐Ÿ‘ (sorry, I went to bed after my message ๐Ÿ˜‚) yeah that's what I had heard. We'll see if 30s is ok I guess. I'm running a test to see if it gets rate limited before making it public (still only for 1 server though, not a public bot).

opal plank
rose warren
#

Yeah you're right the test has been running since last night and it's still editing fine every 30s this morning

opal plank
#

also copying my status

marble juniper
#

it spreaded around like a wild fire

#

or legs

opal plank
#

tis what i get for talking about it here

#

ffs nobody do their own thing

#

and here i was thinking tik tok and 9gag were the only things that worked on recycled content only

slender thistle
#

LMFAO

rigid viper
#

Does any of you know what

DOES YOUR APPLICATION UTILIZE OTHER THIRD-PARTY AUTH SERVICES OR CONNECTIONS? IF SO, WHICH, AND WHY? means?

#

I tried googling it and translating it to my own language

#

but it doesn't make sense to me

marble juniper
#

they are asking if you are using other services for your bot

#

like for example your bot is a music bot

#

you would need to say it uses the youtube api

#

lol

#

and why

#

and so on

#

if you don't use any service like youtube for your bot just say you don't use any services outside of the discord api

dusky lagoon
#

Dont know if there are any weebs among us BUT making a anime suggestion command only i dont know about the looks any suggestions

elfin karma
#

/poll "test poll"

opal plank
earnest phoenix
#

Guys how can i make premium commands like this:

module.exports = {
   name: "Name",
   votingRequired: true;
    run : async (client, message, args) => {
    etc.

So people have to vote for my bot on topgg for using commands

fossil grove
#

Help :c

lusty quest
lusty quest
fossil grove
#

I want blacklist code that blacklist someone in discord by his id

lusty quest
#

language?

fossil grove
#

i really want the code

#

java script

#

Command handler

earnest phoenix
lusty quest
fossil grove
#

Ok thank you

lusty quest
earnest phoenix
lusty quest
#

DONT use Json as a database

#

but you know how to read stuff from the json file as required in your code right?

earnest phoenix
lusty quest
#

you have to store the votes somewhere, otherwise it will not work

ember wedge
#

unless you wanna get the votes each request

lusty quest
#

you could use a collection

ember wedge
#

or redis

lusty quest
#

redis is a database

ember wedge
#

eeeh

earnest phoenix
lusty quest
#

i wont watch a 7 Minutes video with this stupid music in the background

earnest phoenix
lusty quest
#

does this stupid video got a github repo attached?

ember wedge
#

nope

fossil grove
#

@lusty quest hey i put the code in index right ?

const blockedUsers = [ '803930016845004820', '730674341427282013', '815284312155881514' ];
client.on('message', message => {
	if (blockedUsers.includes(message.author.id)) return;
});
fossil grove
#

yes ?? weirdsip

ember wedge
#

as far as i understand users with those ids wont be able to use that specific on message handler

fossil grove
#

..

ember wedge
#

not sure if it will still hit other listeners after that thouhg

lusty quest
fossil grove
#

yes ?

lusty quest
#

then you just need the array of the blocked uses in the same file where you have your command handler and then just add the check at the correct line in your command handler

fossil grove
#

ok weirdsip

lusty quest
#

if you just copy/paste the entire snippet into your command handler you could run into issues

fossil grove
#

can i have nuke code that nuke server by id of server

#

let me tell u

lusty quest
#

nope, violates discord TOS

fossil grove
#

There is someone very old friend which he hack my old bot and he lies and he said idk who make this with your bot , give me ur repl invite and i will fix that
And i was idiot and new at coding and this fucking person is now searching for my repl but iam smart cuz i make new account with arabic name..

#

Understand ? @lusty quest

#

UNDERSTAND ?

lusty quest
#

and what now?

#

it doesnt give me any information i wanted

fossil grove
#

do u want the id of his accounts ?

lusty quest
fossil grove
#

I make a code which when someone add my bot to his server
The bot send message of thr server id and name and owner in special channel

fossil grove
#

THIS IS HIS SERVER

lusty quest
#

probably not

dusky sundial
lusty quest
#

i guess he wants to start a witchhunt

dusky sundial
#

Well, I would advise against that

tired panther
#

revenge ablobdevil

fossil grove
#

Can discord make anything with him ?

#

where i report

tired panther
#

its your dumbness

lusty quest
#

it where mostly your own stupidity i guess

fossil grove
#

he is hacking peoples token

dusky sundial
#

If you want to report someone to Discord you'll need to go to their support. This is Top.gg

leaden rover
#

How do I get the latency of my Eris bot? This is for a ping command btw

fossil grove
#

u seems new

leaden rover
#

Google doesn't have the answer tho

earnest phoenix
#

@lusty quest

fossil grove
#

thats epic

leaden rover
#

thanks

leaden rover
tired panther
fossil grove
#

i joined the discord from 2 years i think or 3 years and idk what is webhook

lusty quest
glacial rapids
#

hii

#

wassup

lusty quest
fossil grove
#

Why dot deleted

#

...

tired panther
dusky sundial
#

Why are you trying to spam?

glacial rapids
#

anyone for voice call

tired panther
dusky sundial
fossil grove
#

is that python

#

What is this then

glacial rapids
#

yes its python

fossil grove
#

ok

#

Some peoples said python is trash

glacial rapids
#

no way

#

its the best coding language

fossil grove
glacial rapids
#

any anime lover ?

dusky sundial
#

This is for Development support and questions

glacial rapids
#

what kind of development

#

?

dusky sundial
#

Mostly bot development, but anything goes

carmine summit
#

ive been trying to fix my code for the last two hours

#

and this is the reason why its broken

#

I forgot startsWith() is a thing

#

im gonna fucking cry

dusky lagoon
#

.setAuthor(suggest.names.en, null, suggest.from.link) So this is connected with a link string BUT i want to add a nother string so that i have text under it how can i do that??

dusky lagoon
earnest phoenix
glacial rapids
#

visit my youtube channel scout
you will be amazed

#

๐Ÿ™ƒ

lusty quest
earnest phoenix
lusty quest
#

ohh wait to what ip did you bind?

earnest phoenix
glacial rapids
#

its wrong

lusty quest
#

i dont know py sry

earnest phoenix
lusty quest
dusky lagoon
#

.setAuthor(suggest.names.en, null, suggest.from.link) So this is connected with a link string BUT i want to add a nother string so that i have text under it how can i do that??

quartz kindle
earnest phoenix
quartz kindle
lusty quest
#

its not port, its ip

quartz kindle
#

its port

lusty quest
#

ive asked him if he tryed a different port and he said its still the same error (also possible that he picked another port that is already in use)

quartz kindle
#

that only means he has it duplicated somehow

#

so no matter what port he uses, it always tries to use it twice

earnest phoenix
quartz kindle
#

were you doing new DBL inside all commands?

#

then that explains it

opal plank
quartz kindle
#

???

earnest phoenix
#

????

opal plank
#

i seen commands like that somewhere

earnest phoenix
opal plank
#

initiating new clients inside commands

quartz kindle
#

i've seen it too

#

many times

crystal wigeon
#

These perms are weird

#

Now or says it donest have perms, in a channel where it does have perms

#

Bruh

opal plank
#

are you checking for guild perms or overrides?

carmine summit
#

if || is it required for the other one to be false to return true?

#

or it will return true even if there are two or one true in the statement?

#

hope I make sense

quartz kindle
#

no

#

it simple means you get the other one if the first one is falsey

#

falsey includes false null undefined 0 "" nan

#

it doesnt do any true false conversion

#

for example if you do
let a = 0 || 5;

#

you get 5

#

however if used inside an if, the if does the true false conversion

#

not the ||

#

for example if( 0 || 5 )

#

the if will pass, it first tests 0, but 0 is falsey, so it tests the other one

#

the other one is 5, which is not falsey, so the if accepts it as true

dense vapor
#

@hoary hill

#

hi i send my website code here

#

that i add into long description

#

i there any option i can edit a bot because when i add the css this happer

#

happen*

#

@hoary hill

#

website in my bot description

#

and thsi happen when add css and now i can't edit my bot

#

this*

#

@hoary hill

#

but i dont host a website right now

#

this happen

quartz kindle
#

remove doctype html and body

#

also that yes

dense vapor
#

ok but it's say the desc must be 300 char long

earnest phoenix
#

-help

quartz kindle
#

if youre not hosting a website then dont use an iframe

#

just open your index.html and put its code in the description

earnest phoenix
#

How can I make a website 4 my bot? on a chromebook

quartz kindle
#

without doctype html and body

dense vapor
#

i try other website

carmine summit
#

how do I send a message to an id?

earnest phoenix
earnest phoenix
dense vapor
#

click edit bot

dense vapor
#

of your bot

earnest phoenix
#

yes?

modest maple
#

Thats not your website lul

earnest phoenix
dusky lagoon
#

my bot is aproved and my invite link was out dated now im trying to change it but it doesnt want to save WHY

elfin karma
dense vapor
#

i am he

#

and i was thinking website like mee6 have

lament rock
#

one of the tabs says "how to get fortnit..." on YouTube CVRchanMonka

fossil grove
#

Help

#

Developers

#

Help

#

Mention me to help me

opal plank
#

@fossil grove

fossil grove
#

ok

opal plank
#

just ask your question here

#

someone's gonna help

fossil grove
#

My bot is in hacker's server
That hacks my old bot and when i be in the bot he said he knows someone to hack my new bot that in 89 server
Now i want blacklist code and server blacklist code

#

I want to black list him from all ways

#

And i want to make the bot leave his server

#

Anyone knows how ?

opal plank
#

show ur code

fossil grove
#

:c

opal plank
#

its quite simple

fossil grove
#

show what in code

opal plank
#

well, your bots code that you use for running commands

hasty lotus
#

guys, when installing @discordjs/opus on my vps i got this error (that i don't have when installing locally) :

npm ERR! code 1
npm ERR! path /home/IT/it-hub-bot/node_modules/@discordjs/opus
npm ERR! command failed
npm ERR! command sh -c node-pre-gyp install --fallback-to-build
npm ERR! internal/modules/cjs/loader.js:883
npm ERR!   throw err;
npm ERR!   ^
npm ERR! 
npm ERR! Error: Cannot find module '../lib/main'
npm ERR! Require stack:
npm ERR! - /home/IT/it-hub-bot/node_modules/.bin/node-pre-gyp
npm ERR!     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
npm ERR!     at Function.Module._load (internal/modules/cjs/loader.js:725:27)
npm ERR!     at Module.require (internal/modules/cjs/loader.js:952:19)
npm ERR!     at require (internal/modules/cjs/helpers.js:88:18)
npm ERR!     at Object.<anonymous> (/home/IT/it-hub-bot/node_modules/.bin/node-pre-gyp:2:1)
npm ERR!     at Module._compile (internal/modules/cjs/loader.js:1063:30)
npm ERR!     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
npm ERR!     at Module.load (internal/modules/cjs/loader.js:928:32)
npm ERR!     at Function.Module._load (internal/modules/cjs/loader.js:769:14)
npm ERR!     at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12) {
npm ERR!   code: 'MODULE_NOT_FOUND',
npm ERR!   requireStack: [ '/home/IT/it-hub-bot/node_modules/.bin/node-pre-gyp' ]
npm ERR! }
```I've searched on internet and didn't fount anything about it.
#

i've updated both npm and nodejs

fossil grove
#

I use Command handler and javascript
Now tell me the code and tell me where i put the code

opal plank
#

im not a magician yet to see the future or other peoples code

fossil grove
#

._.

#

Iam trying to protect my bot..

hasty lotus
fossil grove
#

?

#

Iam bad at english

hasty lotus
#

show your index.js

fossil grove
#

Ok.

opal plank
#

@fossil grove cant help if you dont show your stuff

fossil grove
#

1m

lusty quest
fossil grove
opal plank
#

that doesnt show your 'messag' event

hasty lotus
hasty lotus
fossil grove
#

I have index.js and commands folder and config.json

hasty lotus
#

yeah, continue to scroll down

#

to see where you run the commands

lusty quest
#

@hasty lotus ive sended him a hour ago the exact thing he wanted, since its on the d.js-guide

hasty lotus
#

k ๐Ÿ˜‚

fossil grove
lusty quest
#

he just dont know what he does

opal plank
lusty quest
earnest phoenix
#
0|index    |     at Module.Hook._require.Module.require (/usr/local/lib/node_modules/pm2/node_modules/require-in-the-middle/index.js:61:29)
0|index    |     at require (node:internal/modules/cjs/helpers:92:18)
0|index    |     at Object.<anonymous> (/root/NewAudio/Structures/ChocoClient.js:2:22)
0|index    |     at Module._compile (node:internal/modules/cjs/loader:1092:14)
0|index    |     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1121:10)
0|index    |     at Module.load (node:internal/modules/cjs/loader:972:32)
0|index    |     at Function.Module._load (node:internal/modules/cjs/loader:813:14)
0|index    |     at Module.require (node:internal/modules/cjs/loader:996:19)
0|index    |     at Module.Hook._require.Module.require (/usr/local/lib/node_modules/pm2/node_modules/require-in-the-middle/index.js:80:39) {
0|index    |   code: 'MODULE_NOT_FOUND',
0|index    |   requireStack: [
0|index    |     '/root/NewAudio/Structures/ChocoClient.js',
0|index    |     '/root/NewAudio/index.js'
0|index    |   ]
0|index    | }
#

I have installed discord js but still

#

And it's on node 15.x

#

What to do

unreal estuary
#

lol i made my first discord bot with python

#

it only has 1 command but it works (;

lusty quest
unreal estuary
#

lol peepoShrug

fossil grove
ornate otter
#

So, im having big issues installing nodejs on this ubuntu server

#

whenever i install node v10 and up i think, npm just doesnt work

lusty quest
#

how did you install it?

fossil grove
ornate otter
#

i've tried MANY ways of installing it,

#

none work,

fossil grove
ornate otter
#

This is what happens

lusty quest
#

from where did you installed the package source?

fossil grove
ornate otter
#

idk, cus i tried it in many different ways, when i gave up, the lead dev installed it and it did the same thing anyway

earnest phoenix
#

@lusty quest what

#

Can you name me which one๐Ÿ™„

lusty quest
earnest phoenix
#

Which one

lusty quest
#

no bcs there is stuff missing in the error stack

earnest phoenix
#

Huh

#

What to do

#

Now

lusty quest
#

/root/NewAudio/index.js what is in the index.js required? make sure everything required there is installed

lusty quest
ornate otter
#

of nodejs?

#

again? i've done that MANY times, i've spent 4-5 hours straight trying to get this to work before

quartz kindle
#

how did you install it?

vivid fulcrum
#

i'm guessing you followed the official guide on ubuntu based machines

fossil grove
lusty quest
#

something went wrong the last time since npm doesnt got installed

ornate otter
#

I didnt install this one, but i've tried nvm, i've tried sudo apt-get, i've tried this, i've tried that

#

i've tried way too much

vivid fulcrum
#

have you tried nodesource

ornate otter
#

yes

lusty quest
ornate otter
#

tried that guide

vivid fulcrum
#

huh

#

which ubuntu ver are you running on

ornate otter
#

16.04

#

dont ask, im not the host of the vps and i cant change it

vivid fulcrum
#

it should work according to the README

lusty quest
#

why are people still running such old OS

vivid fulcrum
ornate otter
#

Idfk

lusty quest
#

did you run apt update after installing the package sources?

ornate otter
#

yes

lusty quest
#

uninstall node and install it again over the package manager and look for errors

ornate otter
#

I did

#

i followed the guide

#

and same thing

solid bane
#

Did it crash edun

ornate otter
#

Troy, shove off

#

this isnt my vps

solid bane
ornate otter
#

its a stupid outdated vps i have to work with

lusty quest
#

did you somehow managed to install some strange package sources?

ornate otter
#

idk, if there is any, then it would have been the lead dev that installed them before giving me the vps

lusty quest
#

well, then this will be quite an annoying one

#

did you checked your package source file that everything in there is fine?

ornate otter
#

yes

earnest phoenix
#

@lusty quest hey I have installed everything which is in index.js but same error

lusty quest
earnest phoenix
#

Aah but I have installed everything what to do -_-

#

I am mindless now lol

lusty quest
#

you have something not installed or you require a file that is non existent

earnest phoenix
#

Oo

lusty quest
#

in worst case take a break of a hour or two and then get back into it, maybe its just a super simple error you just overlook

quartz kindle
boreal iron
#

@quartz kindle yikes... imagine you're generating a db and your RAM is full, now moving forward in slowmotion ~ 100,000 queries / 18s KEKW

quartz kindle
#

jeez

boreal iron
#

god thanks we're living in 2021 and god gave us NVmE

#

thought about switching to 3D-XPoint drives
... until noticing the prices for these drives

#

Last time I switched servers: [2020-08-07 19:32:23] steam_lookup.php -- Task done in 1678467.279 s pandasad

#

just took 19,4 days

lusty quest
boreal iron
#

it's fucking damn fast

lusty quest
#

they are quite nice, depending in what mode you use them

boreal iron
#

only a few big hosters got these hardware, but the prices are ridiculous

lusty quest
#

300โ‚ฌ for a 128GB DIMM module its fine

#

(used)

boreal iron
#

per month

lusty quest
#

nah i talk about the bigboy Optane

boreal iron
#

oh yeah they don't even have these in their options

#

not really a common server hardware I guess

lusty quest
#

NVME is already a huge upgrade over normal SSD and let alone spinning rust

boreal iron
#

god thanks we're living in 2021 and god gave us NVmE

#

yeah

lusty quest
boreal iron
#

guess my database generation would take weeks/month without NVmE

lusty quest
#

STH Main Site Article: https://www.servethehome.com/glorious-complexity-of-intel-optane-dimms-and-micron-exiting-3d-xpoint/
STH Merch on Spring: https://the-sth-merch-shop.myteespring.co/
STH Top 5 Weekly Newsletter: https://eepurl.com/dryM09

In this video, we show some hands-on features of Intel Optane DCPMM that make it both great, but also c...

โ–ถ Play video
boreal iron
#

well if you're big enough to own your own datacenters I'm sure you can put that extra money for optane

#

of course if your services even needs it

#

it's less expensive upgrading supported root servers to 512 GB RAM than renting the 3D XPoint drive

#

lmao

lusty quest
#

also PCIE 5 will be insane, having shared memory Pool for CPU and GPU

boreal iron
#

oof you're already speaking about PCIE 5... guess it will takes years until 4.0 got into the hands of a lot of costumers

lusty quest
#

also for your Root server issues:
Go to ebay, search for a decent Chassis, look for a decent CPU that at in the best case fits into your chassis, and spec yourself the RAM / Storage you need,
then get a decent Contract to rent a Rack space in a datacenter. should be cheaper in the long run

#

i think about doing it, with also adding a GPU to the server for acclerating ML stuff.

boreal iron
#

well I manages to buy a decent server for my home from a guy which too much money didn't know his server was worth

#

just a Fujitsu dual socket system with nice Intel Xeons

#

additionally buyed a few more drives (since I got a big hardware RAID controller in it), upgraded to 96GB RAM and the thing is running for lots of years now

#

being my 2nd backup stage and doing a lot of stuff for me inside me network

#

buyed 2 Seagate IronWolfs NAS drives with 12TB in RAID and they're amazing

#

expensive but amazing

lusty quest
#

im not sure with Seagate, heard some bad stuff about them in the past

#

also funny is that Seagate Enterprise Grade 12TB HDDs are currently cheaper than iron Wolf

boreal iron
#

well if it comes to huge NAS drives there's only WD Red or Seagate IronWolfs

rocky hearth
#

I want to create a mobile and a web app for my project. I'm using firebase as my backend.
I want to know that, how will I fetch the data. Do I have to use firebase functions to create an api.
Or I have to install the firebase package and get the data from client directly?

boreal iron
lusty quest
rocky hearth
#

fetching the data from client will not be an issue, if I use the security rules correctly

boreal iron
#

anyway tbh I never had one dying drive the last 15 years and I always trusted Seagate... that means at least I can't complain

lusty quest
boreal iron
#

thanks... 4 years too late

lusty quest
#

this is not this old, happened recently for some reason

boreal iron
#

ah alright, well due the amount of IO I read a lot of articels and user reviews before buying those NAS drives

#

not only backups are continuesly been written, a lot of security cams are also saving tons of pictures/videos each min as well

boreal iron
#

that's an subjective point of view... the overall review from users a big tech is pretty awesome for WD Reds and Seagate IronWolfs

lusty quest
lusty quest
boreal iron
#

nah these NAS drives are made for continuesly read/write

midnight blaze
#

anyone here who has experience with windows server 2016/2019?

boreal iron
#

that's already enough for what I need them

lusty quest
#

ive bought 3 WD Red and doged with all the SMR tech got also 1 WD Red pro but they are not affected

midnight blaze
#

cool

#

so I started to get into it

#

So, just a small question. I was reading some stuff about windows 2016 server.
Do I need a DC, DHCP and a DNS server to then being able to connect my local machines to the server?

boreal iron
#

connect my local machines to the server?

#

VM or external?

lusty quest
#

not really, RDP should work

midnight blaze
#

I did that with rdp

#

but that is rather limited, not?

#

you can not have many users

boreal iron
#

you're speakig about VM?

midnight blaze
#

hmm

#

no

#

well yes

lusty quest
#

DHCP is only for setting IPs in the network

midnight blaze
#

I have a vps

#

or let us say

#

few vps

boreal iron
#

ow default RDP is limited to 2 users

#

welcome to Windows

midnight blaze
#

for now I have one vps with windows 2016

#

can I like connect my local machine to that server (not talking about rdp)

boreal iron
#

and what`s the issue, you probably just need 1 RDP user

#

yes you can

midnight blaze
#

I want to change my system from workgroup

#

to a domain

boreal iron
#

depends on what u wanna do

midnight blaze
#

I guess that is how it works

#

right?

lusty quest
#

i currently bite me a bit into the ass, could have gifted a Windows Server 2016 Datacenter edition for free

#

a fricking 600โ‚ฌ License

#

but i said nah dont need Windows

boreal iron
#

you can use a VPN, Win DirectAccess, Win Remotehandling etc.

midnight blaze
#

so, look I already managed to do a simple server with rpd access

#

that aint difficult

#

but, I did that w/o a DC

boreal iron
#

if you wanna share the drive I would simply recommend FTP

#

but, I did that w/o a DC

#

what?

fossil grove
#

fuck my friends.

solemn quartz
#

guys i need help with a mute command, ima send my code

tired panther
#

we do not have glass balls

solemn quartz
#

let NHIP = new Discord.MessageEmbed()
.setColor(colore)
.setTitle("Missing Permissions")
.setDescription("yes")

if (message.content.toLowerCase().startsWith(config.prefix + "mute")) {
if (message.member.hasPermission('KICK_MEMBERS')) return NHIP.setDescription("You must have the Kick Members permission to use this command!"), message.channel.send(NHIP)
message.channel.send('yes')
}

tired panther
#

whats the rror?

fossil grove
#

MY FUCKING FRIENDS PUT MY BOT IN FUCKING FAKE SERVERS WHICH THAT MAKE DISCORD DO THIS

midnight blaze
boreal iron
fossil grove
#

:c

#

They said i will verify back after 2 weeks

tired panther
boreal iron
#

shh

#

move on with that bloatware

lusty quest
solemn quartz
#

it doesnt

#

i still need to code the rest

lusty quest
#

so you want to mute users?

solemn quartz
#

yea

lusty quest
#

in Voice channels or text channels?

boreal iron
solemn quartz
#

btw i want the bot to do 2 different things after checking the member's permission

#

i tried with a "," but it sends the embed too if i have the perms

earnest phoenix
boreal iron
#

@midnight blaze never leave a RDP opened up in the 'net, consider to change the firewall rules to accept specific external IPs only (for example your home IP)

midnight blaze
#

create a DC server, then you connect your local machine to that domain

midnight blaze
#

but for that you need DNS servr

boreal iron
#

oh ok

lusty quest
#

you dont need one

boreal iron
#

DirectAccess

solemn quartz
#

i think that its pretty simple but i dont know how lol

boreal iron
#

is what u need

lusty quest
#

exept you want to use your Server as DNS upstream server

earnest phoenix
#

Can anyone pls install quick.db and @discordjs/opus and send it as zip in dms cause i have to install python or c++ or something and i get errors every time

boreal iron
#

if you simply wanna manage the server use the new Windows admin center

#

I wouldn't use domain controllers for non-commerical stuff

#

just to much to setup and configure

midnight blaze
#

was talking to a guy from the microsoft discord

lusty quest
#

back at my times as Sysadmin we just had a VPN server allowing connection to the Windows server, made it quite secure

midnight blaze
boreal iron
midnight blaze
midnight blaze
earnest phoenix
lusty quest
#

then dont look into MSsql you will have a heart attack

solemn quartz
boreal iron
#

that's why I said using DirectAccess or the Windows admin center to manage the server is enough

boreal iron
lusty quest
#

like a 64 Core CPU will give you a small license fee of about 500k$

boreal iron
#

cough ebay Hongkong

earnest phoenix
midnight blaze
#

I actually like that

lusty quest
#

mysql not MSSQL

midnight blaze
lusty quest
#

MSSQL got a per core license

midnight blaze
#

Ahh

boreal iron
#

aye

midnight blaze
#

O:

boreal iron
#

$$$

#

for MS

midnight blaze
#

I have to look into that

tired panther
lusty quest
#

no

#

Brain is a different guy

tired panther
#

ik

earnest phoenix
#

Guys

#

Pls

lusty quest
#

did you installed the Build Tools?

earnest phoenix
#

Uhm

lusty quest
#

depending on your platform

earnest phoenix
#

Uuuhmm...

boreal iron
#

@midnight blaze anyway... NIC teaming also works to manage servers using the server manager

lusty quest
#

i wish people here would learn how to properly install production enviroments, or atleast try to google how to do so

boreal iron
#

but like I said I would recommend to use the win admin center feature to connect all servers together, it's free and browser based

lusty quest
#

windows got its uses for Servers, but linux is just superior

#

better I/O and faster file transfer speeds

boreal iron
#

it may not be exactly what u want but free is at least cheap compared to MS licenses

#

doesn't mean Windows Server is a bad platform

midnight blaze
#

Windows server is just used in big companies

boreal iron
#

got a few servers in my VM pool as well just because I need it for specific software

midnight blaze
#

so it is a good idea to learn about it

#

(that is what I thought)

earnest phoenix
lusty quest
#

yea, but most of them just use it bcs of easy integration into an existing windows dominated end user space

boreal iron
#

bc Windows comes with way more enterprise stuff in it's system out of the box than linux

lusty quest
#

sure linux also works but with windows you ahve some stuff that linux is a bot lackluster in

#

one thing Windows does way better is RDP, i havent found a Linux RDP client / server that doesnt suck

boreal iron
#

that's true but you don't even need to install the Windows GUI to use a Windows server, the CORE works out well, too

quartz kindle
#

red is full. blue is what you showed

boreal iron
#

imagine to be as fluent with the Windows command prompt than in Linux

#

and powershell of course

#

nowadays

vivid fulcrum
#

fun fact

lusty quest
#

most people with a Homelab / VPS run linux due to being cheaper

vivid fulcrum
#

windows terminal will be preinstalled in 21h1 and onwards

boreal iron
#

hold on

midnight blaze
#

I actually write scripts on powershell

#

it is quite need, I hope I can use that skill when I know more about networking

boreal iron
#

"preinstalled" I read uninstalled lmao

midnight blaze
#

๐Ÿ‘€

vivid fulcrum
#

they're making a huge leap on replacing old win32 apps with modern design

#

notepad got a new icon in the latest insider build i think

#

a sign they might be redesigning it

#

kind of like the notepads app on github

lusty quest
#

if they would also fix the file transfer stuff it would be dope

boreal iron
vivid fulcrum
#

good point

boreal iron
#

which brought a fucking huge amount of bugs into the server version

#

after I upgraded to 2019 a few years ago

midnight blaze
#

any of you used azure ?( I am still not sure if I should get into it)

lusty quest
#

azure is quite pricy

boreal iron
#

ewww shooo go away with azure

vivid fulcrum
#

they'll probably release winserver 2021 after 21h2 is released

lusty quest
#

but they will deploy some insane stuff in the next years

vivid fulcrum
#

21h2 is rumoured to be "the redesign"

boreal iron
#

hmm not sure if server 2021 is a thing, any rumors already?

midnight blaze
boreal iron
#

aynthing KEKW

lusty quest
#

azure is fine, just a bit expensive

boreal iron
#

shhh

vivid fulcrum
#
Microsoft Windows Server Blog

This post is authored by Bernardo Caldas, Vice President of Program Management, Core OS and Edge Infrastructure, Microsoft.ย  Today we are announcing that Windows Server 2022 is now in preview, the next release in our Long-Term Servicing Channel (LTSC), which will be generally available later this calendar year. It builds on Windows Server 2019, ...

boreal iron
#

ow didn't even know that one

midnight blaze
#

shiit

#

O:

vivid fulcrum
#

microsoft seems to be getting their shit together

boreal iron
#

hmm need to watch some reviews for it

lusty quest
#

i guess they noticed that they did some stuff bad within windows

boreal iron
#

hopefully they fixing important bugs in the server 2019 regarding task schedulers and network configuration

lusty quest
#

if they would make file transfers multi threaded it would be already a huge upgrade

vivid fulcrum
#

they were aware of the issues for a loooooooooooong time

solemn quartz
#
let NHIP = new Discord.MessageEmbed()
    .setColor(colore)
    .setTitle("Missing Permissions")
    .setDescription("yes")

if (message.content.toLowerCase().startsWith(config.prefix + "mute")) {
  NHIP.setDescription("You must have the `Kick Members` permission to use this command!")
  if (message.member.hasPermission('KICK_MEMBERS'))
  message.channel.send('yes')
}```

I need help, it sends yes if the author doesnt have the perm and doesnt if he has
earnest phoenix
#

@quartz kindle no -_- come dms

midnight blaze
#

if (

boreal iron
#

one year ago a server update reset my network configuration which made me loose the complete access to the server, needed to rent a KVM console for the server to fix shit up

#

since then I fully moved from Hyper-V to Proxmox

#

it's even more efficient

#

Linux of course

earnest phoenix
vivid fulcrum
#

if else command handling ๐Ÿ˜”

solemn quartz
#

well i just resolved it

earnest phoenix
#

well done

solemn quartz
#

lol ty

earnest phoenix
vivid fulcrum
#

seriously though js is so wild with its syntax you're free to create so many beautiful patterns and people resort to... if else

solemn quartz
#

just did this

 if (message.content.toLowerCase().startsWith(config.prefix + "mute")) {
  NHIP.setDescription("You must have the `Kick Members` permission to use this command!")
  if (message.member.hasPermission('KICK_MEMBERS')) {
    message.channel.send('yes')
  } else {
    message.channel.send(NHIP)
  }

}```
earnest phoenix
#

correct

solemn quartz
#

but i need to replace the message.channel.send('yes') with the actual code

earnest phoenix
#

although i don't see why you'd set the description there but if that's your workflow then sure

solemn quartz
#

because i already did an embed for missing permission, but only gived it a title and only a random description, so for example when you use the mute cmd it changes the desc to that so that if you dont have perms it sends that

earnest phoenix
#

๐Ÿ‘

#

might as well set it in the else statement

#

and then if they have the perms then set a different description in the if statement

solemn quartz
#

because if i wouldn't do this i either needed to make an embed for every command or make it say only that you dont have perms without specifing what

#

so i think that this is the better solution

boreal iron
#

hmm just took a quick look on some new 2021/22 features and changes even inside the admin center, doesn't look bad, saw quite some stuff moving the GUI, less work in the regeditor at least, yay

#

like I said, hopefully a lot of bugs got fixed the win 10 platform has brought into it

bold marlin
#

anyone got game ideas ? currently got cf, connect4, fight, guesseasy, guesshard, hangman, rps, ttt, trivia idk what else is fun to add

#

idc if it's hard

earnest phoenix
#

idk battleships

fiery copper
#

Battleships would be difficult but interesting

earnest phoenix
#

the bot will send a dm to the person about where their ships are placed, and then they'll take turns trying to destroy each other's ships

earnest phoenix
#

I made my brother a bot, called Saitama..

bold marlin
#

437 lines -___-

bold marlin
fiery copper
bold marlin
#

propper reaction listener and it doesn't break all the time like dank memers + more functiosn

#

and accepting / declining etc

fiery copper
#

Dank memer is kind bad imo

bold marlin
#

yeah

#

im still not done with fight though xD

#

wanna add more fun messages to it and i still need to add decline

#

top denied my bot for needing manage messages for connect4.. nice

fiery copper
#

Mine got accepted despite not having any help command, which I'm adding rn

bold marlin
#

bruh

#

i dont get why they deny bots for manage messages anyways. it needs it to remove reactions + the perms are channel specific

fiery copper
#

My friends got declined for perms it needed, my bot is fairly basic so it doesn't need too much

bold marlin
#

62k users in 2 verified partnered servers and i still get denied. then my friends crappy bot gets accepted MegaKEK

fiery copper
#

My bot's not crappy but it is still in an early alpha so yeah

lusty quest
fiery copper
#

Does mongodb require any sort of port fowarding?

bold marlin
#

its just my games dont work without manage messages everything else was fine

#

cause connect4 removes reactions from none playing players and deletes a reaction when a row is fully filled up

lusty quest
#

this seems to be odd. what where the decline reason?

lusty quest
modest maple
bold marlin
#

for the games

modest maple
#

which imo you really shouldnt do

bold marlin
#

thats why i got declined

#

cause it's a "useless permission"

tired panther
#

hmm...

bold marlin
#

but it's not cause its for the functionallity of the bot

modest maple
#

so many people expose their DBs to the outside world without securing shit

bold marlin
#

and it's channel specific permissions

#

so i find it pretty dumb

lusty quest
bold marlin
#

that they deny for that

modest maple
#

do you want your bot to grow?

bold marlin
#

nah he was being pretty rude so i just made the check say: I am missing the permission: "Manage Messages" In this channel

#

instead of just: I am missing the permission: Manage Messages

fiery copper
bold marlin
#

there was i dmd with the guy

fiery copper
#

Oh

bold marlin
#

but its what ever i changed the message

#

they shouldn't have any reason to deny it now

bold marlin
#

funny thing is that it litterally needs manage messages to remove reactions

#

there is no other way

#

lmao

lusty quest
#

well you dont need to remove reactions, just have the user remove them

modest maple
#

it needs to remove other's reactions?

bold marlin
#

also there are bots on the website that have it the exact same way

bold marlin
modest maple
bold marlin
#

even for removing

#

it's own reactions

#

it needs manage messages

modest maple
#

no...

#

it really doesnt

bold marlin
#

i might be wrong on that one but i'm pretty sure it does

modest maple
#

permissions for bots arent magically different from users

#

in the same way you can and and remove reactions without manage messages

#

they can add and remove its own reactions without manage messages

lusty quest
#

he wants to remove reactions from other users, for this you need manage messages

#

the own reactions are easy

modest maple
#

ye

bold marlin
#

try it

#

i bet it cant

#

i just tested again

#

oh wait im an idiot you where talking about self

lusty quest
#

why did you have to remove the reactions with the bot anyways? just have the user to remove them

bold marlin
#

mb

solemn quartz
#

Guys how to find a specific role in the guild by it's name?

#

message.guild.roles.find?

#

???

slender wagon
#

message.guild.roles.cache.find

#

I thinkk

boreal iron
#

if it's cached, yes message.guild.roles.cache.get()

solemn quartz
#

what does cached mean? im italian sorry

#

im just saying that im italian every fucking day im annoying

#

fuck off myself

boreal iron
#

if you're using djs it is already

solemn quartz
#

k

#

ty

boreal iron
#

don't worry

#

get(role.id)

#

find may also work etc.

solemn quartz
#

ty but i need to find it by it's name

#

wait i found something on stack overflow

boreal iron
#

well than use find()

solemn quartz
#

i can type like this i think
let mutedR = member.guild.roles.get('Muted');

boreal iron
#

nope

solemn quartz
boreal iron
#

yeah

solemn quartz
#

ok tysm

boreal iron
#

maybe do role.name.toLowerCase() == "muted"

solemn quartz
#

oh right

#

ty

#

again

boreal iron
#

in case somebody named it mUteD or muteD

#

np

solemn quartz
#

wait

#

but i need that if it doesnt exist to send a message

#

and if it does to go to the next steo

#

step

boreal iron
#

const role = message.guild.roles.cache.find((role) => role.name.toLowerCase() == "muted");
if(!role) return //didn't found it

solemn quartz
#

k thanks

#

Oh fuck

#

nvm

#

ill think about it later

#

wtf my bot is spamming embeds

sour flame
#

...

#

can I see?

solemn quartz
#
let NHIP = new Discord.MessageEmbed()
    .setColor(colore)
    .setTitle("Missing Permissions")
    .setDescription("yes");

if (message.content.toLowerCase().startsWith(config.prefix + "mute")) {
  NHIP.setDescription("You must have the `Kick Members` permission to use this command!")
  if (message.member.hasPermission('KICK_MEMBERS')) {
const mutedR = guild.roles.cache.find(role => role.name.toLowerCase() == "muted");
let noMutedR = new Discord.MessageEmbed()
.setTitle('Missing muted role')
.setDescription('Please make a role named "muted"!');
  if(mutedR) return message.channel.send(noMutedR) 
  else {
    message.channel.send('lol')
  }
    }
  } else {
    message.channel.send(NHIP)
  }```
#

wiat

#

wait

swift cloak
#

Ok thank you

solemn quartz
#

i found the error real quick

#

lol

sour flame
#

lol

solemn quartz
#

nvm

#

it still spams them

sour flame
#

can I see what its spamming?

solemn quartz
#

wait maybe i solved it

#

idk what the fuck is happening

#

JESUS CHRIST I SOLVED IT

#

THANK YOU GOD

#

the { went with other }s

sour flame
#

why send lol in a mute command

solemn quartz
#

i still need to make the rest

sour flame
#

kk

solemn quartz
#

Wait actually it should'nt send lol

#

it should send that there is no muted role

#

wtf

#

FUCK

hybrid jungle
#

oii

#

como estรฃo ?

#

morreu geral

#

triste

#

i am the only brazillian ?

#

i think so

quartz kindle
#

@hybrid jungle outros idiomas sao permitidos somente no #general-int

#

aqui so se pode falar ingles

hybrid jungle
#

a

solemn quartz
hybrid jungle
#

ok ok sorry

#

i understand

solemn quartz
#

kk

dense vapor
#

anybody know why this happen when i add iframe

solemn quartz
#

if you want to talk with other brazilians try in #general-int

#

@hybrid jungle

quartz kindle
#

already told them

solemn quartz
#

oh right

#

are you brazilian?

quartz kindle
#

sort of

round cove
#

Tim's a qt.

hybrid jungle
#

KKKK OMG

solemn quartz
#

My first tought was that he used google translate

solemn quartz
#

im not brazilian

dense vapor
#

its working now

solemn quartz
#

@dense vapor yay :D

hybrid jungle
#

like this

dense vapor
hybrid jungle
#

stop with what ?

dense vapor
#

KKK

hybrid jungle
#

ow

#

In Brazil "KKK" is a laugh, so what's wrong with me laughing?

slender thistle
#

Just

#

Leave it

dense vapor
sour flame
#

can anyone help meh

#

I'll send the code

pale vessel
#

My god

#

Just shut up

hybrid jungle
slender thistle
#

You're not discussing anything related to programming atm

hybrid jungle
#

oh ok

sour flame
# sour flame can anyone help meh

@client.command()
async def buy(ctx,item,amount = 1):
  await open_account(ctx.author)

  res = await buy_this(ctx.author,item,amount)

  if not res[0]:
    if res[1]==1:
      await ctx.send("That Object is not here")
      return
    if res[1]==2:
      await ctx.send (f"You don't have that much money in your wallet to buy {amount} ")
      return

  await ctx.send(f"Cool!! You just bought{item}")
``` The buy commmand ^^^ ```js
@client.command()
async def shop(ctx):
  em = discord.Embed(title = "Shop")


  for item in mainshop:
    name = item["name"]
    price = item["price"]    
    desc = item["description"]
    em.add_field(name = name, value = f"${price} | {desc}")

  await ctx.send(embed=em)
``` The shop commands ^^^
#
mainshop = [{"name": "Pickaxe","price": 100, "description": "Mine" },{"name": "Sword","price": 2000, "description": "Fight" },{"name": "PC","price": 10000, "description": "Game" }]
``` mainshop