#development
1 messages ยท Page 1662 of 1
I learnt ms logo at 8

My first ever lang was wiremod expression 2
Shit's c-based
Ms logo?
No idea what's that
I see
someone help 
Wait
on kibana. its not letting me upload .log file
also 1 file worked but its not showing logs but instead shows an aggregated bar
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
Isn't it too big?
Change extension to txt then
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
Idk then, but try changing the extension
Just opload on hatebin
how do we get the bot ?
how
What bot but?
do i need to be on PC
You wanna invite a bot or make your own?
makew my own
can i textg you private
Then move onto bot development
No
Fortnite bots?
Hey does anyone know if the site support discord webhook as the voting webhook? Please ping me if you have an answer
Nope you need to setup your own webhook service to receive the topgg webhooks.
how do i check if bot has permissions to send message in a particular channel?
Okay thanks
message.member.permissions.has()
that's for a user not the bot
You can use the permission's bitfield, name or even an array of names
Oh lmao I should read more carefully
not the member but the bot
Then use message.channel.permissionsFor()
const permissions = message.channel.permissionsFor(message.guild.members.cache.find(...));
if(permissions && (permissions.has(xxx) || permissions.has(yyy)))
its weird
because it shows the bot has perms in that specific channel
but it doesnt
why dont use message.guild.me? returns the member object of the bot
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
eww var
[ '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
for the bot?
yes
Yeah I do always forget the /me endpoint
since client.user is just the user object not the member
client.guild.me instead of client.user
is there a simpler phrase for this? .replace(/^\s/g, "").replace(/\s$/g, "")
what did you want to do?
client.guild.me is undefined
it still shows all perms
even tho it doesnt have those perms in that channel
i tried channel.permissionsFor
still returned the same array
const botPermissionsIn = guild.me.permissionsIn(channel); this should return the permissions the bot got in this channel
channel id? or the whole channel
channel object
it returned a bitfield
this helps
console.log(botPermissionsIn.serialize())
should return an object with the permissions
noice
damn i really need to learn how to serialize those objects :c
well
that also didnt work
what does it give you?
because it says it has send message perms
i mean. in the channel it deosnt have any perms
but it says
it does
yes
the bot isnt even in that channel
does the bot got view channel permissions?
nop
but it says it can send message
do it work?
VIEW_CHANNEL: false, SEND_MESSAGES: true,
nah i mean it doesnt send the message because discordApi
throws error
well then it works as intended
you need View_Channel and Send Messages to send stuff
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"}]
probably, but idk the answer
he wants to sort the array to get an array of the lowest numbers
@boreal iron I want to like sort it for every product on the lowest price
Object.keys and Object.values will be your friends to sorting it 
should I just .sort it then just remove the duplicates?
Oh there similar object keys, I see
yeah I think sorting it to the price then removing the duplicate products is the way to go
from where did you get the array anyways? if its a database you could already get it sorted from there
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
its from an api that I optimized to remove the useless content and just keep the item name and the price
ok
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort this maybe helps
The sort() method sorts the elements of an array in place and
returns the sorted array. The default sort order is ascending, built upon converting the
elements into strings, then comparing their sequences of UTF-16 code units values.
for objects well it could be a bit more annoying
yeah I think I can do it
but that's an array though
i guess this helps even more
<array>.sort((a, b) => {
return a.price - b.price;
});
Something like this
Actually canโt test it on mobile
?help
Just sort it then remove the duplicates if their value is larger than the found other dublicate
yes
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).
you wont get ratelimited at all, its just a thing to keep in mind, if its a private bot you shant need to worry too much
Yeah you're right the test has been running since last night and it's still editing fine every 30s this morning
just an FYI, global ratelimit is usually 50 requests per second, and one message per second on channel, so you fine, but i would not recommend lowering that
also copying my status

everyone is

it spreaded around like a wild fire
or legs
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

