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



Code Your own Discord Bot - Aliases (2021)
Whats going men welcome back to. an extra discord.js educational in trendy. educational were going to 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 false or. assumed identity. what this suggests is for instance for exle. i create a command. thats play which joins a voice. channel and starts gambling a command. but as an instance i desire to execute this. exact same code. of this command using one more keyword so. instead of play. i want to execute this with pl and simply. via doing. this right here it will still execute. an identical. code as play and thats very simple. it is going to be an exceptionally quick video but. before i get started i do prefer to provide. my discord server a brief shout out it. has been like four days on the grounds that we. formally launched. we have over a thousand contributors already.
Come right here when you are. into coding disc or mods this is a. coding community for discord bots. and likewise we do have a touch chat area a. little lounge location in case you guys want to. communicate. to the neighborhood so theres going to be. a link in description to this discord. server. come forward become a member of so lets pass ahead and. start with the particular. code so like i stated very quick video. all youre going to need is to go to. your message occasion when you are new here. be sure to watch. the entire event handler video because. we restructured our complete overall assignment. so lets get started right here. in our message occasion we have a const. command and this is equal to purchaser that. instructions that gets cmd. were going to edit this and do an or so. or. its going to be client that commands. dot discover well create a. variable i am just going to call the.
Variable a. with an arrow function a dot aliases. aliases and then and. i am in fact going to repeat aliases and a. dot aliases. that includes and were going to move. in that cmd a different time cmd. is thiis constant up here which is simply. rx that shift that to a lower case. and really were nearly carried out. with the message movements. now from right here visit all your comments. and were going to create the aliases up. right here. so aliases colon it is going to be a listing. and you can begin. typing your aliases so for the mc server. we are gonna have 3 aliases. one is gonna be mc the subsequent one goes. to be mce. assess and the ultimate one were just gonna. write out minecraft. and confirm you put out the comma at. the top reserve it. store every little thing and every thing must be. going for walks fine lets cross ahead and do note. area dot. there we cross its on line lets pass into.
Our discord server try running. the 1st legit call of the command. which was mc server so mc server. you will see that it is going to say please. enter a minecraft ip and then we can. additionally run. mc its going to say please input my. variety uh whats the different one thats the. mc. examine and then we even have minecraft. so all of these commands listed below are. technically running. exactly the same code that is this. however. you know it is just its the aliases it is. just like the called. um commands right here so it technically. all works i can actually do anything. like. mcmc.highpixel.web. two 5 five six five and there we go. the body is gonna work. now what in case you wanna use these aliases. as something like an aspect command. so in place of walking the exact same. code perhaps i want to have. mc here run an additional code than.
This yet still have it in an identical dossier. here. how you do it really is come all the way. here we will add anything down. here in the execute method. and we are going to name it cmd we are. sincerely passing cmd here. which is this variable you may add in. any place here i am simply going to feature it. right here in the boys in the center next. message then come here into your. command add it to boot what you must. do is replica . each of the code and you only want to cross. ahead. and verify for the cmd. so all you do is do if cmd triple equals. . and the first one is often going to be. the actual main command so. mc server and then move forward and paste in. your code then come all the way down. here after which do the next if so. if cmd triple equals to mc that is the. first alias we are simply going to console. that log.
And well console the log. asserting this isnt. an mc server after which lets do one ultimate. one. thats if cmd triple equals to. uh minecraft and iits going to say. message.channel that is send again you. guys can kind you men prefer. here. its aactually no longer console.log let me. message that channel. that is ship so that they can see it on the. server. and for the minecraft you could say we. love. minecraft so using those 3 aliases. were actually walking three different. instructions. in one command file now technically you. would. do multiple commands and its gonna be. no one of a kind than the actual command. handler that we had before yet with this. new command handler we are actually. organizing every little thing. so that you do wanna have your command you. know documents and everything prepared. its simply that in an effort to have a you.
recognize one other alias with yet another. operate. im just displaying you so lets pass forward. and run this. and now if we do mc. server its the first command so. please input your minecraft ip. then if we do mc it is going to say this. isnt a minecraft server. this isnt a micro server and if we do. minecraft it is going to say yay. minecraft we love minecraft. and that is how you actually can run. assorted commands in a single command folder. using aliases. ordinarilly you only want to use. aliases as aliases. but frequently when youre doing. something just like the play and leave. command you might want to have them in. the same. dossier so you should use exactly the same. matters so im able to use. just like the voice channel and hold. every thing organized so. thats virtually it guys i hope you. men loved if you probably did be sure to.


