Your own Discord Bot - Aliases (2021)Whats going men your individual Discord Bot - Aliases (2021)what is going on men Your own



Code your individual Discord Bot - Aliases (2021)
what is going on men welcome back to. an additional discord.js academic in latest. academic we will be including. aliases. to our commands in our discord bots if. you do not know what an alias is. google tells me that its a false or. assumed identity. what this suggests is to illustrate lets say. i create a command. which is play which joins a voice. channel and starts playing a command. yet lets say i desire to execute this. very same code. of this command using an extra keyword so. in preference to play. i want to execute this with pl and just. with the aid of doing. this here it will still execute. an identical. code as play and this is extremely simple. it will be an extremely brief video yet. before i get started i do favor to offer. my discord server a quick shout out it. has been like 4 days for the reason that we. formally launched. we have over one thousand members already.
Come right here when you are. into coding disc or mods it is a. coding neighborhood for discord bots. and also we do have a bit chat vicinity a. little lounge location if you guys desire to. talk. to the community so theres going to be. a hyperlink in description to this discord. server. come ahead join so lets go forward and. start with the actual. code so like i reported very brief video. all you are going to want is to go to. your message event when you are new right here. be sure to watch. the complete occasion handler video because. we restructured our whole entire task. so lets get started here. in our message event weve a const. command and this is the same as purchaser that. commands that gets cmd. were going to edit this and do an or so. or. it will be purchaser that commands. dot uncover well create a. variable im just going to name the.
Variable a. with an arrow function a dot aliases. aliases after which and. i am actually going to copy aliases and a. dot aliases. that includes and were going to pass. in that cmd a different time cmd. is thiis constant up here which is simply. rx that shift that to a lower case. and actually were just about performed. with the message pursuits. now from right here go to all of your comments. and well create the aliases up. here. so aliases colon it will be a list. and you can start. typing your aliases so for the mc server. were gonna have 3 aliases. one is gonna be mc the subsequent one goes. to be mce. assess and the ultimate one were just gonna. write out minecraft. and ensure you set out the comma at. the top save it. store every little thing and everything must be. walking nice lets cross ahead and do note. space dot. there we go its on line lets cross into.
Our discord server test walking. the first professional name of the command. which became mc server so mc server. youll discover it will say please. enter a minecraft ip and then we are able to. additionally run. mc it is going to say please enter my. variety uh whats the other one thats the. mc. examine and then we also have minecraft. so all of these instructions listed here are. technically running. exactly the same code which is this. notwithstanding. you recognize it is simply it is the aliases its. the same as the referred to as. um commands right here so it technically. all works i can actually do anything. like. mcmc.highpixel.web. two 5 five six five and there we pass. the physique is gonna work. now what in case you wanna use these aliases. as something like a side command. so as opposed to strolling the exact same. code perhaps i want to have. mc right here run a different code than.
This yet nonetheless have it in an identical file. here. how you do it is come all the way. here well upload whatever down. right here in the execute technique. and we will call it cmd were. clearly passing cmd here. that is this variable you can upload in. any region right here i am simply going to add it. here in the boys in the center subsequent. message then come here into your. command upload it besides what you want to. do is copy. all of the code and you only desire to pass. forward. and assess for the cmd. so all you do is do if cmd triple equals. two. and the first one is usually going to be. the particular main command so. mc server and then pass ahead and paste in. your code then come each of the manner down. right here and then do the next in that case. if cmd triple equals to mc that is the. first alias we are simply going to console. that log.
And were going to console the log. asserting this is not. an mc server after which lets do one final. one. which is if cmd triple equals to. uh minecraft and iits going to say. message.channel thats ship again you. guys can kind whatsoever you guys desire. here. its aactually not console.log permit me. message that channel. thats send so they can see it on the. server. and for the minecraft you can say we. love. minecraft so utilizing those three aliases. were in fact walking three extraordinary. commands. in a single command file now technically you. would. do varied commands and its gonna be. no special than the particular command. handler that we had earlier than but with this. new command handler we are literally. organizing every thing. so you do wanna have your command you. recognize files and every thing organized. its just that if you want to have a you.
be aware of a further alias with one other. function. im just showing you so lets go ahead. and run this. and now if we do mc. server it really is the first command so. please enter your minecraft ip. then if we do mc its going to say this. is not a minecraft server. this is not a micro server and if we do. minecraft it will say yay. minecraft we like minecraft. and that is how you actually can run. distinct commands in a single command folder. utilizing aliases. traditionally you just want to use. aliases as aliases. yet oftentimes when you are doing. whatever just like the play and depart. command you might want to have them in. the same. file so you can use the exact same. things so i will use. just like the voice channel and preserve. every little thing prepared so. that is well-nigh it men i hope you. men enjoyed if you probably did make sure to.