LMFAO
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
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
Dont know if there are any weebs among us BUT making a anime suggestion command only i dont know about the looks any suggestions
/poll "test poll"
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
Help :c
you probably want then to add a check in your command handler who check in a database if the user got Premium
we can only help if we know what the issue is
I want blacklist code that blacklist someone in discord by his id
language?
how can i do this? sorry, im not the best one in things like that
Ok thank you
did you use a database?
just json
DONT use Json as a database
but you know how to read stuff from the json file as required in your code right?
i dont want to make database, i just want to check if the user voted on topgg (@top-gg/sdk)
you have to store the votes somewhere, otherwise it will not work
Hey guys,
Welcome to my new video!
My bot's link:
like this
but with cmd handler
unless you wanna get the votes each request
you could use a collection
or redis
redis is a database
eeeh
https://www.youtube.com/watch?v=2RZ54W82JYI this works, but i want to make it with cmd handler so premiumOnly: true, but i dont know how
i wont watch a 7 Minutes video with this stupid music in the background
u dont have to, just put it on like 5 minutes and pause
does this stupid video got a github repo attached?
nope
idk
@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;
});
did you know javascript?
yes ?? 
as far as i understand users with those ids wont be able to use that specific on message handler
..
not sure if it will still hit other listeners after that thouhg
did you use a command handler?
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
ok 
if you just copy/paste the entire snippet into your command handler you could run into issues
nope, violates discord TOS
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 ?
do u want the id of his accounts ?

WHY?
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
did you made it?
THIS IS HIS SERVER
probably not
Why are you sharing this?
i guess he wants to start a witchhunt
Well, I would advise against that
revenge 
what did he do?
its your dumbness
it where mostly your own stupidity i guess
he is hacking peoples token
If you want to report someone to Discord you'll need to go to their support. This is Top.gg
How do I get the latency of my Eris bot? This is for a ping command btw
u seems new
Google doesn't have the answer tho
@lusty quest
thats epic
client.ws.ping
thanks
Don't share you token mate! Someone could leak it
the code is trash
where is the issue then? just add the dbl.hasVoted() line to your command handler and if its true allow the commands to run if not deny it
@lusty quest
Stop fricking pinging me with random stuff lol
you guys are annoying
Why are you trying to spam?
anyone for voice call
Move to #general for casual conversation please
yes its python

