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 own Discord Bot - Aliases (2021)
what is going on guys welcome back to. a further discord.js tutorial in contemporary. tutorial we will be adding. aliases. to our instructions in our discord bots if. you do not know what an alias is. google tells me that its a fake or. assumed identification. what this implies is as an exle to illustrate. i create a command. thats play which joins a voice. channel and starts gambling a command. but as an exle i want to execute this. exact same code. of this command utilizing an extra key-word so. as opposed to play. i desire to execute this with pl and simply. by doing. this here it will nonetheless execute. a similar. code as play and thats very simple. it will be a very brief video but. earlier than i start i do favor to provide. my discord server a short shout out it. has been like 4 days considering the fact that we. officially released. weve over a thousand individuals already.
Come right here when you are. into coding disc or mods this can be a. coding community for discord bots. and likewise we do have a little chat region a. little front room location if you guys desire to. communicate. to the community so there is going to be. a link in description to this discord. server. come forward become a member of so lets move ahead and. get started with the actual. code so like i suggested very quick video. all you are going to desire is to visit. your message event if you are new here. make sure to watch. the whole occasion handler video due to the fact. we restructured our total entire project. so lets get started right here. in our message occasion weve a const. command and this is the same as purchaser that. commands that receives cmd. we will edit this and do an or so. or. its going to be purchaser that instructions. dot find were going to create a. variable i am simply going to name the.
Variable a. with an arrow operate a dot aliases. aliases after which and. im actually going to copy aliases and a. dot aliases. that includes and were going to move. in that cmd another time cmd. is thiis constant up right here thats simply. rx that shift that to a decrease case. and actually were well-nigh done. with the message pursuits. now from right here visit all of your comments. and we will create the aliases up. right here. so aliases colon its going to be a listing. and you can begin. typing your aliases so for the mc server. were gonna have three aliases. one is gonna be mc the next one goes. to be mce. examine and the final one we are just gonna. write out minecraft. and confirm you put out the comma at. the end reserve it. shop every thing and everything must be. walking quality lets pass forward and do note. area dot. there we pass its on-line lets move into.
Our discord server attempt jogging. the 1st legitimate name of the command. which changed into mc server so mc server. you can see its going to say please. input a minecraft ip and then we will. also run. mc its going to say please enter my. kind uh whats the other one thats the. mc. examine and then we even have minecraft. so all of these commands listed here are. technically going for walks. the exact same code that is this. however. you recognize it is simply its the aliases it is. almost like the referred to as. um commands right here so it technically. all works i can actually do something. like. mcmc.highpixel.web. two five 5 six five and there we cross. the physique is gonna work. now what in case you wanna use those aliases. as anything like a side command. so as opposed to running the exact same. code maybe i want to have. mc right here run yet another code than.
This yet still have it in a similar dossier. here. the way you do its come all the way. right here were going to add anything down. here in the execute technique. and we are going to name 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 right here into your. command add it besides what you want to. do is reproduction. each of the code and you only want to go. forward. and examine for the cmd. so all you do is do if cmd triple equals. two. and the 1st one is always going to be. the actual main command so. mc server and then move ahead and paste in. your code then come all of the way down. right here and then do the next in that case. if cmd triple equals to mc that is the. first alias were just going to console. that log.
And well console the log. announcing this is not. an mc server after which lets do one ultimate. one. which is if cmd triple equals to. uh minecraft and iits going to say. message.channel that is send back you. guys can variety you men want. right here. its aactually no longer console.log let me. message that channel. thats send so they can see it at the. server. and for the minecraft you could say we. love. minecraft so utilizing those 3 aliases. were correctly strolling 3 unique. commands. in one command dossier now technically you. would. do distinctive instructions and its gonna be. no distinct than the particular command. handler that we had earlier than yet with this. new command handler we are literally. organizing every little thing. so you do wanna have your command you. recognize files and every thing prepared. its simply that in an effort to have a you.
recognize an extra alias with one more. operate. im simply displaying you so lets go ahead. and run this. and now if we do mc. server this is the 1st command so. please enter your minecraft ip. then if we do mc it is going to say this. is not a minecraft server. this isnt a micro server and if we do. minecraft its going to say yay. minecraft we love minecraft. and that is how you really can run. numerous commands in one command folder. utilizing aliases. most often you only want to use. aliases as aliases. yet frequently when youre doing. something just like the play and depart. command you might want to have them in. an analogous. dossier so you need to use the exact same. things so im able to use. just like the voice channel and retain. every thing organized so. thats very nearly it guys i hope you. men loved if you probably did be sure to.