lousy KPOP DISCORD SERVERS
Welcome gamers earlier than we begin this. video I will not stress this enough this. is a case research this video is certainly not. meant to promote any harassment to. anyone i understand how debatable this may. be I tweeted out Korean pop acquired approximately. thirty persons combating in my goodddamn. require just like the video I made one. 12 months ago referred to as awful bushy discord. servers i am trying to infiltrate this. community and spot what its about my god. relatively frankly we see it for all time. kpop stands and Twitter reprised. replying with fan cams and that is what. we see at the top of the iceberg yet I. desired going to be and find out what. its aactually want to be part of this. community. so please whether youre a kpop stand. or now not dont pass in harass anyone proven. during this video. oh guy Jesus Christ we will begin with. our own discord account.
My name is mr. kpop scenario 1 im not. from the kpop neighborhood but Im from. a further stand neighborhood how nice well. those persons deal with me okay i am type of. scared Harry patterns female friend. you seem so dreamy in this photograph i am. gonna juice this one. oh yeah batard all God but marvelous Im a. Harry fashion supporter now time to determine. how those communities will deal with me. knowing i am from an additional community. so i am not only gonna join kpop servers. i am additionally gonna join anime servers see. how persons from the anime servers could. treat me you guys ever heard of kpop. Lord overheard or recognize what is kpop. kpop Korean pop its a genre I desire to. be a part of that community okay pay attention. right here Harry patterns as someone who got here. from the k12 neighborhood I highly mean. you do not go too deep into the community. because its a nutrients i think thats a.
certainly mean assumption i feel you just. hate kpop okay listen here bucko. do your self one other combat that you you. cannot yourself out i am ok. its aa lot of fourteenyear-old females or. your buddy you know I dont believe i used to be. girlfriends Audi likeness. Oh what is this oh this is all in Korean. I dont know Korean IG is trash period. yg interval interval I do not know what that. capability. girlfriend it truly is the worst welcome. ooh thats on a bot hi i am looking to. convert ive certainly not heard a kpop yet Im. looking for pals oh why are they. making fun of me why do you think it fun. of me Dan two times first. why might I stand two times if I recognise. the first time is there a rule wherein I. have got to stand someone two times and a. 610 mamamoo dan gee that is a car or truck. firm I have never heard their song I. dont know who they are but what is this.
It all I dont know what the any of. this suggests I have by no means heard of them. before. does anybody want a position play as BTS. contributors yeah does that a No hear. freeze accepted teethers why cannot you. guys who are those people. idols whats up what she deleted it perhaps. its time for me to leave you are not. gonna stay here though that allows you to. study kpop I believe out of touch cuz. I dont listen to kpop plenty all people. starts offevolved somewhere might be useful you true definite. a large welcome begin from listening to. London oil that is a source friend start. with one crew but what you can start. with BTS if you wish i am deaf though I. cannot take heed to song what why are they. making enjoyable of me are you making enjoyable of. me all right Harry Styles is simply. knocking in the course of the drink how about we. begin with that BTS individuals jimin jhope. suga jungkook jin RM okay jungkook is.
the chosen i do not know who any of. these are but i thinkin ago with. jungkook who i discovered a kpop server that. hosts karaoke hi there become garyoke with a. karaoke box alright very well lets play a. music Im prepared please play me Jung Kooks. number one hit what is that I just prefer. to sing a jungkook song simply get me a. good song very well okay Im ready ask for. money get suggestion. I spread my funds twice theres a enjoyable. tune hi this a lecture room and that i say a. little music well buy junk code like this. okay sorry guys up to ill assist you i do know . my manner was gonna be later about a week. ago well time these are pitbull eaters. they eat mr. global any bald people. no it is the worst things occurred to. me this night now I know how kpop stands. react to different tune perhaps a few music. even better than kpop now I know how. they react that is so sad its time now.
That ive discovered all the secrets. by means of discord and during many her. aisle and blunder are you prepared to tackle. the big boss thats Twitter institution. chats so I got a chum to infiltrate me. into quite a few Twitter organization tracks hence. will test out the neighborhood Im putting. the president that kpop stands hate bald. persons were gonna learn how actual. its. oh do not ask concerning the Vin Diesels that. say thats a bar combat I dont desire to. talk about that this elf in. my mentions with an analogous crusty pop. that said looking pictures youre the. one singing me fancams Im just. responding okay i think this can be a. person homie yeah this person has been. assisting me infiltrate im not gonna. disclose her call definitely we wont. expose her secret identification. should I ask my pal how do I. introduce myself and that they said hi i am.
Call and im from and then your final. bias is your final bias is jungkook. hi i am Sophie and i am from United states and. my ultimate bias is jungkook and im. gonna do that white emoji that only. teen white girls use this one sure. and a star emoji very thats excellent. what is up Sophie are you going to the. video shop on are they Tori now why did. i do know this food its aall over Twitter I. do not stand in even I would okay so I have. been off social media a bunch as a result of. checks and private difficulties. I noticed BTS in Hamilton in 2018 but i would like. to buy my mom this birthday present I. cant certainly have enough money the two oh here is a. controversy reaches over mom and dad Eddie. day of the week mum and dad. jungkook gave birth to me okay why did. you add another army to a number of the. cakes in here most people here Stan. BTS okay so this can be a group to start.
Controversy in now okay men. caution ok I dont hearken to kpop I. do not know what kpop appears like yet. lets examine the reactions to a. arguable opinion ok that is the. bomb GBH jungkook has been having. disappointing vocals lately I a lot. desire any other kpop contributors oh wow I. such as you already. what are they chatting with me what the do. we like beets yes or now not what goes. on here you provide off solo stand better halves. woo. so its aactually far better than BTS. although nothing incorrect with solo. stands off did you just call me a . this is like a bar fight dude it really is. like a goodddamn bar fight no I known as. them why are you getting all up. in my face limo simply i used to be ok . you assert then nevermind this military cannot. read lm foul excuse me defending you. shuttle you annoy changed into actually. defending you maybe in case you knew the way to.
examine maybe in case you stand precise talent. sis not my fault your brain win errors. for or for Sophie ask for forgiveness Im sorry. that yall dont have a mind shes simply. stand real expertise are you 12. definite but he isnt Im simply gonna provide. setting pictures someone already left Oh. 3 spots a fancam i have to find a. pitbull fancam thats needless to say okay I. reported loads of groups in those peoples. case style thiis sweetie lime foul. justjust-just. okay i need to retain hitting them with. the mr. worldwide images I got to get. extra images do my arsenal of pimple. has to grow more advantageous oh oh okay so you. shouldnt have a bit fight of. Arsenals I see assess this out theyre. now not gonna count on thiis not one pitbull. pitbulls. oh oh 3 pit bulls Oh for pit bulls. Oh 5 pit bulls oh seven pit bulls can. you stop sitting middleaged guys i am.
now not interested people isnt involved. in you pal that is so unhappy i have been . kicked out of the only organization so if you. say sorry ok i am sorry its only a. board seriously should have done that. I will delete my tweets right this moment and this. is when I hit him with the real she runs. to laptop turns on logs onto Twitter. deletes bad tour hits. clenches fist that is not how a. metal face turns purple ok so start. sweating pull please dont you judge me. in any case he is achieved ten films because. it is done 0 movies actually whats. wrong along with her ok okay stop sending. your images you recognize what Im sending. 4 images of mr. Vin Diesel we are. having battles of pictures of kpop video. victors its the smartest thing ever all. right no okay here is Eddie exceptional. artist well I bigger ship mine buddy this. is how the true world works o.k. oh.
This person genuinely went into my DMS to. send me images of this one artist all. correct that is how they need to play lets. play dude i am going to go all Vin Diesel. all night I dont provide it investigate this. guy the bald head you could just slap it. man you could simply slap it theres an. underground art is that no one whove. ive asked listens to you up to now am i able to. please percentage with you men. Sophie please percentage sure ok my sister. used to think Vin Diesel the rocking. persons work well thats a getting to know of. this night its true theyre an analogous. individual see what the hell what is the. difference any other cult all started. bashing on me beating my ass and i send. those people images of pitbull and. they do not intellect thanks men and never. getting mad at my bald men pigs that is. first-rate pleasant you recognize thiis this was a pleasant. organization wait did i get one kicked no no I.


