Your own Discord Bot - Aliases (2021)what is going on guys your individual Discord Bot - Aliases (2021)what is going on guys your individual
Code your personal Discord Bot - Aliases (2021)
what is going on guys welcome back to. one other discord.js educational in brand new. academic we will be including. aliases. to our instructions in our discord bots if. you do not know what an alias is. google tells me that its a false or. assumed identification. what this suggests is to illustrate as an instance. i create a command. which is play which joins a voice. channel and starts playing a command. but for instance i desire to execute this. very same code. of this command utilizing yet another key-word so. in preference to play. i desire to execute this with pl and just. by using doing. this here its going to still execute. an identical. code as play and its very simple. it is going to be an exceptionally brief video yet. before i start i do desire to give. my discord server a quick shout out it. has been like 4 days since we. formally released. we have over one thousand members already.
Come here if you are. into coding disc or mods this can be a. coding community for discord bots. and likewise we do have a touch chat region a. little living room vicinity if you guys want to. talk. to the community so there is going to be. a link in description to this discord. server. come forward join so lets go ahead and. start with the actual. code so like i pronounced very brief video. all youre going to need is to go to. your message event if you are new here. make sure to watch. the total event handler video because. we restructured our complete overall project. so lets get started here. in our message event we have a const. command and this is the same as purchaser that. instructions that gets cmd. were going to edit this and do an or so. or. it will be client that commands. dot uncover well create a. variable i am just going to name the.
Variable a. with an arrow operate a dot aliases. aliases after which and. i am actually going to copy aliases and a. dot aliases. that includes and we will circulate. in that cmd one more time cmd. is thiis constant up right here that is just. rx that shift that to a lower case. and actually we are virtually executed. with the message pursuits. now from right here visit all of your reviews. and were going to create the aliases up. right here. so aliases colon it is going to be a list. and you can begin. typing your aliases so for the mc server. we are gonna have three aliases. one is gonna be mc the subsequent one goes. to be mce. verify and the final one were simply gonna. write out minecraft. and ensure you place out the comma at. the top save it. shop every little thing and every little thing ought to be. walking best lets pass ahead and do note. area dot. there we move it is online lets cross into.
Our discord server try running. the 1st professional name of the command. which become mc server so mc server. you can see it will say please. enter a minecraft ip after which we can. additionally run. mc it is going to say please input my. variety uh whats the different one thats the. mc. determine and then we also have minecraft. so all of these commands listed below are. technically running. exactly the same code that is this. notwithstanding. you know it is just its the aliases its. almost like the referred to as. um commands here so it technically. all works i can actually do anything. like. mcmc.highpixel.net. five five six 5 and there we pass. the body is gonna work. now what if you wanna use these aliases. as something like an aspect command. so instead of running the exact same. code perhaps i want to have. mc here run an additional code than.
This yet nonetheless have it in a similar dossier. here. how you do this is come all of the manner. here we will add whatever down. right here in the execute technique. and we are going to name it cmd we are. in actual fact passing cmd right here. which is this variable you may add in. any location right here im just going to feature it. right here in the men in the center subsequent. message then come right here into your. command upload it besides what you must. do is replica . all the code and you simply want to cross. ahead. and assess for the cmd. so all you do is do if cmd triple equals. . and the first one is always going to be. the actual main command so. mc server after which go forward and paste in. your code then come all the manner down. here and then do the subsequent in that case. if cmd triple equals to mc that is the. first alias were just going to console. that log.
And we will console the log. announcing this isnt. an mc server and then lets do one ultimate. one. that is if cmd triple equals to. uh minecraft and iits going to say. message.channel thats send lower back you. guys can variety whatsoever you men prefer. here. its aactually now not console.log let me. message that channel. that is send so that it will see it on the. server. and for the minecraft you can say we. love. minecraft so utilizing these three aliases. we are correctly strolling 3 unique. instructions. in one command file now technically you. could. do assorted instructions and its gonna be. no distinctive than the actual command. handler that we had earlier than yet with this. new command handler we are actually. organizing everything. so you do wanna have your command you. know files and everything prepared. it is simply that so that you can have a you.
recognize a different alias with one more. operate. i am simply showing you so lets cross forward. and run this. and now if we do mc. server it truly is the 1st command so. please enter your minecraft ip. then if we do mc it will say this. is not a minecraft server. this is not a micro server and if we do. minecraft it will say yay. minecraft we love minecraft. and that is how you truly can run. distinctive commands in a single command folder. utilizing aliases. mainly you only want to use. aliases as aliases. but regularly when you are doing. something just like the play and depart. command you might want to have them in. an analogous. dossier so you can use the exact same. matters so im able to use. just like the voice channel and preserve. every little thing prepared so. that is virtually it guys i am hoping you. men loved if you did be sure to.
Awful KPOP DISCORD SERVERS
Welcome players before we begin this. video i cannot stress this sufficient this. is a case study this video is by no means. meant to promote any harassment to. anybody i understand how controversial this may. be I tweeted out Korean pop bought about. thirty people combating in my goodddamn. require just like the video I made one. yr in the past known as lousy bushy discord. servers i am attempting to infiltrate this. community and notice what its about my god. relatively frankly we see it for all time. kpop stands and Twitter reprised. replying with fan cams and thats what. we see at the tip of the iceberg but I. wanted going to be and find out what. its aactually want to join this. neighborhood. so please even if youre a kpop stand. or now not do not move in harass anybody shown. during this video. oh guy Jesus Christ we will begin with. our possess discord account.
My name is mr. kpop scenario 1 im not. from the kpop community but i am from. another stand neighborhood how pleasant good. these people treat me okay Im kind of. scared Harry patterns female friend. you look so dreamy in this image i am. gonna juice this one. oh yeah batard all God yet amazing Im a. Harry fashion supporter now time to see. how those groups will deal with me. knowing Im from a different neighborhood. so i am not just gonna join kpop servers. Im also gonna become a member of anime servers see. how persons from the anime servers would. treat me you men ever heard of kpop. Lord overheard or be aware of what is kpop. kpop Korean pop it is a style I desire to. be part of that community okay pay attention. right here Harry patterns as somebody who got here. from the k12 community I extremely suggest. you dont go too deep into the neighborhood. because its a foodstuff I believe thats a.
Really mean assumption i think you only. hate kpop ok pay attention right here bucko. do yourself one other combat which you you. wont be able to yourself out i am ok. its aa lot of fourteenyear-old girls or. your buddy you know i dont think I was. girlfriends Audi likeness. Oh what is this oh this is all in Korean. I do not know Korean IG is trash period. yg period interval I dont know what that. means. female friend its the worst welcome. ooh thats on a bot hello i am looking to. convert I have on no account heard a kpop but i am. seeking associates oh why are they. making exciting of me why do you believe it enjoyable. of me Dan twice first. why would I stand two times if I realize. the first time is there a rule in which I. need to stand someone two times and a. 610 mamamoo dan gee thats a car. enterprise ive certainly not heard their tune I. dont know who they are yet what is that this.
all of it I dont know what the any of. this implies I have in no way heard of them. before. does anyone want a role play as BTS. members yeah does that a No hear. freeze permitted teethers why cant you. guys who are those people. idols hey what she deleted it perhaps. its time for me to depart you are not. gonna remain here although so that you can. study kpop i think out of touch cuz. I dont take heed to kpop a lot everybody. begins someplace can help you you actual sure. a large welcome start from hearing. London oil thats a resource friend begin. with one group yet what you can start. with BTS if you want Im deaf although I. cannot hearken to song what why are they. making exciting of me are you making exciting of. me all right Harry Styles is just. knocking in the course of the drink how approximately we. begin with that BTS participants jimin jhope. suga jungkook jin RM ok jungkook is.
the chosen i dont know who any of. these are yet i thinkin ago with. jungkook who I found a kpop server that. hosts karaoke howdy became garyoke with a. karaoke field all right alright lets play a. tune Im all set please play me Jung Kooks. number 1 hit what is that I just favor. to sing a jungkook track simply get me a. well song o.k. ok i am ready ask for. cash get advice. I unfold my cash two times there is a exciting. track hello this a lecture room and that i say a. little track well buy junk code like this. ok sorry guys as much as i am going to help you I know. my manner became gonna be later a couple of week. in the past good time those are pitbull eaters. they consume mr. worldwide any bald persons. no it is the worst matters happened to. me this night now I know how kpop stands. react to different tune perhaps a few tune. even better than kpop now I know how. they react it truly is so unhappy its time now.
That ive discovered all the secrets. by way of discord and during many her. aisle and error are you ready to tackle. the large boss which is Twitter group. chats so I got a friend to infiltrate me. into quite a few Twitter organization tracks consequently. will experiment out the community Im setting. the president that kpop stands hate bald. persons were gonna learn the way actual. it truly is. oh do not ask about the Vin Diesels that. say that is a bar fight I dont need to. talk about that this elf in. my mentions with an analogous crusty pop. that suggested seeking pictures youre the. one making a song me fancams Im simply. responding all right i think this is a. individual homie yeah this individual has been. assisting me infiltrate im not gonna. expose her call obviously we wont. expose her mystery identity. ought to I ask my pal how do I. introduce myself and that they pronounced hello Im.
name and i am from and then your final. bias is your ultimate bias is jungkook. hi i am Sophie and im from united states of america and. my ultimate bias is jungkook and im. gonna try this white emoji that only. youngster white ladies use this one yes . and a celebrity emoji very that is perfect. whats up Sophie are you going to the. video shop on are they Tori now why did. i do know this meals its aall over Twitter I. dont stand in even I would ok so ive. been off social media a bunch due to. tests and private difficulties. I noticed BTS in Hamilton in 2018 but I need. to buy my mother this birthday present I. cannot genuinely find the money for both oh heres a. controversy reaches over dad and mom Eddie. day of the week father and mother. jungkook gave birth to me ok why did. you upload yet another army to a number of the. cakes in right here most people here Stan. BTS okay so this can be a organization to start.
Controversy in now o.k. guys. warning okay I dont hearken to kpop I. have no idea what kpop seems like but. lets see the reactions to a. arguable opinion okay thats the. bomb GBH jungkook has been having. disappointing vocals recently I a lot. want any other kpop individuals oh wow I. such as you already. what are they chatting with me what the do. we adore beets sure or now not what goes. on right here you deliver off solo stand wives. woo. so its aactually much better than BTS. though not anything incorrect with solo. stands off did you simply call me a . this is sort of a bar battle dude it really is. like a goodddamn bar battle no I referred to as. them why are you getting all up. in my face limo just i used to be okay whatsoever. you are saying then nevermind this military cannot. examine lm foul excuse me defending you. commute you annoy became actually. defending you maybe if you knew a way to.
study maybe in case you stand precise talent. sis not my fault your mind win error. for or for Sophie express regret Im sorry. that yall dont have a mind shes just. stand genuine talent are you 12. certain but hes not i am simply gonna supply. placing pictures somebody already left Oh. three spots a fancam i have to discover a. pitbull fancam that is of course okay I. reported a good number of businesses in these peoples. case flavor thiis sweetie lime foul. justjust-just. ok i need to preserve hitting them with. the mr. international pictures I got to get. extra images do my arsenal of pimple. has to develop more suitable oh oh ok so you. wouldnt have a little combat of. Arsenals I see verify this out they are. no longer gonna count on thiis not one pitbull. pitbulls. oh oh three pit bulls Oh for pit bulls. Oh 5 pit bulls oh seven pit bulls can. you discontinue sitting middleaged men Im.
now not fascinated people isnt interested. in you buddy thats so unhappy i have been . kicked out of the sole group so if you. say sorry okay Im sorry its just a. board heavily must have done that. I will delete my tweets at this time and this. is once I hit him with the genuine she runs. to computer turns on logs onto Twitter. deletes undesirable excursion hits. clenches fist that isnt how a. metallic face turns crimson okay so begin. sweating pull please dont you judge me. in any case he is achieved ten films because. its executed 0 movies literally what is. wrong with her ok o.k. stop sending. your pictures you know what Im sending. 4 pictures of mr. Vin Diesel we are. having battles of images of kpop video. victors it really is the smartest thing ever all. correct no ok heres Eddie extraordinary. artist well I higher ship mine pal this. is how the genuine international works alright oh.
This individual surely went into my DMS to. ship me images of this one artist all. correct thats how they want to play lets. play dude I will go all Vin Diesel. all night time I dont deliver it look at this. man the bald head you can just slap it. guy you could just slap it theres an. underground artwork is that no one whove. ive asked listens to you up to now am i able to. please percentage with you guys. Sophie please share convinced okay my sister. used to think Vin Diesel the rocking. persons work good that is a gaining knowledge of of. tonight it is authentic theyre a similar. individual see what the hell whats the. change the other cult began. bashing on me beating my ass and i ship. these people pictures of pitbull and. they do not mind thanks men and not. getting mad at my bald guys pigs that is. incredible pleasant you recognize thiis this became a pleasant. organization wait did I am getting one kicked no no I.
5 Discord Audio Settings all people Needs to know !!
generally after developing voice meter. or equalizer apo. a number of youve outlined that youve. concerns with. discord and many the days it really is. in fact regarding. settings within discord the audio. settings in discord. mostly it defaults to having some . matters. on that really shouldnt be on or. mostly you guys. go in there and you neglect which you had. grew to become matters on like echo cancellation. and whatnot so this goes to be a. rapid video on. what youll have installed on your. discord audio settings. lets have a look when youre on discord. in case you visit the lowest. left where your call is you could go to. person settings and. lower than app settings youll find voice and. video in voice and video you will have. your input and output gadget. in general as a whole i mean. selecting the default gadget as your.
enter. and output device in this part as you. can see here i have in fact manually. selected my. microphone the enter gadget that i want. on. discord very first thing we will take. a look into is the enter sensitivity if. you switch this. input sensitivity on it will. immediately investigate. input sensitivity this is truly um in. a feeling. a noise gate filter out so if you switch this. off what you see heres weve a. slider. on the left part of the slider we have a. yellow part and on the correct aspect we. have eco-friendly. the yellow portion of this meter is. in fact. muted audio so if i have been to show this. down itd set my noise gate down at. damaging seventy five decibels i desire to move ahead. and just keep this at damaging sixty two. to be. sincere with you i have already got a noise. gate filter inbuilt equalizer apo so i. might might be flip this all of the way.
Down. and iit wouldnt subject but to your. guyss sake this is aa great way to block. out heritage noise from coming in on. your microphone. specifically on discord what you can do. is just monitor the. audio of your microphone with out you. talking into it and simply block out. every thing that is taking drugs. on the meter here generally it is going to. probably sit down correct below unfavorable 60.. keep in mind in case you have to go too excessive. your voice will be cutting. out and in of the audio scrolling down. to the advanced area. we have a noise suppression made with the aid of this. company referred to as. crisp it suppresses background noise. from your mic this. is in beta it is reminiscent of the rtx. voice. ai that came out lately as you guys. comprehend. i mean just creating aa legitimate. noise gate filter and downward expander. to your mic. there is no intent to apply the noise.
Suppression inside discord. if you just established a suitable noise gate. clear out. on your microphone there are. choices to this as well youve. realtime noise suppression that may be. hooked up. as a filter out and setup in equalizer apo. you have the reaffir. plugin that i did a video on lately i. will link it. in the description under as an entire this. should always be. off down below voice processing we have. echo cancellation. and noise discount it is where matters. get. somewhat iffy echo cancellation and noise. discount usually. creates like a warping influence at the. vocals. commonly it can cause your your vocals. to get roboticky. and staticky if youre using voicemeeter. and that additional added processing. on top of the already processing that is. being applied by way of. voice meter could cause some concerns there. these two ought to definitely be.
Off continuously i dont find them. essential to switch on. i do not really see a time where its. essential. for these items as i reported earlier than just. setting up appropriate filters for. your mic is a more robust way of going. about this but many people have. issues. with regard with you know like cellphone. settings such things as that youll be able to turn. on. um sure audio settings if you are. utilizing your telephone with discord and that i. would see in a few circumstances wherein. this might help computerized attain. manage is really as much as you it really is. going to try and gauge. in which your audio or wherein the volume of. your microphone goes to hit so it. will both. enhance the volume foil or lower the. volume for you instantly good quality. provider you must allow this placing. right here to be able to have a better. priority in your discord.
Searching for what you offer over the web a few some . internet providers may need some . concerns with this or information superhighway prospective customers. may have concerns with this. that again this setting goes to be. as much as you usually having it off is. maybe the way to move. yet if youre familiar a standard person. of discord ill see. a case in which you may want a stronger. priority. for discord audio if you do numerous. calls or. you know you have you do enterprise that. manner um i could see in which this can be. favourable attenuation is actually going. to be like a vocal ducking or a side. chaining apart from it is something that. youre going to hear your self. it is going to decrease the quantity of different. functions. through the proportion that you set whilst. somebody is talking. so you could have it attenuate other. quantity levels from different resources like. your music or browser audio or online game.
Audio. when other people communicate or once you. communicate by using the settings here. generally i would expect every person to. have the attenuation. set to zero due to the fact that is kind of a. unusual thing to set up for yourself yet. if you were drawn to what this. placing does that is what it does. it will correctly decrease the amount of. different assets while some other person is. talking or when you are speaking. depending on the placing that youve got. the audio subsystem typically your. contraptions will actually. have compatibility issues with discord a. lot of you guys run into this. difficulty wherein there is a compatibility. clash regarding this device. and discord itself you can simply never. seem to get it to paintings. properly inside discord what you can try. doing is switching the audio subsystem. over from widespread to legacy. or vice versa and that could solve.
The conflict. with the compatibility there the last. section here is voice diagnostics. do not actually need to dive into this. really you have three settings right here one. for displaying. a warning when audio is not being. detected out of your microphone. youve use the most recent technology to. catch your screen and use an. experimental approach to seize audio. from. functions overall those are each of the. settings that you will run into. with discord if you are having an issue. with discord after setting up. voicemeeter. equalizer apo this is an effective video to. go to or if your friends are running. into any issues or dont know what to. mounted. within the discord voice settings this. video is an effective. video to reference i also desire to ship. you guys over to the equalizer apo video. that i lately did take a look at the. new preset file that i have.
accessible inside my discord server and. additionally just take a look at how to establish. all those audio settings to get your. microphone sounding. well that is going to complete this. academic men i know it changed into a brief one. dont fret im gonna be making it up to. you men i am engaged on. redoing the voice beater educational so i. desired to knock out a few speedy movies in. the intervening time. so i had time or a little bit of wiggle. room as some distance. as engaged on these video clips because. theyre gonna be. large ones and take numerous time in case you. men have any questions. after looking this video you know in which. to go my discord server hyperlink is within the . description. lower than if you want this video do me a. stable hit that like button and subscribe. for extra content material like this. and iif youre attracted to investment this. channel and my discord server.
Building a Discord Bot utilizing NestJS - let#39s pair program
okay hi every person weve one minute to. go i thought lets simply start i am ready. to head. and i am notable enthusiastic about today um. from sincere assessment ive had rather a long. day it has been first-rate arent getting me incorrect. so im slightly kind of you recognize. tired so. i know youre all gonna help me uh work. on this task collectively and im fairly. keen because. eddie bot has been taken offline it had. some trouble i had a brief appear and i. couldnt comprehend what changed into incorrect with. it. so i thought well eddie bot became only a. prototype i wished to interchange it. i did see that nest js which we are. building our api with has a very good. um library that permits you to write. discord bots with it. and but you get the big benefits of. an sjs with all the different. hooks and guards and simply a good number of. magnificent stuff. so i thought it would be fairly interesting.
to have a look at that so youre gonna. see me. uh begin it from scratch at present and perhaps. wrestle. but dont be concerned uh carl whos on radio. eddy with me. or aka julian um he has done it already. and uh allow me uh permit me elevate uh. carls github page. so you will see kyles lady page a large number of. green squares. lately in the last variety of couple of. weeks that is top notch thats magnificent. its terrific and then if we scroll. down here let me make it slightly. larger for you all. if we scroll down here youll see nest. js. discord alex js so kyle has already long gone. ahead and carried out it but i need to profit. how to do it so i thought. um ill i am going to start from scratch and you. know we will all do it collectively and dont. overlook we do have. the stargate repo which is already. deployed to kubernetes. and has already received each of the tokens for.
Discord so we may be able to get this. deployed in these days well see. how we get on but yeah poor eddie bot is. lower than the elements. and isnt working today so how. is all people within the chat appear. uh say hello in the chat it is um awesome to. see what youve all been as much as at present i. hope you have an outstanding week its the. weekend that means numerous open resource. and we have uh prathamesh has already. first on the mercy pink changed into moment carl. became 0.33. good i used to be second yet you know i do not. count um. sassy adithya awesome to have you ever all. here lily. jason long time no see jason karuna how. you doing karine i am hoping you are good. mikey long time i hope work is. going well you are not working too hard. felix awesome to have you all here do. say hello. to each other and all right it truly is. collaboration not just with me yet. between one another develop your network and.
we will all gain knowledge of from one another. so thats magnificent uh ok. and and uh certain we need um. eddie bot or alex alex js and ii think in. the chat so persons dont say hi there guys so. much. um so certain marvelous to have you ever right here lets. get started so. um actually you recognize what before we. bet coding i would like to start thiis right. from scratch. you will see that ive got my terminal right here. i have like finished not anything we will do. every little thing from scratch. uh let me um say hello to carl whos on. radio eddie and carl can give themselves. a shout out perhaps talk about the various. things they have been constructing. on the api for our community is going to. underpin. our stay circulation kind of you know stay. map in which all of your locations are which. we had a prototype earlier than. and likewise the discord bot so carl the way you. doing hows your week been. i am completely happy to have weekend now uh im.
nice. amazing actually allow me convey um discord. over right here so every person could also see that. to boot on the stay movement. cool certain the weekend is right here thats well. so im hoping you are gonna have a smash and. youve executed numerous coding on our api. um this weekend but i am hoping youre gonna. so this week i hope you may have a damage. to boot. oh i its aactually relatively uh enjoyable i. enjoy. coding um for this assignment magnificent. thank you ok that sounds cool so i. desire to start so my. my first proposal and i am might be going. to make a few blunders but. um you recognize im i am confident among. every body we are able to figure it out. ill move into my repos directory. where i create all my repos. and actually let me also drop. um carls github in the chat. or pass deliver carl um a follow. carl has no fans on github i will. be the first and with any luck youll get.
some extra besides. ok so it truly is how we will do it. i believe first thing that i ought to. might be do first. is create an sjs task so lets have a look at. how this is going. an sjs documentation well place to start. um i have needed to play with a large number of. little bits in sjs. and as our apa evolves ive been. researching lots about kind of guards and. middleware and all the rest. i love it how i needed to play with. websockets how you can get his stay chat. operating certainly soon. and theyve genuinely thought about this. framework its all constructed on express so. its a bit might be constructing on one. what all of you know already so do have. a check out this i am very very impressed. with it. so first steps its possibly a good. region to start install it globally. i think i perhaps bought it create new. assignment. hmm create new assignment ill just create.
a brand new assignment for now. i need to upload it to an existing one to. get it deployed but we can worry about. that. later so permit me create a brand new project. what should we call it. uh ill just name it discord bot um. okay its new lets go wait a few. seconds. npm or yarn lets pick npm i love. vanilla retain everything vanilla as. possible. um lets have a look uh. koalaa happy hubbers definite exactly joyful. hub changed into all. and uh adithya um why sad. im hoping i pronounced your call right have. you not sad due to the fact i suggested your. call wrong. lets uh lets see everybody watching. do not forget provide this video a thumbs up. genuinely enables uh assist the chat. lets placed the chat weve assist. channel thats not a great start. ok we do the failing sounds should be. a failing sound yet people on radio edit. you can not pay attention it.
Uh lets take a look um. okay uh ok so its created i feel. were good so now weve created lets i. necessarily do i necessarily head into the task. so we move into discord bots. and then i always open um the vs code. right you recognize all of us like vs codes. so lets carry this over right here so you could. all see it. and ill make it manner bigger there we cross. you all realize bs code im sure ok. so what. subsequent lets take a look she created it. ok so now i want to actually probably. leap. immediately to the um. uh the what do you call it the package. that were gonna use for an sjs. to create discord so it says. installation we need to. install these two matters and we have used. discord js earlier than. so the sole extra form of new one. to us is the. nest js edition so lets take a look so. lets simply set up that. npm install lets pass so thus far its been.
All a copy and paste. lets have a look um. oh what we got in the within the chat um. two fans incidentally awesome thank. you much that is magnificent lets get. lets see if we can get carl to 10. fans in these days. thanks oh i see thats why karuna. thank you so much correct i i am not the. the sharpest toy in in the within the box as. the expression says yet queen is announcing. sure uh adithya probably unhappy because no. fans. i agree i used to be sad too lets have a look at if we. can get double figures. marvelous okay so now we have established that. lets see what next. im already stuck no i am jokking um okay. so subsequent is asserting weve ill have a. token i will seize a token that ive got. earlier than. im able to grab most of these ids okay. marvelous lets just get. hi there global operating and spot if we can. see that seem in in discord. so exle of making a dynamic module.
With config i suppose it has specific. approaches to do that uh carl did you know what. the adaptation is among these. other ways so youve got. four routes after which you have got four. course async so async i am guessing it is. gonna attempt to keep loading up the. assignment while this occurs in the. history. so is that more effective did you know um. to be honest i did not figure out whats. exceptional. myself um i believe if you employ um for. course async. you can pass um different prospective customers for. exle if you have. um the token into um within the dot. n dot enb file um you could circulate. you may inject the config provider when. developing um. the module um. thats the use case i see ok um in my. repo i. did it um with surroundings. variables okay um i did not do it um. the style that i hard coded a token into. the use factory technique. um ought to we have a look but i think.
Its it is its only a selection. lets take a look and we can actually. show persons um which. file will be a module. ok yeah so you allow me have a look yeah. you will need to have the youtube open. um with a view to see it its in. in my repo its in a bot folder and then. um thiis called config service. discord config oh no longer the spec discord. config carrier. got you i see ok and there i. injected um the config prospective customers the. config carrier um which reads the. env file i see. ok acquired you ok that appears relatively fairly. intelligent. okay i am gonna try to preserve it notable. high-quality simple. um yet i cant put it in that file but i. do not ever desire to see at the live. move all my tokens. so i must have a specific thing i should have. proposal this earlier than. what does uh um everybody else thinks. um aditya why are so many followers. still displaying 10 even after such a lot of.
Follows. um it takes time for those numbers to. replace i feel theyre all strolling on. distinct microservices on github so. even if you get quite a few fans it. will possibly not take monthly 24 hours to. actually update to what the practical. numbers are ok so i am attempting to assume. i may do that and ii could you still. use the config i am unable to inject you are. correct i see what you imply i am unable to inject. the config carrier to get them out as. surroundings variables right. okay um what you may in all probability do. um im not rather sure if it works is um. reference. process.n instantly im not using the. yeah um the config carrier this may work. but. uh not no hundred percentage guarantee yeah. no its well lets try it lets. test. um so we will all learn anything new if. it really works or if it would not. so the um wed do that for now.
Um but it is not whatever that i would. kind of devote and did and installation yet. something for domestically 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 believe carls task is much better. look at that for uh reference. but i am just doing this as an exle so. lets take a look. whats their bot gateway to boot. can i click that export bot gateway. um lets have a look. shes finished slightly of analysis earlier. here we pass this is the gateway correct ok. so. on ready event prepared log it ok that. is sensible got you. ok lets have a look so as a standard. developer. im going to do a large number of copy and paste. so weve module we have imports. um so it is going to be an import um. lets have a look so it is discord and.
Sjs lets copy. that import at the top. ok and then ill grab. this import i think it is. there there we go so. due to the fact we want to maintain the import array. and we paste that during. that looks you recognize not too undesirable oh not. dot. comma all people following alongside lets. have a look and spot. so um thats not joyful ok thats just. the. uh the lacking trailing comma. okay awesome the others have it to boot. so in fact thats an improvement persons. can make to the documentation. in case 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. blunders. so allow me um proportion this task of. every person. in um. in the chat and someone can boost an. limitation and really enhance a pull request. and so you dont when you replica and paste.
This exle you do not get an error. right lets have a have a look um. we have a few questions within the chat. lets take a look uh uh aditya. says so many left tabs in vs code. what are those oh those ones down the. part. ah ok well question so. i need to keep watch over discord as well. make sure no ones elevating their hands. to to arise. in case you do let me know within the chat so um. the tabs ok obtained dossier that is the equal. as everybody elses i think search the. identical. what is modified to the source code um i. shouldve done a commit earlier than i began. making changes to this i always do like. an initial. style of dedicate i might try this now and. then. this one is the debugger then it is the. remote. this one distant explorer i was just code. spaces it is for code areas . it truly is the plugins so ive all my. plugins set up.
Um lenses get lenses which just offers. you an insight into your. variety of your your project and stuff ok. lenses simply acquired eliminated unsure what. happened there. uh stay share uh to do studios is really. useful. um when you type of placed i like this. due to the fact people simply positioned todos. everywhere. and then neglect that they they happened. and they cross oh good. you know but now im able to get a list of all. the todos which have. seemed in the project and that i can simply. visit them straight away. and just cross and fix them and clear up them. or if they are out of date just remove. them so i really thats like one in all my. prominent tabs. incredibly advise having that uh that is. azure its i exploit this for i. suppose due to the fact you can use the azure. service to connect to a database. yet i dont use that anymore i would. in fact remove which may i uninstall it.
Um i can most likely just get rid of that uh. lets have a look at this ones a brand new one what is. this one. one hundred days of code yeah i dont use. that one much anymore both what. else have i got down right here docker and. code time and mongodb. i perhaps have to variety that up um. theres a lot there that i do not. correctly use. so thanks for placing it out so i like. everyones questions. uh i havent seen these tabs in vs code. uh. i work with yeah i have added them on and. i perhaps dont need all of them. yet let me know which ones you would use. out of those not really too many. live code percentage is beneficial lets. uh. lets have a look um. whats the cause of utilizing typescript. with nest uh nest by using default. makes use of typescript and typescript is simply. freaking awesome ask nick. whilst nick arrives presently youll see. that typescript is marvelous.
Um lets take a look ok so i desire to. do in fact ill undo this for a. moment i am simply going to kind of. so let me do an undo and its always a. well idea. undo that and then ill put it aside. and iim going to do a dedicate so if i do. if i clear my console. and that i do a status ive got all of these. i feel theyre all secure to dedicate im. just checking. they are so lets do um a get ad we are going to. add all of them so now it will likely be. we are going to do a list again you can you could. see all these i do know what some of you. are saying you are saying eddie. why are you now not utilizing uh vs code to do. this im in order that used to the command. line for doing this. uh ok and then i am gonna do a commit. so i am gonna say preliminary nest dedicate or. whatever like that. so um and then function preliminary. nest js assignment in order that i do know that if i. mess anything up i can just revert back.
To this so i have dedicated i dont even. ought to push it. it is committed and i desire to redo what i. had right here. um there we move so ive reddone what ive. got here so i have this returned back. ok so these tokens obviously dont. work. what we will attempt to do is as. carl recommended and just use the process. um after which im gonna im able to take my. terminal. off the screen briefly and set the. surroundings variables for the tokens and. then carry it returned. so uh lets examine i think the guilds enable. and deny is fine and. allowed commands and etc is. nice cyber web hooks i dont believe we want do. we want cyber web hook identification and token i do not. assume we do. i could be incorrect i think the sole. obligatory um properties are token and. command prefix. remainder uh is okay lets. uh remark all of those out if i. keep in mind correctly. that sounds good no challenge well try it.
So i want to use a different command to. every little thing else in order that we all know were. just focusing on this spot. i desire to use percentage which isnt. anything wed use if and when we installation. it. yet um lets uh lets take a look. oh whats an sjs ok great query so. thank you very much for the the question. uh elusive code. so the question is the question is um. let me increase your question at the. screen i ought to in fact get extra um. organized at this i am getting carried away. with coding. etc so here why not try these out we cross good question if. i have. neglected any questions im over right here so. im still right here. if ive ignored any questions you simply. type of wait a few minutes and duplicate and. paste it again in. so subsequent js i need to explain this. in fact it is constructed on top of. um express and its. used for construct it is a frame of creating. apis and its motivated.
by means of angular do not run away and get scared. yet which angler was inspired by means of like. style of spring. so it is really kind of that framework. mentality it is very nice youve got a. lot of tools there prepared for you. http client you can do that you desire um. information superhighway sockets you wish guards you should. safeguard that you need to sure. middleware its it has got lots of it. built you need a logger as i learned. the day past with carl. when we were speaking approximately this you need. a logger it has got a vanilla one built in. definite you can still upload extra to it and. customise it yet its got a very good. starting point for for everything so. that is a. certainly wonderful question i hope i. did not omit any others i am trying to. have a skip and take a look um. pr discord.js sent thank you. oh awesome pleasant okay. so that you sent a pr to that project. and merits a shout out thats a eco-friendly.
Square for you and uh. thanks a lot for doing that thats. marvelous. since you know i saw it as a type of. squiggly line and ii thought right i do know . it is only a comma. and iit is just a comma and ii know plenty. of people say i shouldnt make. contributions which are just aa space or a. comma. but when somebody copies and paste that. like i did the exle. code into their assignment and they see. this underline or they run the assignment. and it fails. they go oh it doesnt work they dont. comprehend that anything. um is to anything easy they wont. realise if they are new to. that variety of task or perhaps new to node. and pritier and linto and all remainder. so i believe the exles should be. bulletproof and may. work so sure anything like that. obviously send in a fix is truly. surely significant. have you ever discovered new javascript.
Libraries fastly i havent checked out. fastly but i have heard people you know. talking a couple of lot. what issue turned into to be raised in the repo. i think it bought raised already. i think so uh aditya beat you to it. adithya sorry my undesirable there is a. uh its totally very small on my on my. screen down there but there is an extra. letter. um i have no project okay son. kara. really wants me to reply so before we. get into the coding permit me. study this query all of you. be at liberty to reply besides. its excellent for every person to have. one-of-a-kind views i havent any. initiatives achieved until now yet i do know html. css js python. and also have no git repos to do. please inform me what to do. create a git repo i am certain you have got. these apart tasks create them percentage. them on github and become a member of us on discord. and you will simply sort of snowball from.
There. it is uh you just bought style of you can not. exercise session on the gymnasium. if you havent kind of long past to the fitness center. so visit the gymnasium and then. test any exercise and then youll youll. youll find a lot more workouts at the. gym that you can do in machines which you. can use. um and uh dtr says already spoke back so. with a bit of luck that enables i like seeing. distinct. peoples perspectives okay eddie enough. speaking lets try to perform a little coding. um right so this one we will say it is. method dot n dot. let me see what i call it in the other. project simply. so i can not i wont oh do not suggest to. vicinity that what am i doing. um i am gonna open a terminal over here. just so i can get the token yet no person. look at any other terminal. you cant its aanother display screen i am secure i. think i am well. uh and allow me just get the the call of. the token so.
with a bit of luck it ought to be quality. lets take a look um you know what i. could do i may begin ive got. an easier notion i understand how to get this to. work ok every person endure with me. dont worry all is good we are we can. paintings it out between us. so if we go um. lets have a look right so i have a. first-rate idea i desire to bring this terminal. over to a different display screen and iim going to. begin the assignment from there. after which any other commands i run i am going to. run in vs code. i do know you all like vs code and so forth. so uh allow me have a look but then im able to. within the command when I run it like i reported. its aan environment variable so lets. take a look. lets do it so to begin the task i. should have all started the task in fact. earlier than i. even put this in actually theres. another thing i should achieve this what i. could actually do is undo all that again.
And again human we should examine the. project works before. we attempt to customise this its back. to what we had earlier than. and lets start run the project so if we. examine the documentation. the project is likely to be npm. run begin yet lets. double assess and see. what it says first steps set up it it. tells you what. files get created i like the fashion that. it does it npm run start. so i can do it at the screen so you may. see we are going to do. npm run begin and then in the browser we. should have a good day international api. thats how simple it is to get an api i. have gotten a video on this uh going into. extra info i published a few days. ago on wednesday. where we really get data from githubs. api and merge it with data that weve got. in the application. so thats up and walking lets go to. localhost or no longer regional hack day.
i feel 3000 and you will discover its totally. small um. good day international so we know that works okay. marvelous so allow me take this off display. let me placed the um token. for discord and lets have a look. um after which hopefully. npm run start. so the task ought to run back and we. ought to see. no change all ought to be well it is up. and jogging you can trust me in this. and so if i reddo this. and the call of that is discord token no. shock there. and you shouldnt see it and we are not. utilizing those so lets simply go away these. out. i like vs code typescript all this. amazing stuff. ok so hit save the assignment should. restart. it didnt i dont know why allow me start. oh no theres a dev mode aha theres a. dev mode for the assignment. so if i go back to the documentation and. i go back to. cli over if you let me check i do. remember seeing.
Uh yeah npm run start dev so it watches. for adjustments thats what i must have. finished npm. run start dev. still with the token im especially sure and. if i visit localhost 3000 back. now not localhag day 3000 continues to be up and. jogging. you cant see the token which is top notch. correct allow me compensate for the at the chat. allow me see what i what i overlooked. um oh chats going good awesome i admire. it when you all ask questions and chat. among one another its aawesome. uh what did i pass over i do not remember. wherein i got to uh whats sjs we did. talk about that. uh alicia raised the pr. um thank you for explaining subsequent uh it is. ness js sorry now not. subsequent js so nest js is an api framework. subsequent js is a framework for front end. for react. it does have some type of backing. features but its totally gentle touch. i did take a look into that yet yeah if.
You want a proper. api id pick an sjs. and you will get up and strolling as you. noticed literally in mins. yet no issue okay cool. lets take a look. um. uh sankara i already responded your. question i think some other people did. to boot. i was a typo that is nice okay cool um. well thanks for clarifying okay so we have. acquired this up and walking lets have a look at if we. can get whats up international working in. in fact in discord so lets have a look at so next. thing we have to do. is we have this i think this looks. good i do not it is strolling there is not any. mistakes within the console. so the next thing we do is usage so we. have got to create a bot gateway dossier. okay i mean we can do that and duplicate and. paste that during sounds well. okay um i know carl has performed it in. genuine module which is. a pleasant way of doing it i want to retain it. dead dead easy for in these days.
i am just trying to do a spike to determine if. going ahead could i write a discord. bot with nestjs. um typescript ok lets have a look. paste it in. we are able to do somewhat formatting. there we cross okay um. save that and it should load it lets. have a look. and see. ok so its going to oh well im going to. add it there is one more thing ill do uh. the project does not understand whatever approximately. it but. i have to add it to. um to the module surprisingly certain ive neglected. that step. lets take a look maybe as a. provider yeah im trying to look for the. documentation on it. but theyve variety of overlooked that step. i have all have i missed it. permit me see utilization um yeah so that is the. gateway. it is sensible and you should use the. client decorator ok that is rather. interesting too there is the way to do. it you may do it for service. or you are able to do it with a decorator okay.
that is well to grasp. um i mean both seem pleasant and an analogous to. me. and then thats for receiving messages. so immediately theyre directly to the subsequent. form of discord bot listener so in fact. you are right they havent. theres another development to this. assignment permit me proportion the link to this. assignment. i feel i shared it already yet i am. going to percentage it a further time um. raise an argument that and do double determine. that i am. and this is true however it seems like. once they give an instance. they do not upload it to the module dossier so. returned. you recognize we are able to i may have figured. that out but carls definitely helping. me that is making it plenty easier i. love pair programming. um but you know someone is doing this by way of. themselves they could get caught on that. for like three hours. while you know a couple of strains of. explanation or code or exles would.
Simply assist them make it a lot easier this. is why. its so important for everyones. initiatives to get people to look at. it due to the fact. they might not comprehend the sure matters. which you comprehend when you make assumptions. so lets have a look so. it truly is bot gateway and we will. add it to providers we have app. provider which is nothing. that is turned into car generated by means of gateway. and if i hit input. lets deliver this up slightly it. should get immediately further at the. true. yeah weve at the end so lets hit. save and. the console i should be capable to um. show you now because the token is hidden. that is good. if it does not get hidden i will be very. dissatisfied. but no it i believe it is hidden okay and. weve an mistakes so lets take a look. lets debug all of it together. so lets take a look so places cannot. study estate send of undefined.
On on all set in bot gateway line 23. so lets have a look well ok 23 is. javascript so. we do not have the uh the mapping so. we are going to simply uh remember that we are. looking for on all set. so on ready changed into announcing um. ship ok so we cant this doesnt work. okay have we accomplished whatever incorrect or. have we discovered a different issue. um in the assignment lets have a have a. appear. well perhaps i did something incorrect let me. determine. so after I use this and iits got. a standard in it does it received imported in. sjs we have each of the imports. especially certain i did precisely what they stated. ish. i believe it got the error um i think um. within the app module where you initialized. um the. discord module and you didnt supply a. webhook. url and thats why he cant find get he. cant do get webhook. purchaser and thats why ship is undefined. oh i see. okay so if ok good point.
good good observed but i think you may. simply delete this line i feel you do not. need this. this is in case youre using uh web. hooks right. ok so it is done yet another manner i. bet right it is achieved. can anybody simply get client yeah it can. be completed we get clients. ok oh yet there is not any send on there. okay. good we can see we can see if we can get. a log right due to the fact it is going to give. us the user tag. and all remainder so lets just undo this. for the moment. and go back to what we had comment this. out save it if i raise this. it should reload excellent no blunders this. time. and it does say logged in as eddie bot. so. it works its related to discord so. perhaps the subsequent element we can do. is get it to hear for a metamorphosis on a. command. so lets and were gonna must come. again 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 means of the box i like it how its simply. broken down into. unique files you do not get these massive. documents necessarily issues its all sort. of. taken care of for you okay um. lets uh lets have a look so i am just. gonna kind of copy and paste this returned. dont do what i do everybody and theyve. called it bot gateway returned okay so. theyve placed it in an analogous dossier okay so. we are able to placed it in an analogous one. because its another set off its. going to be um. an on command ok lets seize that. put this here what have we obtained so on. command hasnt been imported. we should better just pass import i think. its appended it up there. nice message does not exist lets see if. it can determine it out. and do an automobile import as well ideal it.
Has accomplished. it all appears relatively really comfortable so what. we think. is when it begins. uh what is message come from and it receives. a message so allow me simply study some . i didnt study this yet i am guessing. begin so that is the command its seeking. for i am guessing. i feel we should do it on let me see. what will be what will be a very good that. i believe i noticed on a superb exle. that could be larger i dont want to do. on every message im looking you i did. that i feel after I changed into having a play. with something as soon as and everybody had. someone wrote a message the bot turned into just. spamming every person so you will not do that. lets uh. lets examine permit me get closer the chat. while you are having a having a read. band sal are you able to tell your other uh. channels that provide open resource content. and training. um not to everybody touches on it i believe.
but no person genuinely makes a speciality of open source. like myself. so um but ill have a look ask and. discord and we are able to we will. send you a few a hyperlink in the within the . description lower than to the discord channel. and we are able to chat to you and uncover some . people yet we are already discovering. some bugs in this in these days so. optimistically somebody has raised the problem. that uh what became the difficulty oh definite adding. it to. um the module oh but they do add it oh i. ignored it if we look. um providers purchased gateway oh thats. due to the fact. convinced they did add it previously okay so. they further it earlier than. and i went immediately on to usage and so. its kind of weird including it before yet. the file does not exist. id have carried out it a bit. in another way i would done it like a. right flow. yet you recognize its it is there i simply. suppose. i wouldnt add a file bot gateway to the.
Module until i create it i necessarily variety. of create the dossier first i dont know. what persons think um themselves. correct in the chat what do you think. lets take a look predicament raised. um okay cool. yeah deleting yeah do you i believe you. can the issue um. i even i will positioned a comment let me let me. observe the failings and i can say. oh i found it so you cant delete it you. can close it i feel it is. i have add comma at the tip by means of jason. marvelous after which i believe did you close up. it already. um but i may placed a remark and say oh. i discovered it that it was further up and so. forth. um if that is if that needs to be the. case i am glad to. to returned you up on that due to the fact i. recommended you to raise it and it changed into a. bit complicated the pass um. wasnt wasnt awesome um so ok. and ii wasnt reading it while i used to be. speeding by way of ok.
let me know inform me the problem variety if. youve uh have. read it copy and paste uh is okay as a. developer i will create a assignment via. basically replica and paste to create something. it will likely be exciting and iimprove my examine. abilities your replica and paste is good to. start with. um yet i believe its a must to. recognize what you are copying pacing i. think once I copy and paste. i just exit it works and just form of. do it after I after I sort it out i. actually. assume extra approximately it so its a bit not. remarkable yet im just attentive to time. simply i want to keen to get whatever. working and to only get. my target here isnt to truly recognise. every thing is to get whatever working. to work out if. if theres something we must always use going. forward so its almost like a spike so. i am going to reduce lots of corners. besides i even have a question for.
all people and maybe for carl as well. who i do know has completed nest um js stuff for. um a lot more than me is what about why. is thiis specific to discord bots so. in fact its perhaps not much of a. nest query. but what about testing a discord bot. because it it. does internet sockets so i would have tried in. the beyond to mock out the websocket. and ship the data that i want to the bot. so that. um i can examine the reaction however the. difficulty with thats when I um. send the data back the uh testing. library variety of kills the connection. after which the bot simply continues trying to. reconnect forever to the websocket. and so it just gets into this crazy sort. of loop. i wonder if anyones demonstrated any. websockets earlier than because thats necessarily. uh. because its like an engaging. hindrance okay in which became i. um right what changed into i doing i used to be doing we.
Had a start thats what we had. execute command start ok i think. thats it. i believe it is going to run and carl could. know more than me. if you are still around is that um i do. the beginning command iits going to reply. with this lets simply deliver it a go so if. i hit shop. ought to reload logged in as eddie bot. ideal. lets raise discord lets take a look. um and allow me go to lets visit the bot. chat. and what changed into our uh with a percent i. imagine. if i just do experiment nothing should come up. oh you are probably at the back of my head eddie. its behind your head. sorry every person my undesirable allow me make it uh. deliver it up it is friday. bear with me it is friday in fact i make. blunders like this every day. so test as you will find test is there and. um. no reply no remark nothing in the. console nothings modified so the bot. hasnt finished whatever thats well.
So if i do percentage and that become our. set off for our command. experiment im hoping it does nothing back. nothing there. not anything in the console okay not anything is. well and now if i do. percentage experiment start sorry percent. start. im hoping whatever occurs both in. the console log or within the chat. lets have a look at it worked i suggest thats how. rapid its to get. an sjs up with an api and a discord bot. i suggest thats rather extraordinarily quick right. so now weve. execute command percent start so. consequently we will do. so many other other things hypot. its because in fact i need um to get. our api up in an effort to get the map. post behind me and as people interact. using. um doing contributions to open resource i. want their profile to appear at the map. from github so i have so many cool. ideas with that so i perhaps ought to. awareness extra on.
The api than doing these other things. however the bot. with the bot going down um i want alexa. js up much because i im just so. tired of all people just saying howdy guys. its like not everyones a guy here so. um sure so i am eager to at least get uh. alex js up at the bot and then we can i. can get back to the the api although im. now not doing a great deal on the api its. ordinarilly carl. uh ok oh sorry carl were going to say. whatever. no no um okay everything pleasant ok cool. no problem um okay so that works so im. pleased with that. and so what one thing we want to do. differently is. we dont desire a command for alexa js. thats something we dont desire we do. in fact want a version quantity. i do like having the the understanding what. variations are running so persons can think. good wheres my feature i. submitted a pull request to that um so.
it is uh it is good to have a edition so. what lets . possibly do i will not get distracted with. that now yet it will be well to have a. version command. um but perhaps ill just difference that to. version and we will not carry out the. version. yet um we will just remind us to place. that in so now. and that should be great it must have. reloaded ideal. lets bring alexa alex js not alexa. alex js so wed like that to trigger on. every message. so lets take a look what we can achieve this. if we go to the medical doctors i did see something. enroll in the development. and we want to subscribe to each. message and we are not likely to respond but. we can take a look so. lets take a look if we i want to put in. an identical dossier for now and we could. necessarily. uh separate this out later if you wish. um we want the on. annotation and i am unlikely to respond.
But if its not the bot lets do a. console log um. simply so that it will see within the log console. and there is an magnificent oops now not intended. to do that. there is aan awesome logging inside sjs. but im not gonna do that today i am. simply gonna say um. lets log the message so yeah just log. the message. message dot well i didnt see what it. turned into. it become for exle what it is. message dot um. am i able to get the content material of it no longer writer. content right here we pass. there we pass so should i see it optimistically. within the console log. that ought to reload lets return to the. bot. long time no see eddie but. uh yeah nest js spot. okay um correct im sorry there you move. see in the console. correct now not behind my head is it ok so. thats coming through so we know for. each message. so somebody else can write a message in. the within the bot. chat channel and that i want to see that it.
Also comes up in the console and its. not just from me. so i want to show evidence to every person. and myself that its not simply m