lousy KPOP DISCORD SERVERS
Welcome players earlier than we start this. video i cant pressure this sufficient this. is a case examine this video is in no way. intended to advertise any harassment to. anyone I know how arguable this can. be I tweeted out Korean pop acquired approximately. thirty persons combating in my goodddamn. require just like the video I made one. year in the past referred to as lousy bushy discord. servers Im trying to infiltrate this. community and see what its about my god. fairly frankly we see it for all time. kpop stands and Twitter reprised. replying with fan cams and thats what. we see at the end of the iceberg yet I. desired going to be and discover what. its aactually like to join this. neighborhood. so please whether youre a kpop stand. or not do not pass in harass anybody shown. in this video. oh man Jesus Christ we will begin with. our possess discord account.
My name is mr. kpop situation 1 I am not. from the kpop neighborhood yet i am from. another stand community how pleasant well. these people deal with me ok Im style of. scared Harry patterns girlfriend. you look so dreamy in this picture i am. gonna juice this one. oh yeah batard all God yet marvelous Im a. Harry style supporter now time to work out. how those groups will treat me. knowing Im from yet another community. so Im not only gonna join kpop servers. i am also gonna become a member of anime servers see. how people from the anime servers could. treat me you guys ever heard of kpop. Lord overheard or recognize whats kpop. kpop Korean pop it is a style I want to. be part of that community ok listen. here Harry patterns as somebody who got here. from the k12 neighborhood I enormously suggest. you dont go too deep into the community. because its a food i think thats a.
Really mean assumption i feel you simply. hate kpop okay pay attention right here bucko. do yourself one more battle that you you. wont be able to your self out i am ok. its aa lot of fourteenyear-old girls or. your buddy you know I dont believe I was. girlfriends Audi likeness. Oh whats this oh this is all in Korean. I dont know Korean IG is trash period. yg period period I do not know what that. ability. lady friend it really is the worst welcome. ooh thats on a bot hello Im looking to. convert ive on no account heard a kpop but i am. looking for friends oh why are they. making enjoyable of me why do you suspect it exciting. of me Dan twice first. why would I stand two times if I comprehend. the 1st time is there a rule wherein I. need to stand someone two times and a. 610 mamamoo dan gee thats a vehicle. enterprise ive certainly not heard their tune I. do not know who they are but what is that this.
all of it I dont know what the any of. this means ive certainly not heard of them. before. does anybody want a position play as BTS. contributors yeah does that a No pay attention. freeze accepted teethers why cant you. men who are these persons. idols howdy what she deleted it maybe. its time for me to leave you are not. gonna continue to be here although in order to. find out about kpop I believe out of touch cuz. I dont hearken to kpop plenty everyone. starts someplace may help you real certain. a large welcome begin from hearing. London oil thats a resource buddy begin. with one team yet what you can start. with BTS if you want i am deaf although I. cant listen to song what why are they. making enjoyable of me are you making enjoyable of. me alright Harry patterns is just. knocking in the course of the drink how approximately we. start with that BTS members jimin jhope. suga jungkook jin RM okay jungkook is.
the chosen i dont know who any of. these are but i thinkin ago with. jungkook who I found a kpop server that. hosts karaoke hiya changed into garyoke with a. karaoke field alright alright lets play a. song i am ready please play me Jung Kooks. #1 hit what is that I just want. to sing a jungkook tune just get me a. good tune alright ok Im ready ask for. funds get suggestion. I spread my cash twice theres a fun. song hello this a lecture room and that i say a. little song well buy junk code like this. ok sorry guys as much as I will assist you I know. my manner turned into gonna be later a couple of week. ago good time these are pitbull eaters. they eat mr. worldwide any bald persons. no that is the worst things happened to. me tonight now i understand how kpop stands. react to different tune perhaps a few song. even better than kpop now i understand how. they react this is so unhappy it is time now.
That ive found out all the secrets. by means of discord and during many her. aisle and mistake are you ready to tackle. the big boss that is Twitter institution. chats so I got a chum to infiltrate me. into numerous Twitter organization tracks for that reason. will test out the community i am setting. the president that kpop stands hate bald. persons we are gonna learn the way true. that is. oh dont ask in regards to the Vin Diesels that. say thats a bar fight I dont need to. discuss that this elf in. my mentions with the same crusty pop. that stated looking images you are the. one making a song me fancams i am just. responding very well i think this can be a. person homie yeah this individual has been. assisting me infiltrate I am not gonna. expose her call definitely we cant. divulge her secret identity. should I ask my buddy how do I. introduce myself and they stated hello i am.
Call and i am from after which your ultimate. bias is your final bias is jungkook. hi Im Sophie and im from america and. my final bias is jungkook and im. gonna do that white emoji that simply. teenager white girls use this one yes . and a celebrity emoji very thats perfect. what is up Sophie are you going to the. video store on are they Tori now why did. i do know this nutrition its aall over Twitter I. dont stand in even I would ok so ive. been off social media a group because of. exams and personal problems. I saw BTS in Hamilton in 2018 but i want. to buy my mother this birthday current I. cant genuinely find the money for the two oh heres a. controversy reaches over dad and mom Eddie. day of the week mother and father. jungkook gave start to me ok why did. you upload an additional army to a few of the. cakes in right here most folks right here Stan. BTS okay so it is a organization to begin.
Controversy in now alright men. caution ok i do not hearken to kpop I. have no idea what kpop appears like yet. lets see the reactions to a. arguable opinion okay thats the. bomb GBH jungkook has been having. disappointing vocals recently I much. prefer the other kpop individuals oh wow I. such as you already. what are they speaking to me what the do. we love beets sure or now not what goes. on here you give off solo stand other halves. woo. so its aactually far better than BTS. though not anything incorrect with solo. stands off did you simply call me a . this is like a bar battle dude thats. like a goodddamn bar fight no I known as. them why are you getting all up. in my face limo just i used to be ok . you assert then nevermind this army cant. read lm foul excuse me protecting you. trip you annoy turned into actually. defending you maybe in case you knew how to.
study perhaps in case you stand specific talent. sis not my fault your brain win mistakes. for or for Sophie apologize Im sorry. that yall havent got a brain shes simply. stand genuine talent are you 12. sure but he is not i am just gonna provide. putting images somebody already left Oh. 3 spots a fancam i need to discover a. pitbull fancam thats for sure okay I. mentioned a large number of businesses in those peoples. case flavor thiis sweetie lime foul. justjust-just. okay i have to preserve hitting them with. the mr. global images I got to get. extra pictures do my arsenal of pimple. has to grow greater oh oh okay so that you. should not have a touch battle of. Arsenals I see verify this out they are. now not gonna assume thiis not one pitbull. pitbulls. oh oh three pit bulls Oh for pit bulls. Oh five pit bulls oh seven pit bulls can. you discontinue sitting middleaged guys Im.
now not fascinated persons isnt interested. in you friend that is so sad i have been . kicked out of the only organization so if you. ask for forgiveness ok i am sorry its just a. board heavily should have done that. I will delete my tweets right this moment and this. is when I hit him with the genuine she runs. to machine turns on logs onto Twitter. deletes bad tour hits. clenches fist thats not how a. steel face turns crimson ok so begin. sweating pull please dont you decide me. in any case hes done ten movies due to the fact. its executed zero films actually what is. incorrect together with her okay o.k. discontinue sending. your images you know what Im sending. 4 pictures of mr. Vin Diesel were. having battles of images of kpop video. victors it is the best thing ever all. right no okay this is Eddie different. artist well I greater send mine friend this. is how the true world works alright oh.
This person surely went into my DMS to. send me pictures of this one artist all. correct thats how they want to play lets. play dude ill cross all Vin Diesel. all night I dont supply it look at this. guy the bald head you can simply slap it. man you may just slap it theres an. underground artwork is that no one whove. ive asked listens to you so far can i. please proportion with you guys. Sophie please percentage yes ok my sister. used to think Vin Diesel the rocking. people paintings good thats a researching of. tonight its actual they are a similar. individual see what the hell whats the. change the other cult all started. bashing on me beating my ass and i send. those persons images of pitbull and. they dont intellect thanks men and never. getting mad at my bald men pigs that is. extraordinary pleasant you know thiis this was a nice. organization wait did I am getting one kicked no no I.