any anime lover ?
Mostly bot development, but anything goes
ohh..
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
.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??
Bruh that looks like the hypixel bot
use a different port
also doesnt work
ohh wait to what ip did you bind?
lol
its wrong
yesterday it worked
doesnt change the fact that the lib you use is deprecated for a while
.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??
are you using the sharding manager?
Noup
add a description under
then you're somehow using the same port more than once inside your bot
its not port, its ip
its port
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)
that only means he has it duplicated somehow
so no matter what port he uses, it always tries to use it twice
It doesnt matter now cause i just found out it doesnt work with cmd handler lol
module.exports = {
name: 'ping',
run(message) {
const client = new Discord.Client(token);
message.reply(client.ws.ping);
}
}```
????
i seen commands like that somewhere

initiating new clients inside commands
These perms are weird
Now or says it donest have perms, in a channel where it does have perms
Bruh
are you checking for guild perms or overrides?
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
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
@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
ok but it's say the desc must be 300 char long
-help
if youre not hosting a website then dont use an iframe
just open your index.html and put its code in the description
How can I make a website 4 my bot? on a chromebook
without doctype html and body
how do I send a message to an id?
can u helpp meh
how ca i make that?
click edit bot
Thats not your website lul
she asked me did i have it -_-
my bot is aproved and my invite link was out dated now im trying to change it but it doesnt want to save WHY
she or he
i am he
and i was thinking website like mee6 have
one of the tabs says "how to get fortnit..." on YouTube 
@fossil grove
ok
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 ?
show ur code
:c
its quite simple
show what in code
just return if user.id === his id
well, your bots code that you use for running commands
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
I use Command handler and javascript
Now tell me the code and tell me where i put the code
once again, i cant help if i dont know what you're doing

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

how is your command handler made ?
show your index.js
Ok.
@fossil grove cant help if you dont show your stuff
1m
i gave you a example for this like a hour ago
..
that doesnt show your 'messag' event
i get the same error when installing node-opus and opusscript :/
show your ready and message event blocks
@hasty lotus ive sended him a hour ago the exact thing he wanted, since its on the d.js-guide
k ๐
he just dont know what he does
under message, just check if message.author.id === 'the guy you want to blacklist' return
https://discordjs.guide/popular-topics/faq.html#how-do-i-block-a-user-from-using-my-bot remember this?
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
lol i made my first discord bot with python
it only has 1 command but it works (;
you miss amodule, should be in the top of the error stack
lol 

So, im having big issues installing nodejs on this ubuntu server
whenever i install node v10 and up i think, npm just doesnt work
how did you install it?


from where did you installed the package source?

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
the error say that you are missing a node module
Which one
no bcs there is stuff missing in the error stack
/root/NewAudio/index.js what is in the index.js required? make sure everything required there is installed
remove the installation and start over
of nodejs?
again? i've done that MANY times, i've spent 4-5 hours straight trying to get this to work before
how did you install it?
i'm guessing you followed the official guide on ubuntu based machines
something went wrong the last time since npm doesnt got installed
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
have you tried nodesource
yes
https://computingforgeeks.com/install-node-js-14-on-ubuntu-debian-linux/ this guide works for me. node 14 is the current lts
tried that guide
it should work according to the README
why are people still running such old OS
Idfk
did you run apt update after installing the package sources?
yes
uninstall node and install it again over the package manager and look for errors

its a stupid outdated vps i have to work with
did you somehow managed to install some strange package sources?
idk, if there is any, then it would have been the lead dev that installed them before giving me the vps
well, then this will be quite an annoying one
did you checked your package source file that everything in there is fine?
yes
@lusty quest hey I have installed everything which is in index.js but same error
then you have in the other file mentioned in the error something you require but never installed
you have something not installed or you require a file that is non existent
Oo
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
you didnt post the full error
@quartz kindle yikes... imagine you're generating a db and your RAM is full, now moving forward in slowmotion ~ 100,000 queries / 18s 

jeez
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 
just took 19,4 days
funny how ive just watched a STH video about Optane
it's fucking damn fast
they are quite nice, depending in what mode you use them
only a few big hosters got these hardware, but the prices are ridiculous
per month
nah i talk about the bigboy Optane
oh yeah they don't even have these in their options
not really a common server hardware I guess
NVME is already a huge upgrade over normal SSD and let alone spinning rust
facebook uses them in pretty much every frontend server
guess my database generation would take weeks/month without NVmE
https://www.youtube.com/watch?v=dOV3gGncGU8 this stuff is insane
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...
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
also PCIE 5 will be insane, having shared memory Pool for CPU and GPU
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
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.
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
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
well if it comes to huge NAS drives there's only WD Red or Seagate IronWolfs
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?
damn didn't even know that ffs
create a API to access your database, never directly expose the database
fetching the data from client will not be an issue, if I use the security rules correctly
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
Amazon.com 12TB Iron Wolf Pro: 329โฌ
Exos 12TB: 210โฌ
thanks... 4 years too late
this is not this old, happened recently for some reason
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
btw some WD Reds are SMR
that's an subjective point of view... the overall review from users a big tech is pretty awesome for WD Reds and Seagate IronWolfs
then i would not use NAS Drives, better get something like WD Purple, they are made for suvailance
if you know what you have to look at you can find them relatively easy
nah these NAS drives are made for continuesly read/write
I know, just saying
anyone here who has experience with windows server 2016/2019?
that's already enough for what I need them
ive bought 3 WD Red and doged with all the SMR tech got also 1 WD Red pro but they are not affected
sure what's up?
a little bit
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?
not really, RDP should work
I did that with rdp
but that is rather limited, not?
you can not have many users
you're speakig about VM?
DHCP is only for setting IPs in the network
for now I have one vps with windows 2016
can I like connect my local machine to that server (not talking about rdp)
depends on what u wanna do
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
you can use a VPN, Win DirectAccess, Win Remotehandling etc.
so, look I already managed to do a simple server with rpd access
that aint difficult
but, I did that w/o a DC
if you wanna share the drive I would simply recommend FTP
but, I did that w/o a DC
what?
fuck my friends.
guys i need help with a mute command, ima send my code
send it
we do not have glass balls
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')
}
whats the rror?
MY FUCKING FRIENDS PUT MY BOT IN FUCKING FAKE SERVERS WHICH THAT MAKE DISCORD DO THIS
dont worry ๐ domain controller

oh alright, DC usually means Datacenter
= DC
pls use a codeblock next time, also why does your mute command kick users?
so you want to mute users?
yea
in Voice channels or text channels?
now what do u wanna actually connect? the drive or do wanna secure your RDP connecting with a DC?
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
no
how long do they take to answer
@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)
create a DC server, then you connect your local machine to that domain
anyone can help me?
but for that you need DNS servr
oh ok
you dont need one
DirectAccess
i think that its pretty simple but i dont know how lol
is what u need
exept you want to use your Server as DNS upstream server
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
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
back at my times as Sysadmin we just had a VPN server allowing connection to the Windows server, made it quite secure
Pls
just doing that to learn
ah, alright, but like I said buying licenses is expensive
yes, that is easy, but I want to understand how it works
yep...sadly^^
Bruh ;-;
then dont look into MSsql you will have a heart attack
?
that's why I said using DirectAccess or the Windows admin center to manage the server is enough
but you can actually connect servers also using TEAMING
like a 64 Core CPU will give you a small license fee of about 500k$
cough ebay Hongkong

my bot is made with mysql ๐
I actually like that
mysql not MSSQL
I have to look into that
MSSQL got a per core license
Ahh
aye
O:
I have to look into that
?
wait, are you @Brain#0001 ?
your name is conufsing me lol
ik
did you installed the Build Tools?
Uhm
depending on your platform
Uuuhmm...
@midnight blaze anyway... NIC teaming also works to manage servers using the server manager
i wish people here would learn how to properly install production enviroments, or atleast try to google how to do so
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
hmm ok thanks!
windows got its uses for Servers, but linux is just superior
better I/O and faster file transfer speeds
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
Windows server is just used in big companies
got a few servers in my VM pool as well just because I need it for specific software
It's full
yea, but most of them just use it bcs of easy integration into an existing windows dominated end user space
bc Windows comes with way more enterprise stuff in it's system out of the box than linux
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
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
imagine to be as fluent with the Windows command prompt than in Linux
and powershell of course
nowadays
fun fact
most people with a Homelab / VPS run linux due to being cheaper
windows terminal will be preinstalled in 21h1 and onwards
I actually write scripts on powershell
it is quite need, I hope I can use that skill when I know more about networking
"preinstalled" I read uninstalled lmao
๐
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
if they would also fix the file transfer stuff it would be dope
well the architecture of Windows server 2019 is based on Windows 10 not of the previous arch anymore
good point
which brought a fucking huge amount of bugs into the server version
after I upgraded to 2019 a few years ago
any of you used azure ?( I am still not sure if I should get into it)
azure is quite pricy
ewww shooo go away with azure
they'll probably release winserver 2021 after 21h2 is released
but they will deploy some insane stuff in the next years
21h2 is rumoured to be "the redesign"
hmm not sure if server 2021 is a thing, any rumors already?
what is so bad about it? sounds good?
aynthing 
azure is fine, just a bit expensive
shhh
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, ...
ow didn't even know that one
microsoft seems to be getting their shit together
hmm need to watch some reviews for it
i guess they noticed that they did some stuff bad within windows
hopefully they fixing important bugs in the server 2019 regarding task schedulers and network configuration
if they would make file transfers multi threaded it would be already a huge upgrade
they were aware of the issues for a loooooooooooong time
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
@quartz kindle no -_- come dms
if (
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
yeah
there's many things wrong with that code, you're gonna need to learn some basic javascript, you don't even send the embed and the if statements don't return a message, and I assume it's not even on the line you want it to be on i.e. where it is meant to trigger
if else command handling ๐
well i just resolved it
well done
lol ty
good old days
seriously though js is so wild with its syntax you're free to create so many beautiful patterns and people resort to... if else
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)
}
}```
correct
but i need to replace the message.channel.send('yes') with the actual code
although i don't see why you'd set the description there but if that's your workflow then sure
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
๐
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
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
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
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
idk battleships
Battleships would be difficult but interesting
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
yeah it'll be kinda difficult
I made my brother a bot, called Saitama..
i just did fight
437 lines -___-
i'll look into it
Jesus
same type of fight as dank memer but better imop
propper reaction listener and it doesn't break all the time like dank memers + more functiosn
and accepting / declining etc
Dank memer is kind bad imo
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
Mine got accepted despite not having any help command, which I'm adding rn
bruh
i dont get why they deny bots for manage messages anyways. it needs it to remove reactions + the perms are channel specific
My friends got declined for perms it needed, my bot is fairly basic so it doesn't need too much
62k users in 2 verified partnered servers and i still get denied. then my friends crappy bot gets accepted 
My bot's not crappy but it is still in an early alpha so yeah
user count means nothing lol
the help command has to work without any permissions
Does mongodb require any sort of port fowarding?
no my help command works fine
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
this seems to be odd. what where the decline reason?
depends, if you use it local no
if you want to expose it to the outside network
my bot needing manage messages...
for the games
which imo you really shouldnt do
hmm...
but it's not cause its for the functionallity of the bot
so many people expose their DBs to the outside world without securing shit
yes the reason should state exactly why, if its just bcs of the permission you might could ask the Reviewer who got your bot
that they deny for that
do you want your bot to grow?
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
I searched for mentions of you in logs and it looks like there wasn't a reason ?
there was i dmd with the guy
Oh
but its what ever i changed the message
they shouldn't have any reason to deny it now
#mod-logs message
thats the reason
funny thing is that it litterally needs manage messages to remove reactions
there is no other way
lmao
well you dont need to remove reactions, just have the user remove them
it needs to remove other's reactions?
also there are bots on the website that have it the exact same way
yeah