5 Discord Audio Settings all people Needs to be aware of !!
commonly after developing voice meter. or equalizer apo. some of youve outlined that youve got. issues with. discord and many the days it really is. in fact related to. settings inside discord the audio. settings in discord. often it defaults to having a few. things. on that really shouldnt be on or. many times you guys. pass in there and also you forget that you had. turned matters on like echo cancellation. and whatnot so this is going to be a. quick video on. what you will have mounted on your. discord audio settings. lets take a look if you find yourself on discord. if you go to the lowest. left where your call is you may visit. user settings and. under app settings you will find voice and. video in voice and video youll have. your enter and output gadget. in general as an entire i suggest. selecting the default device as your.
Input. and output gadget in this area as you. can see right here ive in fact manually. selected my. microphone the input device that i want. on. discord first thing well take. a investigate is the input sensitivity if. you switch this. enter sensitivity on its going to. immediately investigate. input sensitivity this is really um in. a feeling. a noise gate filter so if you switch this. off what you spot this is we have a. slider. at the left part of the slider we have a. yellow facet and on the correct part we. have eco-friendly. the yellow part of this meter is. correctly. muted audio so if i have been to show this. down it might set my noise gate down at. unfavorable seventy five decibels i want to move ahead. and simply preserve this at damaging sixty two. to be. sincere with you i have already got a noise. gate clear out in-built equalizer apo so i. would maybe flip this each of the way.
Down. and iit wouldnt topic but for your. guyss sake this is aa great way to dam. out historical past noise from coming in on. your microphone. specifically on discord what you can do. is simply track the. audio of your microphone with out you. talking into it and simply block out. every little thing that is taking drugs. on the meter here generally it will. perhaps sit down right lower than unfavourable 60.. remember when youve got to go too excessive. your voice will be reducing. out and in of the audio scrolling down. to the advanced part. weve a noise suppression made with the aid of this. company called. crisp it suppresses background noise. out of your mic this. is in beta it is reminiscent of the rtx. voice. ai that got here out recently as you men. recognize. i imply just creating aa legitimate. noise gate clear out and downward expander. on your mic. theres no intent to apply the noise.
Suppression within discord. if you simply installed a suitable noise gate. filter out. on your microphone there are. choices to this in addition youve. realtime noise suppression that may be. established. as a filter and setup in equalizer apo. youve the reaffir. plugin that i did a video on recently i. will link it. in the outline below as an entire this. must always be. off down below voice processing we have. echo cancellation. and noise reduction that is in which matters. get. somewhat iffy echo cancellation and noise. discount generally. creates like a warping outcomes on the. vocals. normally it could cause your your vocals. to get roboticky. and staticky if you are using voicemeeter. and that extra added processing. on top of the already processing that is. being utilized by means of. voice meter can cause some issues there. these two should definitely be.
Off perpetually i do not uncover them. necessary to switch on. i do not surely see a time where its. essential. for these things as i stated earlier than simply. establishing appropriate filters for. your mic is a much better way of going. about this yet many people have. concerns. in regards with you recognize like telephone. settings such things as that youll flip. on. um certain audio settings if you are. using your phone with discord and i. might see in a few occasions where. this should help automated attain. manage is actually up to you it is. going to try and gauge. where your audio or where the amount of. your microphone goes to hit so it. will both. enhance the quantity foil or decrease the. volume for you immediately good quality. service you want to permit this putting. here if you want to have a more robust. precedence on your discord.
prospective buyers over the internet a few a few. information superhighway providers might have a few. concerns with this or cyber web searching for what you offer. may have issues with this. that again this placing goes to be. as much as you usually having it off is. perhaps a way to pass. but when you are primary a established user. of discord i could see. a case wherein you may want a higher. priority. for discord audio if you do a large number of. calls or. you know youve you do enterprise that. way um i may see wherein this can be. beneficial attenuation is actually going. to be like a vocal ducking or a side. chaining aside from it is something that. you are going to hear your self. its going to decrease the volume of alternative. applications. by the proportion which you set while. someone is speaking. so that you could have it attenuate other. volume degrees from different assets like. your tune or browser audio or game.
Audio. when other folks converse or once you. converse via the settings right here. generally id count on everybody to. have the attenuation. set to 0 due to the fact thats style of a. strange component to set up for yourself but. if you were interested in what this. placing does thats what it does. it is going to correctly lower the amount of. different sources when some other person is. talking or when you are speaking. reckoning on the putting that youve. the audio subsystem in many instances your. instruments will in fact. have compatibility issues with discord a. lot of you guys run into this. hindrance wherein there is a compatibility. clash concerning this gadget. and discord itself you can simply never. seem to get it to paintings. competently within discord what you may try out. doing is switching the audio subsystem. over from wellknown to legacy. or vice versa and that might clear up.
The clash. with the compatibility there the last. section here is voice diagnostics. dont really need to dive into this. really youve 3 settings here one. for displaying. a caution when audio is not being. detected from your microphone. you have use the latest technology to. capture your display screen and use an. experimental solution to seize audio. from. purposes entire those are all the. settings that you will run into. with discord when you are having an issue. with discord after constructing. voicemeeter. equalizer apo this is an efficient video to. visit or if your pals are walking. into any concerns or dont know what to. set up. in the discord voice settings this. video is a good. video to reference i also desire to ship. you guys over to the equalizer apo video. that i recently did check out the. new preset dossier that ive.
accessible inside my discord server and. also simply check out how to establish. all these audio settings to get your. microphone sounding. well thats going to complete this. tutorial men i comprehend it changed into a quick one. dont fret i am gonna be making it as much as. you guys i am working on. redoing the voice beater educational so i. desired to knock out a few fast movies in. the intervening time. so i had time or a bit of wiggle. room as a ways. as working on those movies because. theyre gonna be. big ones and take a large number of time in case you. guys have any questions. after watching this video you know where. to head my discord server hyperlink is in the. description. less than if you want this video do me a. sturdy hit that like button and subscribe. for extra content material like this. and iif youre attracted to investment this. channel and my discord server.