5 Discord Audio Settings every person Needs to know !!
mostly after establishing voice meter. or equalizer apo. a number of you have mentioned that you have. concerns with. discord and a lot of the times it truly is. correctly concerning. settings inside discord the audio. settings in discord. in many instances it defaults to having a few. matters. on that actually should not be on or. generally you guys. cross in there and you neglect which you had. became matters on like echo cancellation. and whatnot so this is going to be a. speedy video on. what you will have established on your. discord audio settings. lets take a look when you are on discord. in case you go to the bottom. left in which your call is you could go to. consumer settings and. under app settings youll find voice and. video in voice and video you will have. your input and output gadget. commonly as a whole i mean. selecting the default device as your.
enter. and output device in this area as you. can see right here i have actually manually. chosen my. microphone the enter device that i need. on. discord very first thing were going to take. a check out is the input sensitivity if. you turn this. enter sensitivity on its going to. automatically verify. input sensitivity this is truly um in. a feeling. a noise gate filter out so if you turn this. off what you spot this is we have a. slider. at the left facet of the slider we have a. yellow part and on the right part we. have green. the yellow part of this meter is. actually. muted audio so if i have been to show this. down it might set my noise gate down at. destructive seventy five decibels i want to move forward. and just maintain this at detrimental 62. to be. sincere with you i have already got a noise. gate filter out in-built equalizer apo so i. might probably flip this all the manner.
Down. and iit wouldnt subject yet on your. guyss sake this is aa great way to block. out history noise from coming in on. your microphone. specially on discord what you are able to do. is just track the. audio of your microphone devoid of you. talking into it and just block out. every thing thats shooting up. at the meter right here generally it will. perhaps sit correct lower than adverse 60.. keep in mind when youve got to go too excessive. your voice would be slicing. in and out of the audio scrolling down. to the advanced section. weve a noise suppression made with the aid of this. company known as. crisp it suppresses background noise. from your mic this. is in beta it is akin to the rtx. voice. ai that got here out recently as you men. know. i mean simply creating aa legitimate. noise gate clear out and downward expander. to your mic. there isnt any cause to use the noise.
Suppression inside discord. if you simply mounted a suitable noise gate. filter. on your microphone there are. alternatives to this as well you have. realtime noise suppression that may be. installed. as a clear out and setup in equalizer apo. you have the reaffir. plugin that i did a video on lately i. will hyperlink it. in the outline under as an entire this. should always be. off down less than voice processing we have. echo cancellation. and noise reduction thats in which matters. get. a bit iffy echo cancellation and noise. discount usually. creates like a warping outcome on the. vocals. regularly it can cause your your vocals. to get roboticky. and staticky if youre using voicemeeter. and that additional further processing. on top of the already processing thats. being applied by means of. voice meter can cause a few concerns there. those should definitely be.
Off continually i do not discover them. necessary to activate. i dont surely see a time wherein it is. essential. for these things as i reported before simply. setting up right filters for. your mic is an improved manner of going. approximately this but many people have. concerns. with reference with you recognize like cellphone. settings things like that youll turn. on. um sure audio settings if you are. using your telephone with discord and that i. might see in a few situations in which. this will help automated achieve. manage is truly up to you it is. going to try to gauge. in which your audio or in which the amount of. your microphone is going to hit so it. will both. increase the volume foil or decrease the. volume for you automatically quality. carrier you need to allow this placing. right here that allows you to have a stronger. priority to your discord.
Searching for what you offer over the web a few a few. internet providers may have a few. issues with this or internet prospective buyers. might have issues with this. that again this putting is going to be. up to you usually having it off is. possibly a way to move. but if you are standard a known consumer. of discord ill see. a case in which you might want a higher. precedence. for discord audio in case you do a number of. calls or. you know you have you do enterprise that. way um ill see where this could be. favourable attenuation is actually going. to be like a vocal ducking or a side. chaining with the exception of its something that. youre going to listen your self. it will decrease the amount of other. functions. by means of the percentage that you set whilst. someone is talking. so you could have it attenuate other. quantity degrees from different sources like. your music or browser audio or online game.
Audio. when people speak or when you. speak through the settings right here. generally i would expect every person to. have the attenuation. set to 0 due to the fact that is type of a. strange issue to set up for your self but. if you have been drawn to what this. putting does that is what it does. it will correctly lower the volume of. other assets whilst somebody else is. speaking or when you are speaking. depending on the placing that youve. the audio subsystem repeatedly your. contraptions will in fact. have compatibility concerns with discord a. lot of you men run into this. obstacle wherein theres a compatibility. conflict related to this gadget. and discord itself you may simply certainly not. appear to get it to work. competently within discord what you may try. doing is switching the audio subsystem. over from preferred to legacy. or vice versa and that could resolve.
The clash. with the compatibility there the last. part heres voice diagnostics. dont really want to dive into this. certainly you have three settings right here one. for showing. a caution while audio is not being. detected out of your microphone. youve use the latest technologies to. trap your display screen and use an. experimental technique to seize audio. from. functions overall these are each of the. settings that youll run into. with discord if you are having an argument. with discord after establishing. voicemeeter. equalizer apo this is an effective video to. visit or if your mates are going for walks. into any issues or dont know what to. installed. in the discord voice settings this. video is an efficient. video to reference i also want to send. you guys over to the equalizer apo video. that i recently did check out the. new preset file that i have.
Available inside my discord server and. also just check out how to set up. all those audio settings to get your. microphone sounding. well that is going to complete this. educational guys i are aware of it changed into a brief one. dont fret im gonna be making it up to. you guys i am working on. redoing the voice beater tutorial so i. desired to knock out a few rapid videos in. the period in-between. so i had time or a bit of wiggle. room as a ways. as working on those videos due to the fact. they are gonna be. big ones and take lots of time if you. men have any questions. after watching this video you know in which. to go my discord server link is in the. description. below if you want this video do me a. stable hit that like button and subscribe. for more content like this. and iif youre interested in funding this. channel and my discord server.