i might be wrong on that one but i'm pretty sure it does
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
he wants to remove reactions from other users, for this you need manage messages
the own reactions are easy
ye
gl
try it
i bet it cant
i just tested again
oh wait im an idiot you where talking about self
why did you have to remove the reactions with the bot anyways? just have the user to remove them
mb
Guys how to find a specific role in the guild by it's name?
message.guild.roles.find?
???
if it's cached, yes message.guild.roles.cache.get()
what does cached mean? im italian sorry
im just saying that im italian every fucking day im annoying
fuck off myself
if you're using djs it is already
well than use find()
i can type like this i think
let mutedR = member.guild.roles.get('Muted');
nope
so message.guild.roles.cache.find(role => role.name === 'Muted')
yeah
ok tysm
maybe do role.name.toLowerCase() == "muted"
wait
but i need that if it doesnt exist to send a message
and if it does to go to the next steo
step
const role = message.guild.roles.cache.find((role) => role.name.toLowerCase() == "muted");
if(!role) return //didn't found it
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
Ok thank you
lol
can I see what its spamming?
wait maybe i solved it
idk what the fuck is happening
JESUS CHRIST I SOLVED IT
THANK YOU GOD
the { went with other }s
why send lol in a mute command
i still need to make the rest
kk
Wait actually it should'nt send lol
it should send that there is no muted role
wtf
FUCK
oii
como estรฃo ?
morreu geral
triste
i am the only brazillian ?
i think so
@hybrid jungle outros idiomas sao permitidos somente no #general-int
aqui so se pode falar ingles
a
@hybrid jungle #rules-and-info 7.
kk
already told them
sort of
Tim's a qt.
OK I UNDERSTAND
KKKK OMG
My first tought was that he used google translate
its working now
@dense vapor yay :D
wtf stop with this
stop with what ?
KKK
why can't i stay here? I am speaking English, am I not?
You're not discussing anything related to programming atm
oh ok
@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