Awful KPOP DISCORD SERVERS
Welcome players earlier than we begin this. video I will not stress this sufficient this. is a case research this video is in no way. meant to advertise any harassment to. anyone i understand how controversial this can. be I tweeted out Korean pop got approximately. thirty persons fighting in my goodddamn. require just like the video I made one. yr in the past called awful hairy discord. servers Im trying to infiltrate this. neighborhood and spot 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 top of the iceberg yet I. wanted going to be and find out what. its aactually like to be part of this. community. so please whether youre a kpop stand. or no longer dont go in harass anybody shown. during this video. oh guy Jesus Christ we will begin with. our own discord account.
My call is mr. kpop scenario 1 I am not. from the kpop community yet Im from. yet another stand community how nice well. these persons deal with me okay Im kind of. scared Harry patterns girlfriend. you seem so dreamy in this picture i am. gonna juice this one. oh yeah batard all God but awesome Im a. Harry fashion supporter now time to determine. how these groups will deal with me. knowing Im from a further neighborhood. 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 would. deal with me you men ever heard of kpop. Lord overheard or know what is kpop. kpop Korean pop its a genre I desire to. be a part of that community ok hear. right here Harry Styles as someone who got here. from the k12 neighborhood I extremely suggest. you dont go too deep into the community. because its a nutrition i think that is a.
genuinely imply assumption i feel you just. hate kpop okay pay attention right here bucko. do yourself another fight that you you. cannot yourself out Im ok. its aa lot of fourteenyear-old females or. your friend you know i dont think i used to be. girlfriends Audi likeness. Oh whats this oh this is all in Korean. I do not know Korean IG is trash period. yg interval period I do not know what that. capability. lady friend that is the worst welcome. ooh that is on a bot hello Im trying to. convert I have certainly not heard a kpop yet Im. looking for friends oh why are they. making enjoyable of me why do you think it exciting. of me Dan two times first. why might I stand two times if I comprehend. the first time is there a rule wherein I. ought to stand someone two times and a. 610 mamamoo dan gee that is a automobile. company ive on no account heard their music I. dont know who theyre but what is that this.
all of it I do not know what the any of. this implies ive not ever heard of them. earlier than. does anybody want a role play as BTS. participants yeah does that a No hear. freeze accepted teethers why cannot you. guys who are these people. idols hi there what she deleted it maybe. its time for me to depart you are not. gonna remain right here though in an effort to. study kpop i feel out of contact cuz. i do not hearken to kpop a lot everyone. begins someplace might be useful you genuine definite. a large welcome begin from listening to. London oil thats a resource pal begin. with one team but what you can start. with BTS if you want Im deaf though I. cannot listen to song what why are they. making exciting of me are you making exciting of. me okay Harry patterns is simply. knocking in the course of the drink how approximately we. begin with that BTS contributors jimin jhope. suga jungkook jin RM okay jungkook is.
The selected i have no idea who any of. those are but i thinkin ago with. jungkook who i discovered a kpop server that. hosts karaoke howdy turned into garyoke with a. karaoke field alright very well lets play a. song i am prepared please play me Jung Kooks. number 1 hit whats that I just want. to sing a jungkook song simply get me a. good tune alright okay i am ready ask for. money get advice. I spread my money two times theres a exciting. track hello this a classroom and that i say a. little track well purchase junk code like this. okay sorry guys up to ill help you i do know . my way changed into gonna be later a few week. ago well time these are pitbull eaters. they eat mr. international any bald people. no it truly is the worst matters happened to. me this night now i understand how kpop stands. react to different music perhaps a few song. even better than kpop now i understand how. they react it 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 prepared to tackle. the large boss which is Twitter group. chats so I got a chum to infiltrate me. into quite a few Twitter group tracks consequently. will experiment out the community Im putting. the president that kpop stands hate bald. people were gonna find out how authentic. it really is. oh dont ask concerning 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 reported looking pictures you are the. one singing me fancams i am simply. responding okay i feel it is a. person homie yeah this person has been. assisting me infiltrate I am not gonna. reveal her name definitely we cant. expose her mystery identity. should I ask my buddy how do I. introduce myself and they suggested hi i am.
Call and im from after which your final. bias is your final bias is jungkook. hello i am Sophie and im from united states of america and. my final bias is jungkook and im. gonna try this white emoji that in basic terms. youngster white ladies use this one sure. and a star emoji very thats excellent. what is up Sophie are you going to the. video shop on are they Tori now why did. I know this food its aall over Twitter I. do not stand in even id okay so ive. been off social media a gaggle because of. tests and private difficulties. I saw BTS in Hamilton in 2018 yet i want. to purchase my mother this birthday current I. cannot genuinely have the funds for both oh heres a. controversy reaches over moms and dads Eddie. day of the week mothers and fathers. jungkook gave delivery to me okay why did. you add yet another army to some of the. muffins in here most folk here Stan. BTS ok so it is a group to begin.
Controversy in now alright guys. caution okay i do not hearken to kpop I. have no idea what kpop feels like yet. lets see the reactions to a. controversial opinion okay it truly is the. bomb GBH jungkook has been having. disappointing vocals recently I much. desire the other kpop individuals oh wow I. such as you already. what are they speaking to me what the do. we adore beets sure or no longer what is going. on right here you provide off solo stand other halves. woo. so its aactually far better than BTS. although not anything wrong with solo. stands off did you simply call me a . this is sort of a bar combat dude it is. like a goodddamn bar battle no I called. them why are you getting all up. in my face limo just I was okay whatever. you say then nevermind this military cant. examine lm foul excuse me defending you. trip you annoy turned into literally. defending you maybe in case you knew the way to.
Read perhaps in case you stand exact expertise. sis not my fault your mind win mistakes. for or for Sophie apologize i am sorry. that yall dont have a mind shes simply. stand genuine expertise are you 12. certain but he is not Im just gonna provide. placing pictures someone already left Oh. three spots a fancam I must find a. pitbull fancam that is for sure okay I. mentioned a good number of groups in these peoples. case style thiis sweetie lime foul. justjust-just. okay i have to keep hitting them with. the mr. worldwide images I got to get. extra images do my arsenal of pimple. has to develop greater oh oh okay so that you. shouldnt have a touch battle of. Arsenals I see check this out theyre. no longer gonna count on thiis not one pitbull. pitbulls. oh oh 3 pit bulls Oh for pit bulls. Oh five pit bulls oh seven pit bulls can. you stop sitting middleaged men Im.
No longer fascinated persons isnt involved. in you pal thats so unhappy i have been . kicked out of the only organization so if you. make an apology ok Im sorry it is just a. board seriously must have done that. i am going to delete my tweets in the present day and this. is when I hit him with the real she runs. to machine turns on logs onto Twitter. deletes undesirable tour hits. clenches fist that is not how a. metallic face turns crimson ok so begin. sweating pull please dont you choose me. in any case hes executed ten movies because. it is done zero movies actually whats. wrong with her okay all right stop sending. your pictures you know what i am sending. four pictures of mr. Vin Diesel we are. having battles of pictures of kpop video. victors that is the smartest thing ever all. correct no ok here is Eddie exceptional. artist good I greater ship mine pal this. is how the genuine world works very well oh.
This person certainly went into my DMS to. send me images of this one artist all. right that is how they want to play lets. play dude I will go all Vin Diesel. all night time I dont provide it look into this. guy the bald head you may simply slap it. man you may simply slap it theres an. underground art is that no one whove. I have requested listens to you so far can i. please percentage with you guys. Sophie please share certain okay my sister. used to imagine Vin Diesel the rocking. persons paintings good thats a researching of. tonight its actual theyre the same. person see what the hell what is the. change the other cult began. bashing on me beating my ass and i ship. those people images of pitbull and. they do not intellect thanks men and not. getting mad at my bald guys pigs that is. splendid nice you recognize thiis this changed into a nice. organization wait did i get one kicked no no I.