Building a Discord Bot utilizing NestJS - let#39s pair application
Ok hi all people weve got one minute to. move i presumed lets just start i am ready. to move. and i am high-quality excited about in these days um. from sincere assessment i have had quite an extended. day its been exceptional arent getting me incorrect. so im a bit sort of you know. worn-out so. i do know youre all gonna help me uh work. in this project together and i am rather. keen because. eddie bot has been taken offline it had. some challenge i had a brief seem and i. couldnt understand what became wrong with. it. so i assumed well eddie bot turned into just a. prototype i wanted to exchange it. i did see that nest js which were. building our api with has a good. um library that permits you to write. discord bots with it. and yet you get the large reward of. an sjs with all the several. hooks and guards and just various. marvelous stuff. so i assumed it might be rather interesting.
To look at that so you are gonna. see me. uh start it from scratch in these days and maybe. battle. but dont be concerned uh carl who is on radio. eddy with me. or aka julian um he has carried out it already. and uh permit me uh permit me increase uh. carls github page. so youll find kyles lady web page a great number of. eco-friendly squares. recently in the last type of couple of. weeks which is remarkable thats magnificent. it is magnificent after which if we scroll. down right here permit me make it a little bit. bigger for you all. if we scroll down here youll see nest. js. discord alex js so kyle has already gone. ahead and finished it but i want to learn. a way to do it so i assumed. um i will i will start from scratch and you. be aware of we will all do it together and do not. forget we do have. the stargate repo thats already. deployed to kubernetes. and has already received each of the tokens for.
Discord so we could possibly get this. deployed at present we are going to see. how we get on but yeah poor eddie bot is. under the elements. and is not working at the moment so how. is everybody in the chat look. uh say hello in the chat its um magnificent to. see what you have all been as much as in these days i. wish youve a great week it is the. weekend which means plenty of open source. and we have uh prathamesh has already. first at the mercy pink become moment carl. was third. well i used to be moment yet you know i do not. count um. sassy adithya amazing to have you ever all. right here lily. jason long time no see jason karuna how. you doing karine i am hoping youre good. mikey very long time i hope paintings is. going good you are not working too tough. felix marvelous to have you all right here do. say hi. to one another and very well this is. collaboration not just with me but. among each other develop your community and.
We can all be trained from one another. so thats magnificent uh ok. and and uh definite we need um. eddie bot or alex alex js and ii think in. the chat so people do not say hey guys so. a lot. um so definite magnificent to have you right here lets. start so. um in fact you know what earlier than we. guess coding i would like to begin thiis right. from scratch. you will see ive got my terminal right here. i have like done nothing we can do. everything from scratch. uh allow me um say hi to carl whos on. radio eddie and carl can provide themselves. a shout out perhaps talk about some of the. matters they have been building. at the api for our neighborhood goes to. underpin. our stay flow variety of you recognize live. map in which all of your destinations are which. we had a prototype before. and also the discord bot so carl how you. doing hows your week been. i am joyful to have weekend now uh i am.
excellent. magnificent actually let me deliver um discord. over here so all people can also see that. besides at the stay move. cool definite the weekend is here thats well. so im hoping youre gonna have a break and. youve finished a lot of coding on our api. um this weekend but i am hoping youre gonna. so this week i am hoping you can have a damage. besides. oh i its aactually rather uh relaxing i. enjoy. coding um for this task marvelous. thanks ok that sounds cool so i. want to get started so my. my first thought and i am perhaps going. to make some errors yet. um you know i am im confident among. everyone we will determine it out. ill cross into my repos directory. where i create all my repos. and actually allow me additionally drop. um carls github within the chat. or pass deliver carl um a comply with. carl has no followers on github i will. be the first and optimistically youll get.
some more as well. ok so this is how were going to do it. i think the very first thing that i ought to. perhaps do first. is create an sjs project so lets examine. how this goes. an sjs documentation good place to start. um ive had to play with a good number of. little bits in sjs. and as our apa evolves i have been . studying tons approximately style of guards and. middleware and all the rest. i like it how i needed to play with. websockets how you may get his live chat. operating really quickly. and theyve really thought about this. framework it is all constructed on show so. its kind of maybe building on one. what all of you know already so do have. a look into this i am very very impressed. with it. so first steps its probably a very good. place to start install it globally. i think i possibly received it create new. task. hmm create new assignment ill just create.
A new project for now. i have to upload it to an existing one to. get it deployed but we are able to fear approximately. that. later so permit me create a new assignment. what ought to we name it. uh i will just call it discord bot um. okay its new lets go wait some . seconds. npm or yarn lets choose npm i admire. vanilla maintain every thing vanilla as. possible. um lets have a look uh. koalaa happy hubbers definite precisely pleased. hub turned into all. and uh adithya um why sad. im hoping i mentioned your name correct have. you no longer sad due to the fact i suggested your. call incorrect. lets uh lets see everybody watching. do not forget give this video a thumbs up. surely facilitates uh support the chat. lets put the chat weve support. channel that isnt an excellent begin. ok we do the failing sounds ought to be. a failing sound yet persons on radio edit. you cannot hear it.
Uh lets take a look um. ok uh ok so its created i think. we are good so now we have created lets i. necessarily do i necessarily head into the project. so we cross into discord bots. after which i always open um the vs code. right you know all of us like vs codes. so lets carry this over right here so you can. all see it. and ill make it way bigger there we cross. you all realise bs code im sure ok. so what. subsequent lets have a look she created it. ok so now i want to truly possibly. jump. immediately to the um. uh the what do you call it the kit. that we are gonna use for an sjs. to create discord so it says. setting up we have to. install these two matters and weve used. discord js earlier than. so the sole additional form of new one. to us is the. nest js version so lets have a look so. lets just install that. npm set up lets go so to date it has been.
All a duplicate and paste. lets have a look um. oh what we acquired in the within the chat um. two followers by the way marvelous thank. you so much that is magnificent lets get. lets see if we are able to get carl to 10. fans today. thank you oh i see that is why karuna. thank you a lot right i i am not the. the sharpest toy in within the in the field as. the expression says but queen is saying. yes uh adithya maybe sad due to the fact no. followers. i agree i used to be unhappy too lets examine if we. can get double figures. magnificent okay so now we have established that. lets examine what next. im already stuck no im jokking um ok. so next is saying weve got ill have a. token i can grab a token that ive got. before. im able to grab these types of ids ok. amazing lets just get. good day international working and notice if we can. see that seem in in discord. so instance of making a dynamic module.
With config i suppose it has specific. approaches to do this uh carl did you know what. the variation is between these. other ways so you have got. 4 routes and then youve got 4. route async so async im guessing its. gonna try and retain loading up the. task while this occurs within the . historical past. so is that more effective did you know um. to be sincere i did not figure out what is. one-of-a-kind. myself um i feel if you utilize um for. direction async. you could circulate um special prospective buyers for. instance if you have. um the token into um within the dot. n dot enb dossier um you can pass. you may inject the config carrier while. growing um. the module um. thats the use case i see okay um in my. repo i. did it um with surroundings. variables ok um i didnt do it um. the way that i hard coded a token into. the use manufacturing facility technique. um should we take a look but i think.
Its it is its only a option. lets take a look and we can actually. show persons um which. dossier will be a module. okay yeah so that you permit me take a look yeah. you will have to have the youtube open. um so one can 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 okay 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 looks relatively particularly. smart. okay im gonna try and hold it incredible. first rate easy. um but i am unable to put it in that file yet i. dont ever want to see at the stay. move all my tokens. so i have to have a thing i must have. inspiration this earlier than. what does uh um everybody else thinks. um aditya why are such a lot of followers. nonetheless showing 10 even after so many.
Follows. um it takes time for those numbers to. replace i think theyre all strolling on. unique microservices on github so. even if you get a number of fans it. will possibly not take monthly 24 hours to. in fact update to what the simple. numbers are ok so i am trying to assume. i may do this and ii could you continue to. use the config i can not inject you are. correct i see what you suggest i am unable to inject. the config service to get them out as. environment variables correct. ok um what you could potentially do. um im not really certain if it really works is um. reference. procedure.n instantly im not utilizing the. yeah um the config provider this may paintings. yet. uh not no hundred percentage warrantly yeah. no it is good lets try it lets. experiment. um so well all gain knowledge of whatever new if. it works or if it does not. so the um wed do that for now.
Um but it is not whatever that id. form of devote and did and set up but. anything for regionally simply. for uh evidence of suggestion i feel works so. if i go to. the discord its a discord module but to. the the module. i am not gonna um do anything. i feel carls project is much better. investigate that for uh reference. yet im just doing this for exle so. lets take a look. whats their bot gateway to boot. can i click on that export bot gateway. um lets take a look. shes accomplished slightly of research earlier. here we pass this is the gateway right ok. so. on all set occasion prepared log it ok that. is smart acquired you. ok lets take a look in order a typical. developer. im going to do quite a few replica and paste. so weve module weve got imports. um so it is going to be an import um. lets take a look so it is discord and.
Sjs lets reproduction. that import at the end. ok after which ill grab. this import i think it is. there there we pass so. because we wish to preserve the import array. and we paste that in. that appears you know not too undesirable oh now not. dot. comma every person following along lets. have a look and notice. so um thats not blissful ok that is simply. the. uh the missing trailing comma. okay amazing the others have it besides. so actually that is an improvement persons. could 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 would not so. when you copy and paste this you get an. error. so permit me um share this project of. everyone. in um. in the chat and someone can raise an. predicament and really boost a pull request. and so you dont when you replica and paste.
this instance you dont get an mistakes. correct lets have a take a look um. weve got a few questions within the chat. lets take a look uh uh aditya. says such a lot of left tabs in vs code. what are these oh these ones down the. aspect. ah okay good question so. i must regulate discord in addition. ensure no ones elevating their palms. to to arise. in case you do let me be aware of in the chat so um. the tabs okay bought file that is the same. as everyone elses i feel seek the. identical. whats transformed to the resource code um i. shouldve performed a dedicate before i began. making changes to this i always do like. an preliminary. kind of dedicate id do that now and. then. this one is the debugger then it is the. distant. this one distant explorer i used to be just code. areas it is for code areas . that is the plugins so ive all my. plugins installed.
Um lenses get lenses which simply offers. you an insight into your. style of your your task and stuff okay. lenses simply obtained removed not sure what. happened there. uh live proportion uh to do studios is truly. beneficial. um once you variety of placed i like this. because persons just placed todos. everywhere. after which overlook that they they happened. and they cross oh well. you recognize yet now i will get a listing of all. the todos that have. regarded within the task and i can just. visit them immediately. and simply cross and connect them and clear up them. or if theyre obsolete just eliminate. them so i really thats like one in every of my. popular tabs. enormously advise having that uh that is. azure thats i take advantage of this for i. think because you should use the azure. provider to connect to a database. but i dont use that anymore i would. correctly get rid of which may i uninstall it.
Um i can most likely simply eliminate that uh. lets have a look at this ones a brand new one whats. this one. 100 days of code yeah i do not use. that one so much anymore both what. else have i got down here docker and. code time and mongodb. i possibly have to sort that up um. theres a lot there that i do not. in fact use. so thank you for putting it out so i admire. everyones questions. uh i have not visible these tabs in vs code. uh. i work with yeah ive further them on and. i perhaps dont desire all of them. but let me be aware of which of them youll use. out of these probably not too many. stay code proportion is beneficial lets. uh. lets have a look um. what is the reason for using typescript. with nest uh nest with the aid of default. makes use of typescript and typescript is simply. freaking awesome ask nick. whilst nick arrives presently youll see. that typescript is amazing.
Um lets take a look ok so i desire to. do in fact i will undo this for a. moment i am simply going to variety of. so let me do an undo and it is often a. well idea. undo that and then ill put it aside. and iim going to do a commit so if i do. if i clear my console. and i do a standing i have all of these. i feel theyre all secure to devote i am. simply checking. they are so lets do um a get ad we are going to. upload them all so now it will be. we are going to do a catalogue returned you may you could. see all those i know what a number of you. are announcing you are announcing eddie. why are you now not using uh vs code to do. this im just so used to the command. line for doing this. uh ok and then i am gonna do a commit. so i am gonna say initial nest commit or. whatever like that. so um and then feature initial. nest js assignment just so i know that if i. mess anything up i will just revert returned.
To this so ive committed i dont even. ought to push it. its dedicated and that i want to redo what i. had right here. um there we go so ive reddone what i have. came so i have this returned lower back. okay so those tokens obviously dont. work. what were going to try and do is as. carl recommended and just use the process. um after which i am gonna i can take my. terminal. off the display briefly and set the. surroundings variables for the tokens and. then carry it lower back. so uh lets have a look at i think the guilds permit. and deny is fine and. allowed instructions and and so on is. first-class cyber web hooks i dont believe wed like do. we want information superhighway hook id and token i do not. think we do. i could be wrong i think the sole. mandatory um properties are token and. command prefix. the rest uh is fine lets. uh comment all of these out if i. keep in mind actually. that sounds good no dilemma we are going to try out it.
So i want to use an extra command to. every little thing else in order that we know we are. just targeting this spot. i want to use percentage which isnt. anything we might use if and when we deploy. it. but um lets uh lets take a look. oh what is an sjs ok exceptional question so. thanks very much for the the question. uh elusive code. so the question is the question is um. let me increase your query at the. display screen i ought to actually get more um. prepared at this i get carried away. with coding. and so on so here we go good query if. ive. neglected any questions i am over right here so. im still here. if ive ignored any questions you simply. kind of wait a couple of minutes and copy and. paste it again in. so next js i want to explain this. actually its constructed on top of. um express and its. used for build its a body of creating. apis and its inspired.
by using angular do not run away and get scared. yet which angler became prompted via like. style of spring. so its genuinely style of that framework. mentality its very nice you have got a. lot of tools there prepared for you. http client you are able to do that you desire um. cyber web sockets you need guards you ought to. protect you might want to certain. middleware its it has got plenty of it. built you would like a logger as i learned. the day gone by with carl. once we have been speaking approximately this you need. a logger it has got a vanilla one in-built. convinced you possibly can upload more to it and. customize it but it has got a superb. starting point for for every thing so. thats a. genuinely extraordinary query i hope i. didnt leave out any others i am trying to. have a skip and take a look um. pr discord.js despatched thanks . oh marvelous pleasant ok. so that you sent a pr to that project. and merits a shout out that is a green.
rectangular for you and uh. thanks so much for doing that that is. marvelous. because you be aware of i noticed it as a kind of. squiggly line and ii thought right i know. its just a comma. and iit is just a comma and ii know a lot. of folks say i shouldnt make. contributions which are just aa space or a. comma. but when someone copies and paste that. like i did the exle. code into their project and that they see. this underline or they run the project. and it fails. they go oh it would not work they dont. recognise that anything. um is to anything simple they wont. recognize if theyre new to. that type of assignment or perhaps new to node. and pritier and linto and all remainder. so i believe the exles must be. bulletproof and may. work so certain anything like that. obviously send in a repair is actually. really important. have you ever found out new javascript.
Libraries fastly i have never checked out. fastly but ive heard people you know. talking a few lot. what issue was to be raised within the repo. i think it obtained raised already. i feel so uh aditya beat you to it. adithya sorry my bad there is a. uh its totally very small on my on my. screen down there yet there is an extra. letter. um i dont have any assignment ok son. kara. really wants me to reply so before we. get into the coding permit me. have a look at this question all of you. feel free to reply in addition. it is excellent for everyone to have. distinct views i dont have any. initiatives finished till now yet i do know html. css js python. and likewise havent any git repos to do. please inform me what to do. create a git repo im sure you have got. these apart projects create them share . them on github and join us on discord. and youll simply kind of snowball from.
There. its uh you just bought form of you cannot. exercise session on the gymnasium. if you havent style of long past to the gym. so visit the gymnasium after which. test any exercise after which youll youll. you will find a lot more routines at the. health club that youll be able to do in machines that you. can use. um and uh dtr says already responded so. hopefully that facilitates i like seeing. distinct. peoples perspectives okay eddie sufficient. talking lets attempt to perform a little coding. um right so this one we are able to say its. process dot n dot. permit me see what i call it in any other. assignment just. so i can not i will not oh do not mean to. region that what am i doing. um i am gonna open a terminal over right here. just so i can get the token but no one. look into the other terminal. you cant its aanother display screen im safe i. imagine i am well. uh and let me simply get the the name of. the token so.
hopefully it ought to be first-class. lets take a look um you recognize what i. would do i may start ive got. a simpler suggestion i know how to get this to. paintings okay all people endure with me. dont fret all is sweet were we are able to. paintings it out between us. so if we cross um. lets have a look right so i have a. first rate notion i desire to carry this terminal. over to another screen and iim going to. begin the task from there. after which any other commands i run i am going to. run in vs code. i know you all like vs code and so on. so uh let me have a look but then i will. within the command after I run it like i pronounced. its aan environment variable so lets. take a look. lets do it so to start the assignment i. must have began the task actually. before i. even placed this in actually there is. another thing i ought to achieve this what i. might correctly do is undo all that again.
And again human we must always assess the. project works earlier than. we try to customize this that is again. to what we had before. and lets start run the task so if we. read the documentation. the project is probably going to be npm. run start but lets. double assess and notice. what it says first steps install it it. tells you what. files get created i love the fashion that. it does it npm run start. so i can do it at the display screen so you can. see we will do. npm run begin after which in the browser we. should have a howdy global api. thats how simple it is to get an api i. have gotten a video in this uh going into. extra information i posted a few days. ago on wednesday. in which we actually get data from githubs. api and merge it with information that weve got. in the applying. so thats up and going for walks lets go to. localhost or now not local hack day.
i feel 3000 and you will see its very. small um. hi there international so we all know that works okay. magnificent so let me take this off display screen. let me positioned the um token. for discord and lets take a look. um and then with any luck. npm run start. so the assignment should run returned and we. ought to see. no difference all must be good its up. and going for walks you can believe me in this. and so if i reddo this. and the call of that is discord token no. surprise there. and you should not see it and we arent. utilizing these so lets just depart these. out. i like vs code typescript all this. marvelous stuff. ok so hit keep the assignment ought to. restart. it did not i dont know why allow me begin. oh no there is a dev mode aha there is a. dev mode for the task. so if i go back to the documentation and. i return to. cli over if you let me verify i do. remember seeing.
Uh yeah npm run start dev so it watches. for changes that is what i must have. finished npm. run start dev. nonetheless with the token im surprisingly sure and. if i visit localhost 3000 again. now not localhag day 3000 is still up and. jogging. you can not see the token thats remarkable. correct permit me make amends for the on the chat. let me see what i what i missed. um oh chats going well amazing i love. 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 what is sjs we did. discuss that. uh alicia raised the pr. um thank you for explaining subsequent uh its. ness js sorry not. next js so nest js is an api framework. next js is a framework for the front conclusion. for react. it does have some type of backing. functions yet its very light touch. i did have a look into that yet yeah if.
you desire a suitable. api i would pick an sjs. and you can get up and going for walks as you. saw actually in minutes. yet no issue okay cool. lets have a look. um. uh sankara i already responded your. query i believe a few folks did. as well. i was a typo that is first-class ok cool um. well thanks for clarifying okay so we have. acquired this up and jogging lets have a look at if we. can get hey world operating in. in fact in discord so lets examine so subsequent. aspect we have to do. is weve this i believe this looks. well i dont it is walking there isnt any. blunders within the console. so the next element we do is utilization so we. must create a bot gateway file. ok i mean we can do this and replica and. paste that during sounds well. okay um i do know carl has carried out it in. exact module thats. a pleasant way of doing it i desire to keep it. useless lifeless easy for today.
i am simply trying to do a spike to work out if. going forward might i write a discord. bot with nestjs. um typescript okay lets take a look. paste it in. we can do a bit formatting. there we go ok um. keep that and it should load it lets. take a look. and notice. okay so its going to oh good i will. upload it there is one more thing i will do uh. the project does not be aware of whatever approximately. it yet. i need to upload it to. um to the module quite sure ive ignored. that step. lets have a look possibly as a. supplier yeah i am attempting to seek for the. documentation on it. but theyve form of overlooked that step. ive all have i missed it. allow me see usage um yeah so that is the. gateway. it is smart and you should use the. client decorator okay thats particularly. interesting too there is two the right way to do. it you can do it for service. or you are able to do it with a decorator okay.
that is well to know. um i mean the two seem nice and an identical to. me. and then that is for receiving messages. so right away they are directly to the next. sort of discord bot listener so correctly. 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 but im. going to share it an additional time um. increase a controversy that and do double examine. that im. and this is true but it seems like. once they give an exle. they do not upload it to the module file so. back. you know we can i could have figured. that out yet carls definitely helping. me that is making it plenty easier i. love pair programming. um yet you recognize somebody is doing this through. themselves they may get stuck on that. for like two three hours. whereas you recognize a couple of lines of. rationalization or code or exles could.
just assist them make it plenty less complicated this. is why. its so significant for everyones. projects to get folks to look at. it due to the fact. they wont know the sure matters. that you be aware of once you make assumptions. so lets take a look so. it truly is bot gateway and well. upload it to providers we have app. carrier which is nothing. thats turned into automobile generated by means of gateway. and if i hit enter. lets bring this up a bit it. should get instantly added on the. right. yeah we have at the tip so lets hit. shop and. the console i should be capable to um. show you now because the token is hidden. that is good. if it would not get hidden ill be very. upset. yet no it i feel its hidden ok and. we have an blunders so lets have a look. lets debug it all together. so lets have a look so areas cant. examine property send of undefined.
On on all set in bot gateway line 23. so lets have a look well okay 23 is. javascript so. we havent got the uh the mapping so. we are going to simply uh do not forget that we are. looking for on ready. so on prepared became asserting um. ship ok so we cant this doesnt paintings. ok have we accomplished something incorrect or. have we discovered yet another limitation. um in the assignment lets have a have a. look. well maybe i did something incorrect allow me. determine. so when I use this and iits got. a typical in it does it got imported in. sjs weve got all the imports. rather sure i did exactly what they mentioned. ish. i think it received the error um i feel um. in the app module where you initialized. um the. discord module and you did not provide a. webhook. url and thats why he cant discover get he. cant do get webhook. client and thats why ship is undefined. oh i see. ok so if okay good factor.
Well well observed yet i think you can. just delete this line i believe you dont. need this. thats in case youre using uh information superhighway. hooks correct. okay so it can be finished a further way i. wager right it is finished. can anyone simply get client yeah it could. be accomplished we get customers. okay oh yet there is no send on there. okay. well we will see we are able to see if we can get. a log right because its going to provide. us the user tag. and all remainder so lets simply undo this. for the instant. and go back to what we had comment this. out put it aside if i bring up this. it should reload ideal no mistakes this. time. and it does say logged in as eddie bot. so. it really works its linked to discord so. perhaps the subsequent aspect we will do. is get it to pay attention for a metamorphosis on a. command. so lets and we are gonna ought to come. back to that because we do want to ship.
Messages to discord nonetheless. so lets have a look um okay. create a handler for receiving messages. by way of the field i love it how its simply. damaged down into. one-of-a-kind documents you do not get those massive. files necessarily complications its all variety. of. looked after 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 everyone and theyve. referred to as it bot gateway lower back ok so. they have placed it in the same file ok so. we are able to put it in the same one. because its yet another trigger its. going to be um. an on command okay lets seize that. positioned this right here what have we acquired so on. command hasnt been imported. we should better simply pass import i think. its appended it up there. nice message does not exist lets examine if. it may determine it out. and do an automobile import besides excellent it.
Has finished. all of it appears relatively fairly joyful so what. we predict. is when it starts offevolved. uh what is message come from and it gets. a message so allow me simply read some . i did not read this but i am guessing. begin so that is the command its looking. for im guessing. i believe we should do it on let me see. what would be what would be a good that. i believe i noticed on a very good instance. that could be higher i dont want to do. on every message i am watching you i did. that i believe once I was having a play. with anything as soon as and everyone had. somebody wrote a message the bot changed into simply. spamming every person so you will not do this. lets uh. lets see let me catch up with the chat. while you are having a having a study . band sal can you tell your other uh. channels that provide open source content. and guidance. um to not everybody touches on it i believe.
but no person genuinely focuses on open source. like myself. so um yet i am going to take a look ask and. discord and we will we are able to. send you some a link within the in the. description lower than to the discord channel. and we are able to chat to you and discover a few. other people yet we are already finding. a few bugs during this at present so. with any luck somebody has raised the issue. that uh what became the issue oh definite adding. it to. um the module oh but they do add it oh i. ignored it if we glance. um providers purchased gateway oh that is. because. sure they did upload it previously ok so. they added it earlier than. and that i went straight on to utilization and so. its a bit bizarre including it before yet. the file would not exist. id have performed it somewhat. in a different way i would accomplished it like a. proper pass. but you know it is it is there i simply. assume. i wouldnt upload a dossier bot gateway to the.
Module till i create it i always sort. of create the file first i do not know. what people think um themselves. correct within the chat what do you suspect. lets have a look hassle raised. um okay cool. yeah deleting yeah do you i believe you. can the difficulty um. i even i can placed a comment allow me let me. study the failings and i can say. oh i found it so you can not delete it you. can near it i think its. i have add comma at the top with the aid of jason. marvelous after which i feel did you close up. it already. um yet ill placed a comment and say oh. i found it that it changed into added up and so. forth. um if that is if that should be the. case im glad to. to returned you up on that due to the fact i. encouraged you to raise it and it changed into a. bit confusing the flow um. wasnt wasnt great um so ok. and ii wasnt examining it whilst i used to be. dashing by way of okay.
permit me understand inform me the problem range if. you have uh have. examine it replica and paste uh is fine as a. developer i am going to create a task by. in simple terms copy and paste to create something. itll be exciting and iimprove my research. abilities your replica and paste is nice to. start with. um yet i feel its a must to. realise what youre copying pacing i. think once I replica and paste. i simply go out it really works and just form of. do it after I when I variety it out i. in fact. assume extra about it so its a bit not. top notch yet im simply attentive to time. simply i desire to keen to get something. operating and to only get. my target here isnt to actually realize. everything is to get anything working. to work out if. if theres something we should use going. ahead so its just like a spike so. ill reduce numerous corners. as well i also have a question for.
every person and perhaps for carl besides. who i know has achieved nest um js stuff for. um much more than me is what about why. is thiis specific to discord bots so. correctly it is perhaps not a lot of a. nest question. yet what about trying out a discord bot. because it it. does web sockets so i would have tried in. the beyond to mock out the websocket. and ship the data that i desire to the bot. so that. um i can check the response however the. hassle with that is after I um. ship the information again the uh testing. library variety of kills the connection. after which the bot just maintains trying to. reconnect forever to the websocket. and so it just receives into this loopy sort. of loop. i wonder if anyones tested any. websockets before because thats necessarily. uh. because its like a fascinating. dilemma okay where turned into i. um right what become i doing i was doing we.
Had a start that is what we had. execute command start okay i believe. that is it. i believe it will run and carl might. be aware of more than me. if youre still round is that um i do. the start command iits going to reply. with this lets simply supply it a cross so if. i hit store. should reload logged in as eddie bot. ideal. lets raise discord lets take a look. um and permit me visit lets go to the bot. chat. and what changed into our uh with a percent i. imagine. if i just do test not anything should arise. oh youre might be behind my head eddie. it is behind your head. sorry everybody my undesirable permit me make it uh. carry it up it is friday. bear with me it is friday correctly i make. errors like this every day. so experiment as you can see experiment is there and. um. no respond no remark not anything in the. console nothings modified so the bot. hasnt completed whatever which is well.
So if i do percent and that was our. set off for our command. test im hoping it does nothing back. not anything there. not anything within the console ok not anything is. well and now if i do. percentage experiment begin sorry percent. start. im hoping whatever happens both in. the console log or within the chat. lets have a look at it worked i imply that is how. fast its to get. an sjs up with an api and a discord bot. i suggest thats extraordinarily distinctly fast right. so now weve. execute command percent begin so. for that reason we are able to do. so many other other things hypot. the reason is, correctly i need um to get. our api up so that it will get the map. put up in the back of me and as people work together. using. um doing contributions to open source i. desire their profile to appear on the map. from github so ive got so many cool. thoughts with that so i possibly ought to. awareness extra on.
The api than doing these other things. but the bot. with the bot going down um i want alexa. js up so much due to the fact i im in order that . uninterested in all people just announcing hey guys. its like now not everyones a guy right here so. um certain so i am keen to at least get uh. alex js up on the bot and then we are able to i. can get back to the the api however im. now not doing greatly at the api it is. generally carl. uh ok oh sorry carl were going to say. anything. no no um okay every little thing nice ok cool. no issue um okay so that works so i am. proud of that. and so what one thing we wish to do. differently is. we dont desire a command for alexa js. that is one thing we dont want we do. actually want a version wide variety. i do like having the the understanding what. versions are walking so people can imagine. well wheres my feature i. submitted a pull request to that um so.
Its uh it is sweet to have a version so. what we could. probably do i wont get distracted with. that now yet it is going to be good to have a. version command. um but perhaps i am going to just difference that to. version and we wont convey out the. version. yet um we will just remind us to put. that in so now. and that should be high-quality it must have. reloaded ideal. lets convey alexa alex js now not alexa. alex js so we want that to set off on. each message. so lets have a look what we will achieve this. if we go to the doctors i did see anything. subscribe to the event. and we wish to join every. message and were not going to reply but. we will take a look so. lets take a look if we i need to install. an analogous dossier for now and we could. always. uh separate this out later if you want . um we want the on. annotation and im unlikely to respond.
but when it isnt the bot lets do a. console log um. simply so as to see within the log console. and there is an awesome oops no longer intended. to do this. there is aan awesome logging inside sjs. but im not gonna do this as we speak i am. simply gonna say um. lets log the message so yeah simply log. the message. message dot well i didnt see what it. changed into. it become as an instance what it is. message dot um. am i able to get the content material of it no longer writer. content here we go. there we cross so should i see it optimistically. in the console log. that ought to reload lets return to the. bot. long term no see eddie but. uh yeah nest js spot. ok um correct im sorry there you pass. see in the console. right not behind my head is it okay so. that is coming by way of so we know for. each message. so someone else can write a message in. the within the bot. chat channel and i want to see that it.
additionally comes up within the console and its. not just from me. so i want to show proof to everybody. and myself that its not simply me so. karuna ni

Leave a Reply

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