constructing a Discord Bot utilizing NestJS - let#39s pair program
okay hi everyone we have one minute to. cross i presumed lets simply begin i am prepared. to head. and i am tremendous excited about today um. from honest overview i have had really an extended. day it has been terrific dont get me incorrect. so i am just a little variety of you recognize. tired so. i do know youre all gonna assist me uh paintings. on this assignment collectively and i am relatively. keen because. eddie bot has been taken offline it had. some challenge i had a short look and that i. could not realize what become incorrect with. it. so i thought well eddie bot become just a. prototype i wanted to switch it. i did see that nest js which we are. constructing our api with has a terrific. um library that lets you write. discord bots with it. and but you get the massive advantages of. an sjs with all different. hooks and guards and just a good number of. awesome stuff. so i thought it would be relatively fascinating.
To look at that so you are gonna. see me. uh begin it from scratch at present and maybe. wrestle. yet dont be concerned uh carl who is on radio. eddy with me. or aka julian um he has accomplished it already. and uh allow me uh let me elevate uh. carls github page. so you will see kyles female web page a good number of. eco-friendly squares. lately in the last kind of couple of. weeks that is exceptional that is marvelous. it is fabulous after which if we scroll. down right here let me make it a bit of. larger for you all. if we scroll down right here youll see nest. js. discord alex js so kyle has already gone. forward and carried out it but i would like to benefit. the way to do it so i presumed. um ill i will begin from scratch and you. comprehend we will all do it collectively and dont. neglect we do have. the stargate repo thats already. deployed to kubernetes. and has already got all of the tokens for.
Discord so we might be able to get this. deployed today we are going to see. how we get on but yeah poor eddie bot is. lower than the weather. and is not working right now so how. is every person within the chat appear. uh say hello within the chat it is um amazing to. see what youve all been as much as today i. desire you have an excellent week its the. weekend meaning loads of open resource. and weve uh prathamesh has already. first on the mercy purple changed into moment carl. turned into 1. good i used to be second but you know i dont. count number um. sassy adithya magnificent to have you all. here lily. jason long term no see jason karuna how. you doing karine im hoping youre well. mikey very long time i hope paintings is. going good you are not operating too tough. felix awesome to have you ever all right here do. say hi. to one another and very well it really is. collaboration not just with me but. among each other grow your community and.
we will all learn from each other. so thats amazing uh okay. and and uh definite wed like um. eddie bot or alex alex js and ii think in. the chat so persons dont say good day guys so. a lot. um so definite marvelous to have you here lets. get started so. um actually you recognize what before we. guess coding i need to begin thiis right. from scratch. youll find ive got my terminal right here. i have like done nothing we are able to do. every little thing from scratch. uh permit me um say hi to carl whos on. radio eddie and carl can provide themselves. a shout out perhaps discuss the various. matters theyve been building. on the api for our neighborhood is going to. underpin. our stay movement kind of you recognize stay. map wherein all your locations are which. we had a prototype before. and also the discord bot so carl the way you. doing hows your week been. im completely satisfied to have weekend now uh im.
great. marvelous in fact allow me convey um discord. over right here so every person can also see that. besides on the live circulation . cool sure the weekend is here that is good. so im hoping youre gonna have a spoil and. youve finished lots of coding on our api. um this weekend but im hoping you are gonna. so this week i hope you may have a smash. to boot. oh i its aactually particularly uh relaxing i. enjoy. coding um for this assignment awesome. thank you okay that sounds cool so i. want to get started so my. my first proposal and i am perhaps going. to make a few errors yet. um you know im im self-assured between. absolutely everyone we are able to determine it out. ill move into my repos listing. wherein i create all my repos. and truly permit me also drop. um carls github in the chat. or pass deliver carl um a follow. carl has no followers on github i am going to. be the 1st and hopefully you will get.
A few more to boot. okay so that is how were going to do it. i believe first thing that i ought to. possibly do first. is create an sjs assignment so lets have a look at. how this is going. an sjs documentation good place to begin. um i have needed to play with a good number of. little bits in sjs. and as our apa evolves ive been. discovering tons approximately form of guards and. middleware and all remainder. i love it how i needed to play with. websockets how you will get his stay chat. working certainly soon. and theyve surely thought about this. framework it is all constructed on show so. its kind of probably building on one. what all of you know already so do have. a look at this i am very very impressed. with it. so first steps it is probably an outstanding. vicinity to start set up it globally. i feel i perhaps bought it create new. assignment. hmm create new project i will simply create.
a brand new assignment for now. i need to add it to an existing one to. get it deployed yet we will fear approximately. that. later so allow me create a brand new project. what ought to we name it. uh i am going to just call it discord bot um. okay its new lets go wait some . seconds. npm or yarn lets choose npm i like. vanilla maintain everything vanilla as. possible. um lets have a look uh. koalaa happy hubbers convinced precisely comfortable. hub turned into all. and uh adithya um why sad. i hope i stated your call right have. you not sad due to the fact i mentioned your. name incorrect. lets uh lets see everyone looking. do not forget provide this video a thumbs up. surely allows uh support the chat. lets put the chat weve aid. channel thats not a very good start. ok we do the failing sounds must be. a failing sound yet people on radio edit. you cannot pay attention it.
Uh lets take a look um. ok uh okay so its created i think. we are good so now weve created lets i. necessarily do i always head into the assignment. so we move into discord bots. after which i always open um the vs code. right you know all of us like vs codes. so lets bring this over right here so you can. all see it. and ill make it manner bigger there we pass. you all realize bs code i am certain ok. so what. next lets take a look she created it. okay so now i want to truly probably. jump. straight to the um. uh the what do you name it the kit. that were gonna use for an sjs. to create discord so it says. installing we have to. install these two things and we have used. discord js earlier than. so the only extra kind of new one. to us is the. nest js edition so lets take a look so. lets simply set up that. npm set up lets go so to date it has been.
All a replica and paste. lets take a look um. oh what we bought in the within the chat um. followers incidentally magnificent thank. you much that is amazing lets get. lets have a look at if we are able to get carl to 10. followers at present. thank you oh i see thats why karuna. thank you much right i im not the. the sharpest toy in in the in the field as. the expression says but queen is announcing. certain uh adithya maybe unhappy due to the fact no. fans. i agree i was unhappy too lets see if we. can get double figures. marvelous ok so now weve established that. lets see what subsequent. i am already stuck no im jokking um okay. so subsequent is asserting weve ill have a. token im able to seize a token that i have. before. i will grab all these ids ok. amazing lets simply get. hello global operating and see if we will. see that seem in in discord. so exle of creating a dynamic module.
With config i guess it has special. approaches to do that uh carl do you know what. the variation is among these. alternative ways so you have got. 4 routes and then youve got 4. path async so async im guessing it is. gonna attempt to continue loading up the. assignment whilst this occurs within the . heritage. so is that extra efficient do you know um. to be sincere i did not decide whats. distinct. myself um i believe if you utilize um for. direction async. you can move um special people searching for products for. exle in case you have. um the token into um in the dot. n dot enb dossier um you may pass. you may inject the config carrier while. growing um. the module um. that is the use case i see okay um in my. repo i. did it um with surroundings. variables ok um i did not do it um. the style that i tough coded a token into. the use factory method. um ought to we take a look yet i think.
Its its it is only a alternative. lets take a look and we can actually. show persons um which. file will be a module. okay yeah so you let me have a look yeah. youll have to have the youtube open. um a good way to see it it is in. in my repo it is in a bot folder and then. um thiis called config provider. discord config oh now not the spec discord. config provider. received you i see ok and there i. injected um the config services the. config carrier um which reads the. env file i see. ok received you ok that looks rather fairly. intelligent. ok i am gonna try and keep it exquisite. superb simple. um yet i cant placed it in that dossier yet i. dont ever desire to see at the live. circulate all my tokens. so i need to have a specific thing i should have. inspiration this earlier than. what does uh um everybody else thinks. um aditya why are so many followers. still displaying 10 even after so many.
Follows. um it takes time for those numbers to. replace i think theyre all jogging on. exceptional microservices on github so. even if you get a large number of followers it. would possibly not take month-to-month 24 hours to. actually update to what the useful. numbers are ok so i am attempting to assume. i may do that and ii could you still. use the config i cant inject youre. correct i see what you suggest i can not inject. the config carrier to get them out as. environment variables correct. ok um what you could probably do. um im not really certain if it works is um. reference. process.n instantly im not utilizing the. yeah um the config provider this can paintings. yet. uh now not no hundred percent guarantee yeah. no its good lets attempt it lets. experiment. um so well all gain knowledge of something new if. it really works or if it would not. so the um wed try this for now.
Um yet it is not whatever that id. form of dedicate and did and set up but. something for regionally just. for uh proof of notion i feel works so. if i go to. the discord it is a discord module yet to. the the module. im not gonna um do whatever. i think carls assignment is much better. look at that for uh reference. but i am just doing this for instance so. lets take a look. whats their bot gateway to boot. am i able to click that export bot gateway. um lets have a look. shes finished slightly of research previously. here we cross here is the gateway correct okay. so. on prepared event all set log it ok that. is sensible obtained you. ok lets take a look so as a typical. developer. im going to do loads of copy and paste. so we have module we have imports. um so it will be an import um. lets have a look so it is discord and.
Sjs lets reproduction. that import at the tip. ok and then im going to grab. this import i feel its. there there we pass so. because we want to preserve the import array. and we paste that during. that looks you know not too undesirable oh not. dot. comma everyone following alongside lets. have a look and spot. so um that is not completely happy okay that is simply. the. uh the missing trailing comma. okay magnificent the others have it in addition. so in fact thats an improvement persons. can make to the documentation. if you look this ones the the last one. it has a trailing one. um this ones the last one has a. trailing comma yet this one does not so. once you replica and paste this you get an. mistakes. so let me um share this project of. everyone. in um. in the chat and someone can increase an. hassle and actually raise a pull request. and so you dont when you replica and paste.
this instance you dont get an errors. correct lets have a have a look um. weve some questions in the chat. lets have a look uh uh aditya. says so many left tabs in vs code. what are those oh these ones down the. side. ah okay well query so. i need to keep an eye on discord in addition. make sure no ones elevating their arms. to to come up. in case you do let me recognize in the chat so um. the tabs okay received file thats the equal. as all people elses i think search the. equal. what is modified to the resource code um i. shouldve executed a devote before i started. making adjustments to this i necessarily do like. an preliminary. variety of commit id do that now and. then. this one is the debugger then its the. distant. this one distant explorer i used to be just code. areas this is for code areas . that is the plugins so i have all my. plugins installed.
Um lenses get lenses which simply offers. you an perception into your. form of your your assignment and stuff ok. lenses simply received eliminated not sure what. occurred there. uh live share uh to do studios is actually. beneficial. um once you kind of positioned i like this. due to the fact people just positioned todos. everywhere. and then overlook that they they occurred. and that they move oh well. you know yet now im able to get a listing of all. the todos which have. appeared within the assignment and that i can just. visit them immediately. and simply pass and fix them and solve them. or if theyre out of date simply get rid of. them so i actually thats like one of my. widespread tabs. particularly suggest having that uh that is. azure thats i exploit this for i. think due to the fact you should use the azure. carrier to connect with a database. but i dont use that anymore id. correctly eliminate which can i uninstall it.
Um i can most likely just get rid of that uh. lets have a look at this ones a new one whats. this one. a hundred days of code yeah i do not use. that one much anymore either what. else have i got down here docker and. code time and mongodb. i might be need to type that up um. theres a lot there that i do not. in fact use. so thanks for placing it out so i love. everyones questions. uh i have not visible those tabs in vs code. uh. i paintings with yeah ive further them on and. i might be dont want them all. but allow me understand which of them you will use. out of these not really too many. stay code share is beneficial lets. uh. lets have a look um. what is the reason for using typescript. with nest uh nest by using default. makes use of typescript and typescript is simply. freaking amazing ask nick. whilst nick arrives almost immediately you will see. that typescript is awesome.
Um lets have a look okay so i want to. do in fact i will undo this for a. second i am simply going to form of. so let me do an undo and it is often a. good thought. undo that and then i will reserve it. and iim going to do a commit so if i do. if i clean my console. and i do a status ive got all of these. i think theyre all secure to commit im. simply checking. theyre so lets do um a get advert we will. add all of them so now itll be. we will do a list back you can you may. see all these i know what some of you. are asserting youre saying eddie. why are you no longer utilizing uh vs code to do. this im in order that used to the command. line for doing this. uh ok after which im gonna do a dedicate. so im gonna say preliminary nest dedicate or. something like that. so um and then function preliminary. nest js task just so i do know that if i. mess whatever up im able to simply revert returned.
To this so i have dedicated i dont even. ought to push it. it is committed and i want to redo what i. had right here. um there we cross so i have reddone what ive. got here so i have this returned lower back. ok so those tokens definitely do not. work. what we will try to do is as. carl recommended and simply use the process. um and then i am gonna i will take my. terminal. off the screen temporarily and set the. surroundings variables for the tokens and. then bring it lower back. so uh lets examine i think the guilds permit. and deny is ok and. allowed instructions and and so on is. fine cyber web hooks i do not believe wed like do. we want cyber web hook id and token i do not. think we do. i might be wrong i feel the only. essential um residences are token and. command prefix. remainder uh is okay lets. uh remark all of these out if i. remember actually. that sounds well no hassle we will attempt it.
So i want to use a different command to. every thing else so that we know were. simply focusing on this spot. i desire to use percentage which isnt. whatever wed use if and once we deploy. it. yet um lets uh lets take a look. oh what is an sjs okay tremendous query so. thanks a great deal for the the question. uh elusive code. so the question is the question is um. permit me bring up your question at the. screen i ought to in fact get more um. prepared at this i am getting carried away. with coding. etc so here we go well question if. i have. missed any questions im over right here so. i am still right here. if i have missed any questions you simply. sort of wait a couple of minutes and copy and. paste it lower back in. so subsequent js i would like to describe this. correctly its built on top of. um express and its. used for construct its a frame of building. apis and its motivated.
by means of angular dont run away and get scared. but which angler changed into encouraged by using like. type of spring. so its certainly type of that framework. mentality it is very nice you have got a. lot of equipment there all set for you. http client you are able to do that you need um. cyber web sockets you need guards you need to. look after that you need to sure. middleware it is it has got a lot of it. built you wish a logger as i found out. the day before today with carl. when we were speaking approximately this you need. a logger its got a vanilla one built in. convinced you possibly can add extra to it and. customise it but it has got a very good. place to begin for for every little thing so. that is a. genuinely fantastic query im hoping i. didnt leave out any others i am attempting to. have a skip and have a look um. pr discord.js despatched thanks . oh marvelous nice okay. so that you despatched a pr to that project. and deserves a shout out that is a eco-friendly.
rectangular for you and uh. thanks much for doing that that is. magnificent. since you know i noticed it as one of those. squiggly line and ii thought correct i do know . it is only a comma. and iit is just a comma and ii know plenty. of folks say i shouldnt make. contributions which are just aa space or a. comma. but if someone copies and paste that. like i did the instance. code into their project and that they see. this underline or they run the assignment. and it fails. they move oh it would not work they do not. understand that something. um is to whatever simple they wont. recognize if they are new to. that style of project or even new to node. and pritier and linto and all the rest. so i believe the exles must be. bulletproof and will. paintings so yes whatever like that. definitely send in a fix is truly. surely important. have you ever learned new javascript.
Libraries fastly i havent checked out. fastly but ive heard people you know. speaking about a lot. what issue became to be raised within the repo. i feel it bought raised already. i feel so uh aditya beat you to it. adithya sorry my undesirable theres a. uh its totally very small on my on my. display screen down there but there is an additional. letter. um i have no assignment ok son. kara. really wants me to reply so earlier than we. get into the coding let me. examine this question all of you. be at liberty to reply in addition. its first-rate for every person to have. unique views i havent any. projects done until now but i do know html. css js python. and also dont have any git repos to do. please tell me what to do. create a git repo im certain youve got. these aside projects create them share . them on github and join us on discord. and you may simply sort of snowball from.
There. it is uh you only got sort of you cannot. workout at the health club. if you havent kind of long past to the gym. so go to the gym after which. test any exercise and then youll youll. youll find much more exercises at the. gym that you can do in machines that you. can use. um and uh dtr says already spoke back so. optimistically that facilitates i love seeing. distinctive. peoples perspectives ok eddie sufficient. talking lets try and perform a little coding. um right so this one we are able to say it is. strategy dot n dot. allow me see what i name it in any other. assignment simply. so i am unable to i will not oh dont suggest to. area that what am i doing. um i am gonna open a terminal over right here. simply so im able to get the token yet nobody. check out any other terminal. you cannot its aanother screen im secure i. assume im good. uh and permit me simply get the the name of. the token so.
with a bit of luck it ought to be satisfactory. lets take a look um you recognize what i. might do i could begin ive got. an easier inspiration i know how to get this to. paintings ok all people bear with me. dont be concerned all is good we are we can. work it out between us. so if we pass um. lets take a look correct so i have a. amazing suggestion i desire to deliver this terminal. over to a different screen and iim going to. begin the assignment from there. and then any other commands i run i will. run in vs code. i do know you all like vs code etc. so uh allow me take a look but then im able to. in the command after I run it like i stated. its aan environment variable so lets. take a look. lets do it so to begin the task i. should have started the task in fact. before i. even positioned this in in fact there is. another thing i ought to accomplish that what i. would in fact do is undo all that again.
And again human we must always assess the. assignment works earlier than. we attempt to customize this it really is returned. to what we had before. and lets start run the assignment so if we. examine the documentation. the assignment is likely to be npm. run begin but lets. double investigate and spot. what it says first steps install it it. tells you what. documents get created i like the style that. it does it npm run start. so im able to do it on the display screen so you could. see well do. npm run begin and then in the browser we. should have a hiya international api. that is how simple it is to get an api i. have gotten a video in this uh going into. extra details i posted a few days. in the past on wednesday. where we actually get data from githubs. api and merge it with information that we have. in the applying. so thats up and going for walks lets go to. localhost or no longer local hack day.
i feel 3000 and you will find its totally. small um. whats up world so we know that works ok. awesome so let me take this off display. let me put the um token. for discord and lets take a look. um after which hopefully. npm run begin. so the task ought to run lower back and we. should see. no change all ought to be good its up. and walking you could believe me on this. and so if i reddo this. and the name of it truly is discord token no. shock there. and you mustnt see it and we arent. utilizing these so lets just leave those. out. i admire vs code typescript all this. amazing stuff. ok so hit keep the task ought to. restart. it didnt i dont know why let me begin. oh no theres a dev mode aha theres a. dev mode for the project. so if i go back to the documentation and. i go back to. cli over if you permit me check i do. keep in mind seeing.
Uh yeah npm run begin dev so it watches. for adjustments which is what i must have. achieved npm. run begin dev. nonetheless with the token im rather certain and. if i go to localhost 3000 back. now not localhag day 3000 remains up and. going for walks. you cant see the token that is excellent. right allow me atone for the at the chat. permit me see what i what i missed. um oh chats going good marvelous i love. it once you all ask questions and chat. between each other its aawesome. uh what did i miss i dont keep in mind. where i got to uh what is sjs we did. talk about that. uh alicia raised the pr. um thank you for explaining next uh it is. ness js sorry not. next js so nest js is an api framework. subsequent js is a framework for the front end. for react. it does have a few sort of backing. functions yet its very light contact. i did take a look into that yet yeah if.
You want a suitable. api i would pick an sjs. and you can get up and jogging as you. saw actually in mins. but no drawback ok cool. lets have a look. um. uh sankara i already replied your. query i think some folks did. in addition. i used to be a typo that is exceptional ok cool um. good thanks for clarifying okay so we have. received this up and running lets examine if we. can get howdy global operating in. correctly in discord so lets have a look at so next. issue we need to do. is weve this i believe this looks. well i dont its going for walks there isnt any. mistakes within the console. so the next issue we do is utilization so we. have to create a bot gateway dossier. okay i suggest we can try this and copy and. paste that during sounds good. okay um i know carl has achieved it in. genuine module thats. a nice manner of doing it i desire to maintain it. useless lifeless simple for at present.
Im just trying to do a spike to determine if. going ahead might i write a discord. bot with nestjs. um typescript okay lets have a look. paste it in. we are able to do somewhat formatting. there we go okay um. save that and its going to load it lets. take a look. and see. ok so its going to oh well i will. add it there is one more thing i will do uh. the assignment doesnt be aware of anything about. it but. i have to add it to. um to the module exceptionally certain i have overlooked. that step. lets have a look might be as a. provider yeah i am attempting to look for the. documentation on it. but theyve kind of ignored that step. i have all have i neglected it. allow me see utilization um yeah so that is the. gateway. it is smart and you can use the. client decorator ok thats particularly. fascinating too there is how to do. it you can do it for carrier. or you are able to do it with a decorator ok.
that is well to understand. um i imply both appear nice and an identical to. me. and then thats for receiving messages. so right away theyre directly to the next. sort of discord bot listener so actually. you are right they havent. theres another development to this. task allow me percentage the hyperlink to this. project. i feel i shared it already yet im. going to percentage it one more time um. raise a controversy that and do double investigate. that im. and this is true however it looks like. when they deliver an instance. they do not upload it to the module dossier so. returned. you recognize we can i could have figured. that out yet carls obviously assisting. me thats making it plenty simpler i. love pair programming. um but you know someone is doing this by way of. themselves they could get caught on that. for like two three hours. whereas you recognize about a lines of. rationalization or code or exles might.
Simply assist them make it a lot simpler this. is why. it is so significant for everyones. initiatives to get folks to look at. it due to the fact. they may not be aware of the certain matters. that you know once you make assumptions. so lets take a look so. it is bot gateway and we will. upload it to providers weve got app. carrier which is nothing. thats became automobile generated by means of gateway. and if i hit input. lets carry this up somewhat it. should get instantly further at the. properly. yeah we have at the top so lets hit. shop and. the console i ought to be able to um. show you now because the token is hidden. which is good. if it doesnt get hidden ill be very. disenchanted. yet no it i think it is hidden okay and. weve an errors so lets take a look. lets debug all of it collectively. so lets have a look so areas cannot. study estate ship of undefined.
On on ready in bot gateway line 23. so lets have a look good ok 23 is. javascript so. we havent got the uh the mapping so. we will simply uh do not forget that we are. searching for on all set. so on all set changed into saying um. ship ok so we cant this doesnt paintings. ok have we performed something wrong or. have we discovered a further obstacle. um in the project lets have a have a. appear. good maybe i did something wrong allow me. verify. so once I use this and iits got. a common in it does it obtained imported in. sjs weve all of the imports. distinctly sure i did precisely what they pronounced. ish. i believe it bought the error um i feel um. in the app module wherein you initialized. um the. discord module and also you didnt supply a. webhook. url and that is why he cant uncover get he. cant do get webhook. client and thats why ship is undefined. oh i see. ok so if okay well point.
good well noticed yet i think you may. simply delete this line i feel you do not. want this. its in case youre utilizing uh cyber web. hooks correct. okay so its accomplished a different manner i. wager right it can be carried out. can anybody simply get purchaser yeah it can. be carried out we get clients. okay oh but there is not any send on there. ok. good we will see we can see if we can get. a log correct because it will give. us the user tag. and all the rest so lets simply undo this. for the moment. and return to what we had remark this. out put it aside if i increase this. it may reload ideal no error this. time. and it does say logged in as eddie bot. so. it works its connected to discord so. maybe the subsequent issue we will do. is get it to listen for a metamorphosis on a. command. so lets and were gonna have got to come. returned to that because we do desire to send.
Messages to discord still. so lets have a look um okay. create a handler for receiving messages. by the box i love it how its just. broken down into. unique files you arent getting these big. documents always complications it is all variety. of. taken care of for you okay um. lets uh lets take a look so i am simply. gonna kind of reproduction and paste this again. do not do what i do every person and theyve. referred to as it bot gateway back ok so. they have placed it in a similar dossier okay so. we will positioned it in the same one. because its an additional set off its. going to be um. an on command okay lets grab that. positioned this right here what have we bought so on. command hasnt been imported. we should better just cross import i believe. its appended it up there. pleasant message would not exist lets see if. it may figure it out. and do an automobile import besides perfect it.
Has carried out. it all seems particularly rather pleased so what. we predict. is when it starts offevolved. uh what is message come from and it gets. a message so let me just study a few. i did not study this but im guessing. begin so that is the this website command its seeking. for i am guessing. i feel we should always do it on let me see. what will be what would be an outstanding that. i believe i noticed on an outstanding exle. that would be greater i dont want to do. on each message i am watching you i did. that i feel when I become having a play. with something as soon as and everyone had. somebody wrote a message the bot became simply. spamming everybody so you wont try this. lets uh. lets see permit me catch up with the chat. when you are having a having a examine. band sal can you tell your other uh. channels that give open source content. and guidance. um to not everybody touches on it i believe.
but no person certainly specializes in open source. like myself. so um but i will take a look ask and. discord and we are able to we can. ship you some a hyperlink within the within the . description less than to the discord channel. and we will chat to you and find a few. other people but we are already discovering. a few insects in this at present so. with any luck someone has raised the difficulty. that uh what become the issue oh certain including. it to. um the module oh but they do add it oh i. overlooked it if we look. um vendors bought gateway oh thats. because. convinced they did upload it previously okay so. they further it before. and i went immediately directly to usage and so. its kind of weird adding it earlier than yet. the dossier does not exist. i would have carried out it somewhat. in another way i would accomplished it like a. correct flow. but you know its it is there i just. assume. i would not upload a dossier bot gateway to the.
Module until i create it i always variety. of create the file first i dont know. what persons imagine um themselves. right within the chat what do you believe. lets have a look issue raised. um okay cool. yeah deleting yeah do you i believe you. can the issue um. i even i can put a remark let me permit me. have a look at the issues and i can say. oh i discovered it so you can not delete it you. can close it i feel it is. ive got upload comma at the end via jason. amazing after which i feel did you close up. it already. um but i could placed a comment and say oh. i found it that it changed into further up and so. forth. um if thats if that needs to be the. case im joyful to. to lower back you up on that due to the fact i. encouraged you to elevate it and it become a. bit confusing the pass um. wasnt wasnt great um so ok. and ii wasnt examining it when i was. speeding by way of okay.
let me understand inform me the issue number if. you have uh have. read it reproduction and paste uh is okay as a. developer ill create a task by. in simple terms reproduction and paste to create whatever. itll be enjoyable and iimprove my research. talents your replica and paste is sweet to. start with. um but i believe its a must to. recognise what you are copying pacing i. assume when I replica and paste. i simply go out it works and just style of. do it after I after I sort it out i. correctly. assume more approximately it so it is a bit now not. remarkable yet i am simply conscious of time. just i desire to eager to get anything. operating and to simply get. my goal here isnt to truly comprehend. every little thing is to get something operating. to see if. if there is something we should use going. forward so its almost like a spike so. i am going to cut various corners. as well i even have a query for.
every person and maybe for carl in addition. who i know has finished nest um js stuff for. um a lot more than me is what approximately why. is thiis specific to discord bots so. actually it is perhaps not so much of a. nest question. yet what approximately trying out a discord bot. since it it. does information superhighway sockets so i would have tried in. the beyond to mock out the websocket. and send the information that i want to the bot. in order that. um i can assess the response however the. dilemma with that is after I um. ship the data again the uh checking out. library sort of kills the connection. and then the bot just continues attempting to. reconnect for all time to the websocket. and so it simply gets into this crazy kind. of loop. i ponder whether anyones verified any. websockets before because thats necessarily. uh. because its like an attractive. hassle okay wherein became i. um right what became i doing i was doing we.
Had a start thats what we had. execute command start ok i believe. that is it. i think its going to run and carl would. recognize greater than me. if youre still round is that um i do. the start command iits going to respond. with this lets just supply it a pass so if. i hit keep. should reload logged in as eddie bot. ideal. lets increase discord lets have a look. um and permit me visit lets go to the bot. chat. and what became our uh with a percentage i. suppose. if i just do experiment not anything ought to arise. oh youre possibly at the back of my head eddie. it is at the back of your head. sorry everybody my undesirable let me make it uh. deliver it up its friday. undergo with me its friday correctly i make. errors like this every day. so test as youll find experiment is there and. um. no reply no comment nothing within the . console nothings transformed so the bot. hasnt accomplished whatever thats good.
So if i do percentage and that was our. trigger for our command. test im hoping it does nothing again. not anything there. nothing within the console okay nothing is. good and now if i do. percentage experiment start sorry percentage. begin. i am hoping anything happens either in. the console log or within the chat. lets have a look at it worked i mean thats how. speedy it is to get. an sjs up with an api and a discord bot. i mean thats highly particularly speedy right. so now we have. execute command percentage begin so. for that reason we are able to do. so many other other things hypot. for the reason that in fact i want um to get. our api up with a purpose to get the map. submit in the back of me and as people work together. using. um doing contributions to open source i. favor their profile to appear at the map. from github so ive got such a lot of cool. ideas with that so i perhaps should. focus extra on.
The api than doing these other things. however the bot. with the bot happening um i want alexa. js up so much due to the fact i i am simply so. uninterested in everyone just saying good day men. it is like not everyones a man here so. um definite so i am keen to a minimum of get uh. alex js up at the bot and then we are able to i. can get back to the the api besides the fact that children im. no longer doing greatly at the api its. commonly carl. uh ok oh sorry carl were going to say. anything. no no um ok every little thing excellent okay cool. no difficulty um okay so that works so im. pleased with that. and so what some thing we wish to do. in a different way is. we dont desire a command for alexa js. thats some thing we dont want we do. actually want a edition variety. i do like having the the knowing what. editions are going for walks so persons can assume. well wheres my characteristic i. submitted a pull request to that um so.
it is uh it is good to have a version so. what shall we. probably do i wont get distracted with. that now yet it will likely be well to have a. edition command. um yet perhaps i am going to simply difference that to. version and we cant carry out the. version. yet um we will simply remind us to place. that in so now. and that should be great it must have. reloaded perfect. lets bring alexa alex js not alexa. alex js so we want that to set off on. each message. so lets take a look what we can achieve this. if we go to the medical doctors i did see anything. enroll in the event. and we want to join each. message and we are unlikely to respond yet. we are able to have a look so. lets have a look if we i need to install. a similar dossier for now and shall we. necessarily. uh separate this out later if you want . um wed like the on. annotation and i am unlikely to reply.
but when it is not the bot lets do a. console log um. just on the way to see in the log console. and there is an marvelous oops not meant. to try this. there is aan awesome logging within sjs. yet im not gonna do that immediately im. simply gonna say um. lets log the message so yeah simply log. the message. message dot well i did not see what it. become. it was as an exle what it is. message dot um. am i able to get the content material of it no longer writer. content here we move. there we go so should i see it optimistically. in the console log. that should reload lets return to the. bot. long time no see eddie but. uh yeah nest js spot. ok um right i am sorry there you move. see in the console. right no longer behind my head is it ok so. thats coming by means

Leave a Reply

Your email address will not be published. Required fields are marked *