5 Discord Audio Settings all people should Understand !!
oftentimes after developing voice meter. or equalizer apo. some of you have mentioned that you have. issues with. discord and a lot of the times this is. actually related to. settings inside discord the audio. settings in discord. mostly it defaults to having some . things. on that truly shouldnt be on or. oftentimes you guys. go in there and also you neglect which you had. became things 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 take a look if you end up on discord. in case you go to the lowest. left where your name is you could visit. person settings and. less than app settings you will find voice and. video in voice and video youll have. your input and output device. in general as a whole i suggest. choosing the default gadget as your.
Input. and output gadget in this section as you. can see right here ive correctly manually. selected my. microphone the enter gadget that i need. on. discord first thing we will take. a investigate is the enter sensitivity if. you turn this. enter sensitivity on its going to. instantly check. input sensitivity this is truly um in. a sense. a noise gate filter out so if you switch this. off what you notice this is weve a. slider. on the left aspect of the slider we have a. yellow side and on the right part we. have green. the yellow part of this meter is. in fact. muted audio so if i were to show this. down it might set my noise gate down at. negative seventy five decibels i desire to move forward. and simply hold this at destructive sixty two. to be. sincere with you i have already got a noise. gate clear out inbuilt equalizer apo so i. might perhaps 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 are able to do. is just track the. audio of your microphone without you. talking into it and just block out. every little thing thats taking drugs. at the meter right here generally it will. maybe sit correct less than damaging 60.. remember when you have to go too high. your voice will be cutting. out and in of the audio scrolling down. to the advanced area. weve a noise suppression made by this. firm called. crisp it suppresses historical past noise. from your mic this. is in beta that is akin to the rtx. voice. ai that came out recently as you men. recognize. i suggest just creating aa legitimate. noise gate filter out and downward expander. in your mic. there is not any purpose to apply the noise.
Suppression inside discord. if you simply mounted a proper noise gate. filter out. in your microphone there are. options to this besides youve. realtime noise suppression that may be. set up. as a filter out and setup in equalizer apo. youve the reaffir. plugin that i did a video on lately i. will hyperlink it. in the description less than as a whole this. must always be. off down under voice processing weve. echo cancellation. and noise discount it really is where things. get. somewhat iffy echo cancellation and noise. reduction generally. creates like a warping outcome at the. vocals. frequently it may cause your your vocals. to get roboticky. and staticky if you are utilizing voicemeeter. and that extra further processing. on top of the already processing thats. being applied by means of. voice meter may cause a few concerns there. these two ought to obviously be.
Off continuously i do not discover them. essential to activate. i do not certainly see a time where it is. essential. for these items as i said before just. constructing correct filters for. your mic is a stronger manner of going. approximately this yet a lot of people have. concerns. with regard with you recognize like cellphone. settings such things as that youll flip. on. um certain audio settings if you end up. utilizing your phone with discord and that i. might see in a few occasions in which. this may help computerized reap. control is truly up to you its. going to try and gauge. wherein your audio or where the quantity of. your microphone goes to hit so it. will either. enhance the amount foil or decrease the. quantity for you immediately quality. carrier you need to enable this setting. right here in an effort to have a stronger. priority in your discord.
services over the net a few some . cyber web providers may need some . concerns with this or cyber web people searching for products. might have concerns with this. that again this putting goes to be. as much as you usually having it off is. probably how to pass. but if you are known a widespread person. of discord i may see. a case where you might want a stronger. precedence. for discord audio in case you do a lot of. calls or. you recognize you have you do enterprise that. way um i may see wherein this can be. favourable attenuation is really going. to be like a vocal ducking or a facet. chaining aside from it is anything that. youre going to hear your self. it will lower the amount of other. applications. through the proportion that you set while. someone is speaking. so that you could have it attenuate other. volume degrees from other sources like. your song or browser audio or game.
Audio. when other folks communicate or when you. converse by using the settings here. usually id expect all people to. have the attenuation. set to zero because that is variety of a. unusual factor to establish for your self yet. in case you were drawn to what this. putting does that is what it does. its going to in fact lower the amount of. different sources while some other person is. talking or if youre talking. counting on the setting that you have. the audio subsystem frequently your. gadgets will actually. are compatible concerns with discord a. lot of you men run into this. predicament wherein there is a compatibility. conflict concerning this gadget. and discord itself you may just in no way. seem to get it to paintings. effectively within discord what you may attempt. doing is switching the audio subsystem. over from trendy to legacy. or vice versa and that would clear up.
The clash. with the compatibility there the last. area here is voice diagnostics. do not really want to dive into this. certainly youve three settings right here one. for showing. a caution whilst audio isnt being. detected from your microphone. you have use the latest technology to. seize your display and use an. experimental solution to capture audio. from. purposes overall those are all of the. settings that you will run into. with discord when you are having a controversy. with discord after setting up. voicemeeter. equalizer apo this is an efficient video to. visit or if your pals are strolling. into any concerns or do not know what to. mounted. within the discord voice settings this. video is a good. video to reference i also desire to send. you guys over to the equalizer apo video. that i recently did take a look at the. new preset dossier that ive.
Available inside my discord server and. also just check out how to establish. all those audio settings to get your. microphone sounding. good that is going to finish this. educational men i know it became a brief one. dont fret im gonna be making it up to. you guys i am engaged on. redoing the voice beater tutorial so i. desired to knock out a few speedy videos in. the interim. so i had time or a bit of wiggle. room as some distance. as working on these videos because. they are gonna be. massive ones and take plenty of time in case you. guys have any questions. after looking this video you recognize in which. to go my discord server hyperlink is in the. description. lower than if you like this video do me a. good hit that like button and subscribe. for extra 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 every person weve one minute to. cross i thought lets just begin im prepared. to move. and im splendid excited about at present um. from sincere assessment i have had fairly a protracted. day it has been tremendous arent getting me incorrect. so im a little bit kind of you know. worn-out so. i know youre all gonna help me uh work. in this assignment together and im fairly. keen due to the fact. eddie bot has been taken offline it had. some trouble i had a quick look and that i. couldnt understand what was incorrect with. it. so i presumed good eddie bot become just a. prototype i wished to switch 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 yet you get the large advantages of. an sjs with all different. hooks and guards and just a lot of. awesome stuff. so i assumed it might be relatively fascinating.
to have a look at that so youre gonna. see me. uh start it from scratch in these days and maybe. battle. yet dont be concerned uh carl who is on radio. eddy with me. or aka julian um he has done it already. and uh let me uh allow me elevate uh. carls github web page. so you can find kyles girl web page lots of. eco-friendly squares. lately in the last type of couple of. weeks that is high-quality that is magnificent. it is appropriate and then if we scroll. down right here allow me make it slightly. larger for you all. if we scroll down right here you will see nest. js. discord alex js so kyle has already long gone. ahead and carried out it but i want to profit. how to do it so i thought. um i am going to i am going to start from scratch and you. recognize we are able to all do it together and dont. neglect we do have. the stargate repo which is already. deployed to kubernetes. and has already acquired all of the tokens for.
Discord so we could possibly get this. deployed at present well see. how we get on but yeah poor eddie bot is. lower than the weather. and isnt working at present so how. is every person within the chat seem. uh say hi within the chat its um marvelous to. see what you have all been up to at present i. desire youve an outstanding week its the. weekend which means quite a few open resource. and weve uh prathamesh has already. first at the mercy crimson became second carl. was 3 . good i used to be second but you recognize i dont. count um. sassy adithya magnificent to have you ever all. right here lily. jason long term no see jason karuna how. you doing karine im hoping youre well. mikey very long time i am hoping paintings is. going well you are not operating too tough. felix magnificent to have you ever all here do. say hi. to each other and alright that is. collaboration not only with me yet. between one another grow your network and.
we will all learn from each other. so thats marvelous uh okay. and and uh definite we need um. eddie bot or alex alex js and ii think in. the chat so people do not say whats up men so. much. um so certain awesome to have you right here lets. start so. um actually you recognize what before we. wager coding i would like to begin thiis right. from scratch. youll discover i have my terminal here. i have like completed nothing we will do. every little thing from scratch. uh allow me um say hi to carl who is on. radio eddie and carl may give themselves. a shout out maybe talk about the various. matters they have been constructing. on the api for our neighborhood goes to. underpin. our live stream style of you know stay. map in which all your locations are which. we had a prototype before. and also the discord bot so carl the way you. doing hows your week been. im comfortable to have weekend now uh im.
excellent. awesome in fact let me carry um discord. over right here so everyone could also see that. to boot on the stay move. cool definite the weekend is right here that is well. so i am hoping you are gonna have a break and. you have accomplished plenty of coding on our api. um this weekend yet im hoping youre gonna. so this week i am hoping you could have a ruin. besides. oh i its aactually relatively uh relaxing i. savor. coding um for this task magnificent. thank you okay that sounds cool so i. desire to start so my. my first inspiration and i am possibly going. to make some blunders yet. um you know im im self-assured among. every person we will figure it out. ill cross into my repos listing. where i create all my repos. and really allow me also drop. um carls github in the chat. or pass deliver carl um a comply with. carl has no followers on github i am going to. be the first and hopefully youll get.
some extra as well. okay so it is how were going to do it. i believe the very first thing that i should. perhaps do first. is create an sjs assignment so lets examine. how this is going. an sjs documentation good region to start. um i have needed to play with a number of. little bits in sjs. and as our apa evolves i have been . researching lots approximately variety of guards and. middleware and all the rest. i love it how i had to play with. websockets how you may get his live chat. working surely soon. and theyve really thought of this. framework it is all constructed on express so. it is a bit possibly building on one. what all of you know already so do have. a look into this im very very inspired. with it. so first steps its might be a great. location to start install it globally. i feel i perhaps bought it create new. task. 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 yet we can fear about. that. later so permit me create a brand new project. what ought to we name it. uh i am going to just name it discord bot um. okay its new lets pass wait some . seconds. npm or yarn lets elect npm i like. vanilla maintain every little thing vanilla as. attainable. um lets have a look uh. koalaa happy hubbers certain exactly joyful. hub turned into all. and uh adithya um why sad. i hope i reported your name right have. you now not unhappy due to the fact i reported your. call wrong. lets uh lets see all people looking. do not forget deliver this video a thumbs up. surely facilitates uh assist the chat. lets placed the chat weve support. channel thats not an excellent begin. okay we do the failing sounds should be. a failing sound yet people on radio edit. you can not pay attention it.
Uh lets have a look um. ok uh okay so it is created i believe. we are good so now weve created lets i. always do i always head into the assignment. so we move into discord bots. and then i necessarily open um the vs code. correct you recognize all of us like vs codes. so lets deliver this over right here so you may. all see it. and ill make it manner larger there we pass. you all understand bs code im sure okay. so what. next lets have a look she created it. okay so now i would like to really probably. leap. immediately to the um. uh the what do you name it the package. that we are gonna use for an sjs. to create discord so it says. installing we need to. install these two matters and we have used. discord js earlier than. so the only extra variety of new one. to us is the. nest js version so lets have a look so. lets simply set up that. npm install lets pass so to date it has been.
All a copy and paste. lets take a look um. oh what we obtained within the in the chat um. fans by the way amazing thank. you a lot thats amazing lets get. lets examine if we will get carl to 10. fans today. thank you oh i see that is why karuna. thank you a lot correct i i am not the. the sharpest toy in within the in the field as. the expression says but queen is asserting. sure uh adithya possibly sad due to the fact no. fans. i agree i used to be unhappy too lets see if we. can get double figures. magnificent okay so now we have installed that. lets have a look at what next. im already stuck no i am jokking um okay. so next is saying weve i will have a. token i can seize a token that i have. earlier than. i will grab some of these ids ok. awesome lets just get. whats up international operating and spot if we can. see that appear in in discord. so exle of making a dynamic module.
With config i suppose it has distinctive. approaches to try this uh carl did you know what. the variation is between those. different ways so you have got. 4 routes after which you have got four. path async so async i am guessing its. gonna try to retain loading up the. assignment while this occurs within the . historical past. so is that more effective do you know um. to be honest i didnt determine what is. distinctive. myself um i think if you use um for. direction async. you could flow um distinctive searching for what you offer for. exle when youve got. um the token into um in the dot. n dot enb file um you may pass. you could inject the config provider while. growing um. the module um. that is the use case i see ok um in my. repo i. did it um with environment. variables okay um i didnt do it um. the manner that i tough coded a token into. the use factory technique. um should we take a look yet i think.
Its its it is only a alternative. lets take a look and we can actually. exhibit people um which. dossier will be a module. ok yeah so that you permit me have a look yeah. you will have to have the youtube open. um so that it will see it it is in. in my repo its in a bot folder after which. um thiis called config service. discord config oh no longer the spec discord. config service. acquired you i see ok and there i. injected um the config searching for what you offer the. config carrier um which reads the. env file i see. okay acquired you ok that looks really rather. wise. okay im gonna attempt to preserve it exceptional. top notch easy. um but i cant put it in that file but i. dont ever desire to see at the stay. flow all my tokens. so i have to have a thing i should have. inspiration this before. what does uh um every person else thinks. um aditya why are so many fans. nonetheless showing 10 even after so many.
Follows. um it takes time for these numbers to. replace i think theyre all going for walks on. exclusive microservices on github so. no matter if you get loads of fans it. would possibly not take monthly 24 hours to. actually replace to what the practical. numbers are ok so im attempting to imagine. i could try this and ii could you continue to. use the config i am unable to inject you are. correct i see what you imply i can not inject. the config service to get them out as. environment variables right. ok um what you may most likely do. um i am not really sure if it really works is um. reference. method.n immediately i am not utilizing the. yeah um the config provider this may work. yet. uh no longer no hundred percentage guarantee yeah. no it is good lets try it lets. experiment. um so well all be taught whatever new if. it works or if it doesnt. so the um we might do this for now.
Um yet it is not anything that i would. form of devote and did and deploy but. whatever for domestically simply. for uh facts of concept i believe works so. if i visit. the discord its a discord module yet to. the the module. i am not gonna um do whatever. i think carls assignment is far better. check out that for uh reference. but im just doing this as an instance so. lets take a look. whats their bot gateway in addition. am i able to click that export bot gateway. um lets have a look. shes executed a bit of study previously. right here we pass here is the gateway correct okay. so. on ready event all set log it ok that. is smart obtained you. ok lets take a look in order a common. developer. im going to do quite a few reproduction and paste. so weve got module weve got 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. okay after which i will grab. this import i feel its. there there we go so. due to the fact we want to preserve the import array. and we paste that in. that looks you recognize not too undesirable oh no longer. dot. comma everybody following along lets. have a look and spot. so um thats not completely happy okay thats just. the. uh the missing trailing comma. ok awesome the others have it as well. so correctly thats an improvement people. could make to the documentation. in case you appear this ones the the last one. it has a trailing one. um this ones the last one has a. trailing comma but this one does not so. once you copy and paste this you get an. errors. so permit me um percentage this assignment of. every person. in um. in the chat and someone can enhance an. hassle and really increase a pull request. and so you dont once you copy and paste.
this instance you dont get an errors. right lets have a have 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 those oh these ones down the. aspect. ah ok well query so. i have to regulate discord as well. be sure no ones raising their arms. to to come up. if you do allow me know in the chat so um. the tabs ok received file that is the same. as everybody elses i feel search the. identical. what is modified to the source code um i. shouldve done a devote earlier than i began. making adjustments to this i always do like. an preliminary. type of devote id do that now and. then. this one is the debugger then it is the. distant. this one distant explorer i used to be simply code. areas it is for code areas . that is the plugins so i have all my. plugins mounted.
Um lenses get lenses which simply offers. you an perception into your. variety of your your project and stuff ok. lenses just acquired eliminated not sure what. occurred there. uh live proportion uh to do studios is actually. useful. um once you kind of placed i love this. because people just placed todos. anywhere. after which neglect that they they happened. and they pass oh well. you recognize yet now i will get a listing of all. the todos which have. looked in the assignment and that i can simply. visit them immediately. and simply move and fasten them and resolve them. or if they are obsolete just remove. them so i actually thats like one of my. widespread tabs. highly advise having that uh it is. azure that is i use this for i. suppose because you need to use the azure. carrier to hook up with a database. but i dont use that anymore id. in fact eliminate which can i uninstall it.
Um i can probably simply remove that uh. lets examine this ones a new one whats. this one. one hundred days of code yeah i dont use. that one so much anymore both what. else have i got down here docker and. code time and mongodb. i possibly must kind that up um. theres a lot there that i do not. in fact use. so thanks for placing it out so i love. everyones questions. uh i have never seen these tabs in vs code. uh. i paintings with yeah i have added them on and. i possibly dont desire them all. but allow me recognize which ones you will use. out of those not really too many. live code share is really useful 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 magnificent ask nick. while nick arrives shortly you will see. that typescript is magnificent.
Um lets take a look okay so i want to. do actually ill undo this for a. second im just going to kind of. so allow me do an undo and it is often a. well concept. undo that after which i will save it. and iim going to do a devote so if i do. if i clear my console. and that i do a standing i have all of these. i believe theyre all secure to dedicate i am. simply checking. theyre so lets do um a get ad we will. upload all of them so now it is going to be. well do a catalogue again you may you could. see all these i do know what a number of you. are saying you are saying eddie. why are you no longer utilizing uh vs code to do. this im simply so used to the command. line for doing this. uh ok after which i am gonna do a devote. so im gonna say initial nest dedicate or. something like that. so um and then function preliminary. nest js project just so i know that if i. mess anything up im able to simply revert back.
To this so i have committed i do not even. have to push it. its dedicated and i desire to redo what i. had right here. um there we cross so i have reddone what ive. came so ive got this again again. ok so these tokens definitely dont. work. what we will attempt to do is as. carl recommended and simply 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 bring it again. so uh lets see i think the guilds enable. and deny is okay and. allowed commands and and so forth is. nice cyber web hooks i dont think we need do. we want web hook identity and token i do not. assume we do. i might be incorrect i think the only. necessary um houses are token and. command prefix. remainder uh is okay lets. uh remark all of those out if i. keep in mind in fact. that sounds well no problem we are going to attempt it.
So i want to use one other command to. every thing else so that we know we are. just targeting this spot. i want to use percentage which is not. anything wed use if and when we deploy. it. but um lets uh lets have a look. oh what is an sjs ok incredible question so. thanks a great deal for the the question. uh elusive code. so the question is the question is um. let me increase your query at the. display i should correctly get more um. prepared at this i get over excited. with coding. and so on so here we move well question if. i have. neglected any questions im over right here so. i am nonetheless right here. if i have neglected any questions you simply. form of wait a couple of minutes and copy and. paste it returned in. so next js i want to describe this. actually it is built on top of. um express and its. used for build its a frame of building. apis and its inspired.
by way of angular do not run away and get scared. but which angler become motivated by like. variety of spring. so it is surely form of that framework. mentality it is really nice youve got a. lot of equipment there ready for you. http purchaser you are able to do that you desire um. information superhighway sockets you would like guards you need to. guard it is advisable to certain. middleware it is it has got various it. built you wish a logger as i found out. the day before today with carl. when we have been talking approximately this you wish. a logger it has got a vanilla one inbuilt. convinced possible upload extra to it and. customize it yet it has got a superb. start line for for everything so. that is a. really great query i hope i. didnt pass over any others im trying to. have a skip and take a look um. pr discord.js sent thanks . oh marvelous pleasant okay. so that you despatched a pr to that project. and deserves a shout out that is a eco-friendly.
Square for you and uh. thank you much for doing that thats. amazing. since you understand i noticed it as one of those. squiggly line and ii thought correct i know. it is just a comma. and iit is just a comma and ii know plenty. of folks say i should not make. contributions that are just aa space or a. comma. but when someone copies and paste that. like i did the instance. code into their project and they see. this underline or they run the assignment. and it fails. they pass oh it does not paintings they do not. realize that something. um is to anything easy they wont. realise if they are new to. that style of project or even new to node. and pritier and linto and all the rest. so i think the exles should be. bulletproof and should. paintings so yes whatever like that. obviously send in a fix is truly. certainly significant. have you ever learned new javascript.
Libraries fastly i have not looked at. fastly yet i have heard people you recognize. talking a few lot. what issue was to be raised within the repo. i think it got raised already. i believe so uh aditya beat you to it. adithya sorry my undesirable there is a. uh its very very small on my on my. display screen down there yet there is an extra. letter. um i have no task ok son. kara. really wants me to respond so before we. get into the coding allow me. have a look at this question all of you. be at liberty to reply to boot. its fantastic for everyone to have. one-of-a-kind views i dont have any. tasks done until now yet i know html. css js python. and also havent any git repos to do. please tell me what to do. create a git repo im sure you have got. these aside projects create them percentage. them on github and join us on discord. and you will just type of snowball from.
There. its uh you only received type of you can not. exercise routine at the fitness center. if you havent type of long past to the gym. so visit the health club after which. try any exercise after which you will youll. youll find much more routines on the. gym that youll do in machines that you. can use. um and uh dtr says already responded so. optimistically that enables i admire seeing. distinct. peoples perspectives okay eddie enough. talking lets attempt to do a little coding. um right so this one we will say its. procedure dot n dot. let me see what i name it in the other. project just. so i cant i wont oh dont suggest to. vicinity that what am i doing. um im gonna open a terminal over here. in order that i will get the token yet no one. look at any other terminal. you cannot its aanother display screen im safe i. imagine im good. uh and permit me just get the the call of. the token so.
With any luck it should be great. lets take a look um you know what i. might do i could start ive got. an easier proposal i know how to get this to. work okay everybody endure with me. dont fret all is good were we are able to. paintings it out among us. so if we cross um. lets take a look right so ive got a. extraordinary proposal i desire to convey this terminal. over to a different display and iim going to. start the project from there. after which any other instructions i run i am going to. run in vs code. i do know you all like vs code and so on. so uh allow me have a look but then im able to. within the command once I run it like i mentioned. its aan environment variable so lets. take a look. lets do it so to start the assignment i. must have began the assignment in fact. before i. even put this in actually there is. another thing i should do so what i. would actually do is undo all that again.
And back human we must always check the. task works before. we try and customise this it is again. to what we had before. and lets begin run the assignment so if we. study the documentation. the assignment is likely to be npm. run start yet lets. double check and notice. what it says first steps set up it it. tells you what. files get created i admire the fashion that. it does it npm run start. so i will do it on the display screen so you can. see we are going to do. npm run start after which in the browser we. must have a good day international api. thats how easy it is to get an api i. have got a video in this uh going into. more details i posted about a days. ago on wednesday. wherein we really get data from githubs. api and merge it with information that weve got. in the appliance. so thats up and running lets go to. localhost or not local hack day.
i feel 3000 and you will find its totally. small um. good day global so we all know that works ok. awesome so permit me take this off display. allow me placed the um token. for discord and lets have a look. um after which hopefully. npm run begin. so the project ought to run back and we. ought to see. no difference all ought to be well its up. and strolling you could trust me in this. and so if i reddo this. and the name of it really is discord token no. surprise there. and you shouldnt see it and we are not. utilizing these so lets just go away these. out. i like vs code typescript all this. awesome stuff. ok so hit keep the project should. restart. it didnt i do not know why let me start. oh no there is a dev mode aha theres a. dev mode for the project. so if i return to the documentation and. i return to. cli over in case you let me verify i do. keep in mind seeing.
Uh yeah npm run start dev so it watches. for changes that is what i should have. finished npm. run start dev. nonetheless with the token i am noticeably certain and. if i go to localhost 3000 back. now not localhag day 3000 continues to be up and. strolling. you cannot see the token which is extraordinary. right permit me compensate for the on the chat. permit me see what i what i missed. um oh chats going good magnificent i admire. it when you all ask questions and chat. among one another its aawesome. uh what did i omit i dont keep in mind. where i got to uh what is sjs we did. discuss that. uh alicia raised the pr. um thanks for explaining subsequent uh its. ness js sorry no longer. next js so nest js is an api framework. next js is a framework for front end. for react. it does have some kind of backing. features but its totally light touch. i did take a look into that yet yeah if.
You want a proper. api id select an sjs. and you will get up and running as you. saw literally in minutes. yet no hindrance ok cool. lets take a look. um. uh sankara i already responded your. question i feel some people did. to boot. i used to be a typo thats excellent okay cool um. well thanks for clarifying ok so weve. bought this up and going for walks lets have a look at if we. can get howdy global operating in. actually in discord so lets see so next. factor we need to do. is weve got this i believe this looks. good i do not it is strolling there is no. errors in the console. so the subsequent element we do is usage so we. have got to create a bot gateway dossier. ok i mean we are able to do that and copy and. paste that in sounds well. okay um i do know carl has achieved it in. exact module thats. a pleasant manner of doing it i desire to hold it. dead lifeless simple for today.
Im just trying to do a spike to see if. going forward could i write a discord. bot with nestjs. um typescript ok lets take a look. paste it in. we can do just a little formatting. there we move okay um. shop that and it may load it lets. have a look. and spot. okay so it should oh well ill. upload it there is one thing more i am going to do uh. the project would not recognize whatever approximately. it but. i must add it to. um to the module especially sure ive ignored. that step. lets have a look possibly as a. supplier yeah im attempting to seek for the. documentation on it. but theyve kind of neglected that step. i have all have i missed it. let me see usage um yeah so that is the. gateway. it is smart and you need to use the. client decorator ok thats really. fascinating too there is ways to do. it you may do it for service. or you can do it with a decorator ok.
that is well to grasp. um i mean the two look nice and an identical to. me. and then thats for receiving messages. so right away theyre directly to the subsequent. sort of discord bot listener so correctly. youre right they havent. theres another development to this. assignment allow me proportion the hyperlink to this. project. i feel i shared it already but i am. going to share it one more time um. increase a controversy that and do double investigate. that i am. and this is true but it seems like. after they supply an instance. they dont add it to the module dossier so. lower back. you know we will i may have figured. that out yet carls definitely helping. me thats making it a lot less complicated i. love pair programming. um but you recognize someone is doing this via. themselves they could get stuck on that. for like three hours. whereas you know a few lines of. clarification or code or exles could.
Simply help them make it a lot less difficult this. is why. it is so significant for everyones. tasks to get folks to look at. it because. they may not know the certain things. that you be aware of once you make assumptions. so lets take a look so. this is bot gateway and well. upload it to providers we have app. service which is nothing. that is turned into vehicle generated by means of gateway. and if i hit input. lets bring this up slightly it. ought to get automatically added on the. properly. yeah weve at the tip so lets hit. save and. the console i ought to be able to um. show you now because the token is hidden. which is well. if it does not get hidden ill be very. disenchanted. yet no it i think its hidden ok and. weve an errors so lets take a look. lets debug it all together. so lets take a look so places cant. study estate ship of undefined.
On on prepared in bot gateway line 23. so lets take a look well okay 23 is. javascript so. we do not have the uh the mapping so. we will simply uh understand that were. searching for on all set. so on ready become announcing um. ship ok so we cant this does not work. okay have we done something incorrect or. have we found an extra trouble. um in the assignment lets have a have a. look. good perhaps i did something incorrect allow me. determine. so after I use this and iits got. a typical in it does it bought imported in. sjs we have all of the imports. enormously sure i did precisely what they stated. ish. i believe it received the mistake um i think um. within the app module in which you initialized. um the. discord module and you did not provide a. webhook. url and thats why he cant discover get he. cannot do get webhook. client and thats why ship is undefined. oh i see. okay so if ok good factor.
Well well observed but i think you could. simply delete this line i think you dont. want this. it truly is in case youre utilizing uh internet. hooks right. okay so it is achieved a different manner i. wager right its completed. can anybody just get purchaser yeah it may. be achieved we get customers. ok oh yet there is not any ship on there. ok. good we are able to see we can see if we can get. a log right because its going to give. us the user tag. and all the rest so lets simply undo this. for the instant. and go back to what we had remark this. out save it if i elevate this. it may reload ideal no errors this. time. and it does say logged in as eddie bot. so. it really works it is linked to discord so. maybe the subsequent element we can do. is get it to pay attention for a metamorphosis on a. command. so lets and we are gonna need to come. lower back to that due to the fact we do desire to ship.
Messages to discord nonetheless. so lets take a look um ok. create a handler for receiving messages. via the field i like it how its just. damaged down into. distinctive documents you do not get these massive. files necessarily problems its all kind. of. taken care of for you okay um. lets uh lets take a look so im just. gonna kind of reproduction and paste this again. dont do what i do all people and theyve. known as it bot gateway back okay so. theyve positioned it in an analogous file okay so. we will put it in the same one. because its another trigger its. going to be um. an on command ok lets seize that. placed this here what have we received so on. command hasnt been imported. we should better simply move import i feel. its appended it up there. nice message does not exist lets have a look at if. it could figure it out. and do an car import to boot perfect it.
Has achieved. all of it seems relatively quite completely happy so what. we expect. is when it starts. uh whats message come from and it receives. a message so let me just study some . i didnt study this yet im guessing. start so thats the command its looking. for i am guessing. i feel we should always do it on permit me see. what will be what will be a good that. i feel i saw on an outstanding instance. that would be higher i dont need to do. on each message i am looking you i did. that i believe once I was having a play. with something as soon as and everybody had. somebody wrote a message the bot turned into just. spamming everyone so you will not do this. lets uh. lets examine let me get closer the chat. while youre having a having a examine. band sal are you able to tell your different uh. channels that deliver open source content. and guidance. um to not everyone touches on it i believe.
Yet no person certainly specializes in open resource. like myself. so um yet i will have a look ask and. discord and we are able to we will. ship you a few a hyperlink in the within the . description under to the discord channel. and we will chat to you and uncover a few. people but were already discovering. some bugs during this at present so. hopefully someone has raised the problem. that uh what was the difficulty oh convinced including. it to. um the module oh but they do upload it oh i. ignored it if we glance. um providers bought gateway oh thats. due to the fact. yes they did upload it previously okay so. they further it before. and i went immediately directly to utilization and so. its kind of bizarre adding it before but. the file does not exist. id have executed it a bit. in a different way id executed it like a. correct move. yet you recognize its it is there i simply. think. i would not upload a dossier bot gateway to the.
Module until i create it i necessarily kind. of create the file first i do not know. what people imagine um themselves. correct in the chat what do you believe. lets take a look hindrance raised. um ok cool. yeah deleting yeah do you i think you. can the difficulty um. i even im able to put a comment permit me let me. observe the issues and i can say. oh i found it so you cannot delete it you. can close it i think it is. i have upload comma at the tip by means of jason. magnificent after which i feel did you close up. it already. um but ill placed a comment and say oh. i discovered it that it turned into added up and so. forth. um if thats if that needs to be the. case i am glad to. to lower back you up on that due to the fact i. encouraged you to raise it and it was a. bit confusing the circulate um. wasnt wasnt first rate um so okay. and ii wasnt reading it whilst i used to be. dashing through ok.
let me know tell me the issue range if. youve uh have. read it copy and paste uh is fine as a. developer i will create a project through. in basic terms copy and paste to create something. itll be enjoyable and iimprove my study. abilities your reproduction and paste is sweet to. begin with. um yet i feel its important to. recognise what you are copying pacing i. assume once I copy and paste. i simply exit it works and simply style of. do it when I when I variety it out i. actually. imagine extra about it so its kind of not. high-quality yet im just aware of time. simply i want to keen to get whatever. operating and to just get. my goal here isnt to really understand. every thing is to get whatever operating. to determine if. if there is something we must always use going. ahead so it is almost like a spike so. i will reduce a large number of corners. besides i actually have a query for.
all people and perhaps for carl besides. 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 maybe no longer a lot of a. nest query. but what approximately checking out a discord bot. since it it. does internet sockets so i would have tried in. the beyond to mock out the websocket. and ship the information that i desire to the bot. in order that. um i can assess the response but the. predicament with thats when I um. send the information returned the uh checking out. library sort of kills the connection. after which the bot simply maintains attempting to. reconnect for all time to the websocket. and so it simply gets into this loopy sort. of loop. i wonder whether anyones confirmed any. websockets earlier than because that is necessarily. uh. because its like an attractive. obstacle okay where was i. um correct what turned into i doing i used to be doing we.
Had a start thats what we had. execute command start okay i feel. thats it. i believe its going to run and carl would. recognize more than me. if youre still round is that um i do. the beginning command iits going to respond. with this lets simply provide it a pass so if. i hit save. should reload logged in as eddie bot. perfect. lets elevate discord lets have a look. um and permit me visit lets go to the bot. chat. and what was our uh with a percent i. think. if i do exactly test nothing should arise. oh youre perhaps behind my head eddie. its behind your head. sorry everybody my undesirable allow me make it uh. convey it up it is friday. endure with me it is friday in fact i make. blunders like this every day. so experiment as youll find test is there and. um. no respond no comment nothing in the. console nothings converted so the bot. hasnt carried out anything which is well.
So if i do percent and that changed into our. trigger for our command. test i hope it does nothing lower back. nothing there. nothing in the console okay not anything is. good and now if i do. percentage experiment start sorry percentage. begin. i am hoping something happens either in. the console log or within the chat. lets see it worked i imply that is how. speedy its to get. an sjs up with an api and a discord bot. i mean thats highly quite rapid right. so now weve got. execute command percent start so. therefore we are able to do. so many other other things hypot. the reason for this is that in fact i want um to get. our api up with a view to get the map. post at the back of me and as persons interact. utilizing. um doing contributions to open source i. desire their profile to appear on the map. from github so ive got such a lot of cool. thoughts with that so i maybe ought to. attention more on.
The api than doing those other things. however the bot. with the bot happening um i want alexa. js up much due to the fact i im in order that . uninterested in everybody just asserting hey men. it is like now not everyones a guy right here so. um convinced so im eager to at least get uh. alex js up on the bot after which we are able to i. can get back to the the api besides the fact that children im. no longer doing very much on the api it is. regularly carl. uh ok oh sorry carl well say. something. no no um ok every thing exceptional okay cool. no quandary um okay in order that works so im. happy with that. and so what some thing we wish to do. in another way is. we dont want a command for alexa js. that is some thing we dont need we do. actually desire a version wide variety. i do like having the the understanding what. variants are walking so persons can suppose. good wheres my characteristic i. submitted a pull request to that um so.
Its uh it is sweet to have a edition so. what lets . perhaps do i wont get distracted with. that now yet it is going to be good to have a. version command. um but perhaps ill simply change that to. edition and we wont carry out the. edition. yet um we will simply remind us to put. that in so now. and that ought to be high-quality it must have. reloaded ideal. lets deliver alexa alex js now not alexa. alex js so wed like that to set off on. each message. so lets take a look what we are able to achieve this. if we go to the doctors i did see whatever. join the development. and we wish to subscribe to every. message and we are unlikely to reply but. we will have a look so. lets have a look if we i need to install. a similar file for now and lets . always. uh separate this out later if you want . um we want the on. annotation and i am unlikely to respond.
But if its not the bot lets do a. console log um. just a good way to see in the log console. and there is an amazing oops no longer meant. to do this. there is aan awesome logging inside sjs. yet i am not gonna do that at present i am. just gonna say um. lets log the message so yeah simply log. the message. message dot well i didnt see what it. was. it was to illustrate what its. message dot um. am i able to get the content material of it not author. content material here we pass. there we move so ought to i see it with any luck. within the console log. that should reload lets go back to the. bot. long term no see eddie yet. uh yeah nest js spot. ok um right im sorry there you move. see in the console. correct now not behind my head is it okay so. that is coming by means of so we all know for. every message. so some other person can write a message in. the within the bot. chat channel and that i want to see that it.
additionally comes up within the console and its. not only from me. so i want to prove proof to everybody. and myself that it isnt just me so. karuna nick jason an elusive code i do know . youre already there if you can write. an extra

Leave a Reply

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