your personal Discord Bot - Aliases (2021)what is going on guys your individual Discord Bot - Aliases (2021)what is going on men your personal



Code Your own Discord Bot - Aliases (2021)
Whats going men welcome back to. another discord.js educational in trendy. academic were going to be including. aliases. to our instructions in our discord bots if. you dont know what an alias is. google tells me that its a fake or. assumed identification. what this implies is as an exle for instance. i create a command. that is play which joins a voice. channel and starts gambling a command. but as an instance i desire to execute this. very same code. of this command using one other keyword so. rather than play. i desire to execute this with pl and simply. with the aid of doing. this here it will nonetheless execute. the same. code as play and that is very simple. it is going to be an exceptionally brief video yet. before i start i do prefer to present. my discord server a short shout out it. has been like four days due to the fact we. formally released. weve over one thousand contributors already.
Come right here when you are. into coding disc or mods it is a. coding community for discord bots. and also we do have a little chat place a. little living room area in case you guys desire to. communicate. to the community so theres going to be. a link in description to this discord. server. come forward join so lets go ahead and. start with the actual. code so like i reported very short video. all you are going to desire is to go to. your message event if youre new right here. make sure to watch. the complete event handler video because. we restructured our whole entire project. so lets get started here. in our message event we have a const. command and this is the same as client that. commands that receives cmd. were going to edit this and do an or so. or. it will be purchaser that instructions. dot find were going to create a. variable i am simply going to call the.
Variable a. with an arrow operate a dot aliases. aliases and then and. im in fact going to repeat aliases and a. dot aliases. that includes and we will move. in that cmd a different time cmd. is thiis constant up here which is simply. rx that shift that to a decrease case. and really we are very nearly accomplished. with the message routine. now from right here go to all your reviews. and were going to create the aliases up. here. so aliases colon its going to be a catalogue. and you can begin. typing your aliases so for the mc server. we are gonna have 3 aliases. one is gonna be mc the next one goes. to be mce. examine and the final one were just gonna. write out minecraft. and ensure you place out the comma at. the end put it aside. shop every little thing and every thing should be. jogging fine lets pass ahead and do note. space dot. there we move its on-line lets go into.
Our discord server try strolling. the first respectable name of the command. which turned into mc server so mc server. you will see its going to say please. enter a minecraft ip and then we will. also run. mc it will say please input my. variety uh what is the different one thats the. mc. check after which we also have minecraft. so all of these commands here are. technically strolling. the exact same code which is this. notwithstanding. you recognize it is simply its the aliases its. just like the referred to as. um commands here so it technically. all works i can actually do whatever. like. mcmc.highpixel.net. two 5 5 six 5 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 instead of going for walks exactly the same. code perhaps i desire to have. mc right here run an additional code than.
This yet nonetheless have it in a similar dossier. right here. how you do that is come all of the manner. right here were going to add something down. right here within the execute method. and we are going to name it cmd we are. clearly passing cmd here. thats this variable you could upload in. any location here im just going to add it. right here in the boys in the center next. message then come here into your. command upload it in addition what you must. do is reproduction. all the code and you just want to go. forward. and verify for the cmd. so all you do is do if cmd triple equals. two. and the first one is usually going to be. the particular leading command so. mc server after which go forward and paste in. your code then come each of the manner down. right here and then do the next in that case. if cmd triple equals to mc which is the. first alias were simply going to console. that log.
And well console the log. announcing this is not. an mc server and then lets do one ultimate. one. that is if cmd triple equals to. uh minecraft and iits going to say. message.channel thats send returned you. men can sort whatever you men desire. right here. its aactually no longer console.log let me. message that channel. thats ship to be able to see it on the. server. and for the minecraft you could say we. love. minecraft so using these 3 aliases. we are in fact walking 3 distinctive. instructions. in one command dossier now technically you. would. do varied instructions and its gonna be. no exclusive than the particular command. handler that we had before but with this. new command handler we are literally. organizing every thing. so that you do wanna have your command you. understand documents and everything organized. it is just that so one can have a you.
be aware of yet another alias with one other. operate. im simply showing you so lets go forward. and run this. and now if we do mc. server it is the first command so. please input 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 thats how you actually can run. dissimilar commands in one command folder. using aliases. typically you simply want to use. aliases as aliases. yet typically if you end up doing. something like the play and leave. command you might want to have them in. an analogous. dossier so you can use the exact same. matters so im able to use. just like the voice channel and maintain. every little thing organized so. thats almost it men i am hoping you. men loved if you did make sure to.


lousy KPOP DISCORD SERVERS
Welcome players before we start this. video I will not strain this enough this. is a case study this video is by no means. meant to promote any harassment to. anyone I know how debatable this may. be I tweeted out Korean pop got about. thirty persons combating in my goodddamn. require just like the video I made one. 12 months in the past known as lousy hairy discord. servers i am trying to infiltrate this. neighborhood and spot what its about my god. rather frankly we see it all the time. kpop stands and Twitter reprised. replying with fan cams and thats what. we see at the end of the iceberg but I. desired going to be and discover what. its aactually like to be a part of this. community. so please no matter if you are a kpop stand. or not do not cross in harass anybody proven. during this video. oh man Jesus Christ we will begin with. our own discord account.
My name is mr. kpop scenario 1 I am not. from the kpop neighborhood yet Im from. a further stand neighborhood how pleasant well. those people deal with me okay Im type of. scared Harry Styles female friend. you appear so dreamy during this photograph i am. gonna juice this one. oh yeah batard all God yet magnificent i am a. Harry fashion supporter now time to see. how these communities will deal with me. understanding Im from yet another neighborhood. so Im not just gonna become a member of kpop servers. i am additionally gonna become a member of anime servers see. how people from the anime servers might. treat me you guys ever heard of kpop. Lord overheard or recognize whats kpop. kpop Korean pop it is a style I desire to. join that community ok pay attention. here Harry Styles as somebody who got here. from the k12 community I tremendously suggest. you dont go too deep into the neighborhood. because its a meals i feel that is a.
genuinely imply assumption i think you simply. hate kpop okay pay attention right here bucko. do your self an extra fight which you you. cant yourself out Im ok. its aa lot of fourteenyear-old females or. your friend you know i do not believe I was. girlfriends Audi likeness. Oh whats this oh this is all in Korean. I do not know Korean IG is trash period. yg period period I dont know what that. skill. female friend this is the worst welcome. ooh thats on a bot hello Im seeking to. convert I have not ever heard a kpop but i am. looking for associates oh why are they. making exciting of me why do you think it exciting. of me Dan two times first. why might I stand two times if I recognise. the 1st time is there a rule wherein I. must stand someone two times and a. 610 mamamoo dan gee thats a automobile. enterprise I have certainly not heard their music I. do not know who they are yet what is that this.
It all I do not know what the any of. this means I have not ever heard of them. before. does anyone want a position play as BTS. individuals yeah does that a No listen. freeze approved teethers why cannot you. guys whore those people. idols howdy what she deleted it perhaps. its time for me to go away you are not. gonna stay here though that allows you to. study kpop i think out of contact cuz. I dont take heed to kpop a lot everybody. starts somewhere should help you authentic convinced. a large welcome start from hearing. London oil thats a source pal start. with one group yet what you can begin. with BTS if you wish i am deaf though I. cant listen to tune what why are they. making enjoyable of me are you making exciting of. me very well Harry patterns is simply. knocking throughout the drink how approximately we. start with that BTS participants jimin jhope. suga jungkook jin RM ok jungkook is.
the chosen i dont know who any of. these are but i thinkin ago with. jungkook who i discovered a kpop server that. hosts karaoke hey changed into garyoke with a. karaoke box very well alright lets play a. song Im all set please play me Jung Kooks. number 1 hit whats that I simply desire. to sing a jungkook song simply get me a. good tune o.k. okay Im prepared ask for. cash get suggestion. I spread my cash twice there is a enjoyable. song hello this a classroom and i say a. little music well purchase junk code like this. okay sorry men up to i am going to assist you I know. my manner become gonna be later a few week. ago well time these are pitbull eaters. they eat mr. worldwide any bald persons. no it is the worst things occurred to. me tonight now i understand how kpop stands. react to other song perhaps some track. even better than kpop now i understand how. they react it really is so sad its time now.
That ive found out all the secrets. by means of discord and through many her. aisle and mistake are you prepared to tackle. the large boss which is Twitter group. chats so I got a chum to infiltrate me. into various Twitter group tracks therefore. will experiment out the community Im setting. the president that kpop stands hate bald. people we are gonna learn how true. it really is. oh dont ask concerning the Vin Diesels that. say that is a bar battle I dont want to. discuss that this elf in. my mentions with the same crusty pop. that said looking pictures you are the. one making a song me fancams i am just. responding o.k. i feel this can be a. person homie yeah this individual has been. assisting me infiltrate I am not gonna. divulge her call definitely we cannot. reveal her secret identification. should I ask my friend how do I. introduce myself and that they pronounced hello i am.
name and im from and then your final. bias is your ultimate bias is jungkook. hello Im Sophie and i am from america and. my ultimate bias is jungkook and i am. gonna do that white emoji that basically. teen white ladies use this one definite. and a celeb emoji very that is excellent. what is up Sophie are you going to the. video store on are they Tori now why did. i do know this foodstuff its aall over Twitter I. dont stand in even I would okay so I have. been off social media a gaggle due to. tests and private problems. I noticed BTS in Hamilton in 2018 yet i would like. to purchase my mom this birthday present I. cannot surely come up with the money for both oh here is a. controversy reaches over mum and dad Eddie. day of the week father and mother. jungkook gave beginning to me okay why did. you upload another army to a few of the. muffins in right here most people right here Stan. BTS okay so this is a organization to begin.
Controversy in now okay men. warning okay I dont take heed to kpop I. have no idea what kpop appears like but. lets have a look at the reactions to a. arguable opinion okay that is the. bomb GBH jungkook has been having. disappointing vocals recently I a lot. desire the other kpop contributors oh wow I. such as you already. what are they chatting with me what the do. we adore beets yes or no longer what goes. on right here you provide off solo stand wives. woo. so its aactually far better than BTS. though not anything incorrect with solo. stands off did you just call me a . this is sort of a bar combat dude that is. like a goodddamn bar combat no I referred to as. them why are you getting all up. in my face limo just i used to be ok . you say then nevermind this military cannot. read lm foul excuse me protecting you. go back and forth you annoy turned into literally. protecting you maybe if you knew how to.
study perhaps if you stand exact talent. sis not my fault your brain win blunders. for or for Sophie apologize i am sorry. that yall havent got a brain shes just. stand real expertise are you 12. convinced but hes not Im simply gonna supply. putting pictures someone already left Oh. three spots a fancam i need to discover a. pitbull fancam that is needless to say okay I. suggested numerous organizations in these peoples. case taste thiis sweetie lime foul. justjust-just. ok i have to maintain hitting them with. the mr. international images I got to get. more pictures do my arsenal of pimple. has to develop superior oh oh ok so that you. shouldnt have a little battle of. Arsenals I see check this out they are. now not gonna anticipate thiis not one pitbull. two 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.
now not fascinated people isnt involved. in you friend that is so sad Ive been. kicked out of the sole institution so if you. make an apology ok Im sorry it is only a. board seriously should have done that. ill delete my tweets right this moment and this. is after I hit him with the true she runs. to computer activates logs onto Twitter. deletes bad excursion hits. clenches fist that isnt how a. steel face turns purple okay so begin. sweating pull please dont you decide me. anyways he is achieved ten movies because. it is accomplished 0 movies actually what is. wrong together with her ok very well stop sending. your images you know what Im sending. four pictures of mr. Vin Diesel we are. having battles of images of kpop video. victors its the neatest thing ever all. correct no okay heres Eddie one-of-a-kind. artist well I greater send mine buddy this. is how the real global works very well oh.
This person certainly went into my DMS to. send me pictures of this one artist all. correct thats how they want to play lets. play dude I will move all Vin Diesel. all night I dont provide it inspect this. guy the bald head you could simply slap it. man you may just slap it theres an. underground art is that no one whove. I have asked listens to you thus far can i. please share with you men. Sophie please percentage certain okay my sister. used to suppose Vin Diesel the rocking. persons work good that is a discovering of. tonight it is actual theyre the same. individual see what the hell what is the. change any other cult all started. bashing on me beating my ass and that i send. these persons images of pitbull and. they do not mind thank you guys and never. getting mad at my bald men pigs that is. exceptional pleasant you know thiis this was a pleasant. organization wait did I am getting one kicked no no I.


5 Discord Audio Settings all people Needs to comprehend !!
usually after establishing voice meter. or equalizer apo. a number of youve mentioned that youve got. issues with. discord and a lot of the times this is. actually concerning. settings inside discord the audio. settings in discord. usually it defaults to having a few. matters. on that actually shouldnt be on or. repeatedly you men. go in there and also you neglect which you had. turned things on like echo cancellation. and whatnot so this is going to be a. fast video on. what you will have established on your. discord audio settings. lets have a look if you end up on discord. in case you go to the lowest. left in which your call is you can go to. consumer settings and. less than app settings you will find voice and. video in voice and video you will have. your enter and output gadget. commonly as a whole i imply. choosing the default device as your.
enter. and output gadget in this area as you. can see right here i have actually manually. selected my. microphone the input gadget that i want. on. discord first thing well take. a check out is the input sensitivity if. you switch this. enter sensitivity on its going to. immediately assess. input sensitivity this is actually um in. a sense. a noise gate filter so if you turn this. off what you see this is we have a. slider. on the left side of the slider weve a. yellow part and on the correct side we. have eco-friendly. the yellow portion of this meter is. correctly. muted audio so if i were to show this. down it would set my noise gate down at. adverse 75 decibels i desire to go ahead. and just keep this at adverse 62. to be. sincere with you i already have a noise. gate clear out built in equalizer apo so i. would perhaps flip this each of the way.
Down. and iit wouldnt matter yet on your. guyss sake this is aa great way to block. out background noise from coming in on. your microphone. specifically on discord what you can do. is simply track the. audio of your microphone without you. talking into it and just block out. every little thing that is stoning up. on the meter right here generally its going to. maybe sit down right below negative 60.. keep in mind when youve got to go too excessive. your voice will be cutting. in and out of the audio scrolling down. to the advanced section. weve a noise suppression made by means of this. enterprise known as. crisp it suppresses history noise. from your mic this. is in beta this is reminiscent of the rtx. voice. ai that got here out lately as you guys. understand. i suggest simply creating aa legitimate. noise gate clear out and downward expander. in your mic. there isnt any reason to use the noise.
Suppression within discord. if you just installed a suitable noise gate. clear out. to your microphone there are. alternatives to this besides you have. realtime noise suppression that can be. installed. as a filter and setup in equalizer apo. youve the reaffir. plugin that i did a video on recently i. will link it. in the description under as a whole this. should always be. off down below voice processing weve. echo cancellation. and noise reduction it is in which matters. get. somewhat iffy echo cancellation and noise. discount generally. creates like a warping influence at the. vocals. typically it can 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 utilized by way of. voice meter may cause some issues there. those two should definitely be.
Off constantly i dont find them. essential to turn on. i do not genuinely see a time wherein its. necessary. for this stuff as i mentioned before simply. constructing right filters for. your mic is a much better way of going. approximately this but many people have. issues. in regards with you know like phone. settings things like that you can turn. on. um certain audio settings if you end up. utilizing your phone with discord and i. might see in some occasions wherein. this might help automatic reap. control is really up to you it truly is. going to try to gauge. wherein your audio or in which the amount of. your microphone is going to hit so it. will either. increase the quantity foil or lower the. volume for you instantly good quality. provider you want to enable this setting. here so that you can have a higher. precedence to your discord.
prospective customers over the internet some a few. internet vendors might have some . issues with this or information superhighway prospective buyers. may need concerns with this. that again this placing goes to be. up to you generally having it off is. probably how to cross. yet if you are usual a normal user. of discord ill see. a case wherein you may want a higher. precedence. for discord audio if you do a large number of. calls or. you recognize youve you do business that. way um ill see in which this may be. beneficial attenuation is actually going. to be like a vocal ducking or a facet. chaining apart from its whatever that. youre going to listen yourself. its going to lower the amount of other. applications. by way of the share which you set when. somebody is talking. so that you can have it attenuate other. quantity levels from other assets like. your song or browser audio or game.
Audio. when other folks speak or when you. speak through the settings here. generally id assume every person to. have the attenuation. set to zero because thats form of a. strange component to set up for your self but. if you have been interested in what this. placing does that is what it does. it will in fact lower the volume of. different sources whilst someone else is. speaking or if youre speaking. depending on the placing that you have. the audio subsystem frequently your. contraptions will in fact. fit concerns with discord a. lot of you guys run into this. obstacle wherein there is a compatibility. conflict concerning this device. and discord itself you could just under no circumstances. seem to get it to work. correctly inside discord what you can try out. doing is switching the audio subsystem. over from trendy to legacy. or vice versa and that would clear up.
The conflict. with the compatibility there the last. area this is voice diagnostics. dont really want to dive into this. really you have 3 settings here one. for showing. a warning while audio isnt being. detected out of your microphone. youve use the newest technology to. seize your display screen and use an. experimental option to seize audio. from. applications overall those are each of the. settings that youll run into. with discord if you are having a controversy. with discord after setting up. voicemeeter. equalizer apo this is an efficient video to. go to or if your friends are going for walks. into any concerns or dont know what to. established. in the discord voice settings this. video is a good. video to reference i additionally desire to send. you guys over to the equalizer apo video. that i lately did check out the. new preset dossier that ive.
accessible within my discord server and. additionally simply check out how to set up. all these audio settings to get your. microphone sounding. good thats going to finish this. academic men i know it become a short one. dont be concerned im gonna be making it up to. you men im engaged on. redoing the voice beater academic so i. desired to knock out a few quick movies in. the meantime. so i had time or a little bit of wiggle. room as some distance. as engaged on these video clips due to the fact. they are gonna be. large ones and take various time in case you. men have any questions. after watching this video you recognize wherein. to move my discord server hyperlink is in the. description. less than if you like this video do me a. reliable hit that like button and subscribe. for extra content like this. and iif youre attracted to funding this. channel and my discord server.


Building a Discord Bot utilizing NestJS - let#39s pair program
okay hello everyone weve one minute to. pass i thought lets simply begin i am all set. to head. and i am extraordinary enthusiastic about at present um. from honest overview ive had particularly a long. day its been excellent arent getting me wrong. so i am somewhat style of you recognize. worn-out so. i do know youre all gonna help me uh work. in this project collectively and im fairly. keen because. eddie bot has been taken offline it had. some issue i had a brief seem and i. couldnt understand what turned into incorrect with. it. so i thought well eddie bot became only a. prototype i needed to replace it. i did see that nest js which we are. constructing our api with has a terrific. um library that lets you write. discord bots with it. and but you get the massive advantages of. an sjs with all the different. hooks and guards and just plenty of. amazing stuff. so i thought itd be particularly interesting.
to take a look at that so you are gonna. see me. uh begin it from scratch at present and perhaps. wrestle. but dont fret uh carl who is on radio. eddy with me. or aka julian um he has finished it already. and uh let me uh let me bring up uh. carls github page. so you will discover kyles woman page lots of. green squares. recently in the last form of couple of. weeks which is tremendous which is amazing. its really good after which if we scroll. down right here permit me make it slightly. bigger 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 executed it yet i would like to profit. the way to do it so i thought. um ill i am going to begin from scratch and also you. know we are able to all do it collectively and dont. neglect we do have. the stargate repo which is already. deployed to kubernetes. and has already bought all of the tokens for.
Discord so we may be able to get this. deployed at present we are going to see. how we get on yet yeah deficient eddie bot is. lower than the weather. and is not operating right now so how. is everybody in the chat appear. uh say hello within the chat it is um marvelous to. see what you have all been as much as today i. desire youve a very good week it is the. weekend meaning plenty of open source. and weve uh prathamesh has already. first on the mercy red become moment carl. turned into 1. well i used to be moment but you recognize i do not. count number um. sassy adithya magnificent to have you all. right here lily. jason long term no see jason karuna how. you doing karine i hope you are well. mikey long time i am hoping work is. going good you are not operating too hard. felix awesome to have you ever all right here do. say hello. to each other and okay it truly is. collaboration not only with me yet. between each other grow your network and.
We can all study from each other. so thats awesome uh ok. and and uh sure we need um. eddie bot or alex alex js and ii think in. the chat so people do not say hiya men so. much. um so sure magnificent to have you right here lets. get started so. um actually you recognize what before we. wager coding i want to begin thiis right. from scratch. youll find ive got my terminal right here. ive like done not anything we will do. everything from scratch. uh permit me um say hi to carl who is on. radio eddie and carl can provide themselves. a shout out perhaps talk about the various. matters theyve been constructing. at the api for our neighborhood is going to. underpin. our live flow style of you recognize live. map where all your locations are which. we had a prototype earlier than. and likewise the discord bot so carl the way you. doing hows your week been. i am blissful to have weekend now uh i am.
high-quality. magnificent correctly allow me carry um discord. over right here so everyone could also see that. in addition at the live circulate. cool certain the weekend is here thats good. so i am hoping you are gonna have a ruin and. you have executed a large number of coding on our api. um this weekend but i hope you are gonna. so this week i am hoping you may have a destroy. besides. oh i its aactually relatively uh relaxing i. savor. coding um for this task awesome. thank you okay that sounds cool so i. desire to get started so my. my first proposal and i am maybe going. to make some mistakes yet. um you know i am i am confident between. every body we will determine it out. i will move into my repos listing. wherein i create all my repos. and really let me also drop. um carls github in the chat. or cross give carl um a follow. carl has no followers on github i will. be the 1st and with any luck youll get.
some more as well. okay so it is how well do it. i think first thing that i ought to. might be do first. is create an sjs project so lets examine. how this goes. an sjs documentation well place to begin. um i have had to play with lots of. little bits in sjs. and as our apa evolves i have been . learning plenty approximately variety of guards and. middleware and all the rest. i like it how i needed to play with. websockets how you can get his stay chat. operating genuinely soon. and theyve really thought about this. framework its all constructed on express so. its kind of maybe constructing on one. what all of you recognize already so do have. a look into this i am very very inspired. with it. so first steps its probably a great. region to begin set up it globally. i believe i might be got it create new. task. hmm create new assignment ill simply create.
A new assignment for now. i have to add it to an present one to. get it deployed yet we are able to fear approximately. that. later so allow me create a new task. what should we name it. uh i will just name it discord bot um. okay it is new lets move wait a few. seconds. npm or yarn lets select npm i like. vanilla keep everything vanilla as. possible. um lets have a look uh. koalaa happy hubbers convinced precisely happy. hub become all. and uh adithya um why unhappy . im hoping i suggested your call right have. you no longer unhappy because i reported your. name wrong. lets uh lets have a look at everyone watching. dont forget provide this video a thumbs up. surely enables uh assist the chat. lets put the chat weve support. channel that isnt a great start. ok we do the failing sounds must be. a failing sound but persons on radio edit. you cant hear it.
Uh lets have a look um. okay uh okay so it is created i believe. we are good so now we have created lets i. always do i always head into the assignment. so we pass into discord bots. after which i always open um the vs code. right 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 way bigger there we move. you all realise bs code im sure ok. so what. subsequent lets have a look she created it. okay so now i want to truly possibly. bounce. immediately to the um. uh the what do you call it the kit. that were gonna use for an sjs. to create discord so it says. setting up we have to. install these two things and weve used. discord js earlier than. so the sole additional sort of new one. to us is the. nest js version so lets take a look so. lets simply install that. npm install lets cross so to this point its been.
All a duplicate and paste. lets have a look um. oh what we received in the within the chat um. fans incidentally awesome thank. you much that is marvelous lets get. lets examine if we are able to get carl to 10. fans today. thank you oh i see thats why karuna. thank you a lot right i i am not the. the sharpest toy in within the within the field as. the expression says yet queen is saying. convinced uh adithya probably sad due to the fact no. followers. i agree i used to be sad too lets see if we. can get double figures. marvelous okay so now weve established that. lets examine what subsequent. i am already stuck no i am jokking um okay. so subsequent is announcing weve got i will have a. token i will seize a token that ive got. earlier than. im able to seize these types of ids ok. awesome lets just get. whats up global operating and spot if we will. see that appear in in discord. so instance of creating a dynamic module.
With config i guess it has different. ways to do this uh carl did you know what. the adaptation is between these. different ways so you have got. 4 routes after which you have got 4. direction async so async i am guessing it is. gonna try to retain loading up the. task whilst this happens within the . background. so is that extra efficient do you know um. to be honest i did not determine whats. unique. myself um i think if you use um for. route async. you can pass um distinctive prospective customers for. instance when you have. um the token into um in the dot. n dot enb file um you could circulate. you could inject the config carrier when. creating um. the module um. that is the use case i see ok um in my. repo i. did it um with surroundings. variables okay um i did not do it um. the way that i tough coded a token into. the use manufacturing facility technique. um ought to we have a look yet i believe.
Its it is its only a choice. lets have a look and we can actually. exhibit people um which. dossier will be a module. ok yeah so that you allow me have a look yeah. you will need to have the youtube open. um in order to see it its in. in my repo its in a bot folder and then. um thiis called config carrier. discord config oh now not the spec discord. config carrier. received you i see ok and there i. injected um the config prospective buyers the. config service um which reads the. env dossier i see. ok got you ok that appears relatively particularly. clever. okay im gonna attempt to retain it brilliant. top notch easy. um but i cant put it in that dossier yet i. do not ever desire to see on the stay. move all my tokens. so i need to have a thing i should have. proposal this earlier than. what does uh um every person else thinks. um aditya why are so many followers. nonetheless displaying 10 even after such a lot of.
Follows. um it takes time for those numbers to. update i think theyre all strolling on. one-of-a-kind microservices on github so. even if you get lots of fans it. might not take monthly 24 hours to. actually replace to what the simple. numbers are ok so im attempting to assume. ill do that and ii could you still. use the config i can not inject you are. correct i see what you imply i can not inject. the config carrier to get them out as. surroundings variables correct. okay um what you may in all probability do. um i am not quite sure if it works is um. reference. strategy.n directly i am not utilizing the. yeah um the config provider this may paintings. yet. uh now not no hundred percent warrantly yeah. no its good lets try it lets. test. um so we are going to all study whatever new if. it works or if it doesnt. so the um we would do that for now.
Um yet its not something that id. style of dedicate and did and installation yet. something for locally just. for uh facts of suggestion i believe works so. if i go to. the discord its a discord module yet to. the the module. im not gonna um do anything. i think carls assignment is far better. look into that for uh reference. yet i am just doing this for exle 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 completed somewhat of analysis beforehand. right here we cross heres the gateway right okay. so. on all set occasion all set log it okay that. is smart bought you. okay lets have a look in order a standard. developer. i will do quite a few reproduction and paste. so weve module we have imports. um so it is going to be an import um. lets take a look so it is discord and.
Sjs lets replica . that import at the end. ok and then i will grab. this import i think it is. there there we move so. because we wish to preserve the import array. and we paste that in. that appears you recognize not too bad oh no longer. dot. comma every person following along lets. have a look and notice. so um that isnt completely satisfied ok that is simply. the. uh the missing trailing comma. ok amazing the others have it in addition. so actually that is an development persons. can make to the documentation. if you look this ones the the last one. it has a trailing one. um this ones the last one has a. trailing comma but this one would not so. once you replica and paste this you get an. errors. so allow me um proportion this task of. everybody. in um. within the chat and someone can boost an. problem and actually raise a pull request. and so you dont once you copy and paste.
this instance you dont get an blunders. right lets have a take a look um. weve some questions in the chat. lets have a look uh uh aditya. says so many left tabs in vs code. what are these oh those ones down the. side. ah ok good query so. i need to control discord besides. ensure no ones elevating their hands. to to come up. if you do let me know in the chat so um. the tabs okay got file that is the same. as every person elses i believe search the. same. what is converted to the resource code um i. shouldve achieved a devote earlier than i started. making adjustments to this i necessarily do like. an preliminary. kind of devote i might try this now and. then. this one is the debugger then it is the. remote. this one remote explorer i used to be simply code. areas this is for code spaces. it truly is the plugins so i have all my. plugins set up.
Um lenses get lenses which simply offers. you an perception into your. variety of your your project and stuff okay. lenses just acquired removed unsure what. happened there. uh live proportion uh to do studios is really. useful. um when you type of placed i admire this. due to the fact persons simply positioned todos. anywhere. and then neglect that they they happened. and that they go oh well. you recognize but now i can get a listing of all. the todos which have. appeared in the assignment and i can just. go to them instantly. and just go and fix them and remedy them. or if theyre out of date just get rid of. them so i actually that is like one in all my. well known tabs. enormously suggest having that uh this is. azure this is i use this for i. imagine because you can use the azure. provider to hook up with a database. but i do not use that anymore i might. in fact get rid of that may i uninstall it.
Um i can most likely just get rid of that uh. lets have a look at this ones a new one what is. this one. one hundred days of code yeah i dont use. that one a lot anymore either what. else have i got down here docker and. code time and mongodb. i maybe have got to type that up um. there is a lot there that i dont. actually use. so thanks for placing it out so i love. everyones questions. uh i havent noticeable these tabs in vs code. uh. i work with yeah i have further them on and. i might be dont desire all of them. but let me know which ones you will use. out of these probably not too many. live code percentage is really helpful lets. uh. lets have a look um. what is the cause of utilizing typescript. with nest uh nest by default. uses typescript and typescript is simply. freaking awesome ask nick. when nick arrives presently youll see. that typescript is awesome.
Um lets have a look okay so i want to. do actually ill undo this for a. second i am simply going to style of. so let me do an undo and it is usually a. good idea. undo that after which im going to put it aside. and iim going to do a dedicate so if i do. if i clean my console. and i do a standing i have all of these. i feel theyre all secure to devote im. simply checking. theyre so lets do um a get ad we are going to. add them all so now it will likely be. we are going to do a listing back you may you could. see all those i do know what a number of you. are announcing you are asserting eddie. why are you now not utilizing uh vs code to do. this im in order that used to the command. line for doing this. uh okay after which i am gonna do a dedicate. so i am gonna say initial nest commit or. whatever like that. so um after which feature preliminary. nest js task just so i know that if i. mess anything up i will just revert lower back.
To this so ive dedicated i do not even. ought to push it. its committed and that i want to redo what i. had right here. um there we go so i have reddone what i have. came so i have this again again. okay so those tokens obviously dont. paintings. what well attempt to do is as. carl suggested and simply use the process. um after which i am gonna im able to take my. terminal. off the display screen 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 okay and. allowed instructions and and so forth is. fine web hooks i dont believe wed like do. we need information superhighway hook identification and token i do not. assume we do. i may well be incorrect i think the only. necessary um homes 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 well no problem we will try it.
So i desire to use an additional command to. every little thing else so that we all know were. just concentrating on this spot. i desire to use percent which is not. whatever we might use if and when we install. it. but um lets uh lets have a look. oh what is an sjs ok fantastic question so. thank you a great deal for the the question. uh elusive code. so the question is the question is um. let me bring up your query on the. display screen i ought to in fact get more um. organized at this i get over excited. with coding. etc so here we move good query if. ive. neglected any questions i am over here so. i am nonetheless right here. if i have ignored any questions you only. variety of wait a couple of minutes and copy and. paste it back in. so next js i need to describe this. in fact it is built on top of. um show and its. used for build its a frame of establishing. apis and its stimulated.
via angular dont run away and get scared. but which angler was prompted by like. style of spring. so its surely kind of that framework. mentality it is very nice you have got a. lot of tools there prepared for you. http client you are able to do which you desire um. internet sockets you would like guards you should. protect youll want to sure. middleware its its got a great number of it. built you wish a logger as i learned. the day past with carl. when we have been talking about this you need. a logger its got a vanilla one inbuilt. sure you could add extra to it and. customise it but its got a good. starting point for for every thing so. that is a. genuinely fabulous question i hope i. didnt pass over any others i am trying to. have a skip and take a look um. pr discord.js you can check here despatched thanks . oh magnificent nice okay. so that you sent a pr to that project. and merits a shout out that is a eco-friendly.
Square for you and uh. thanks so much for doing that thats. marvelous. since you know i saw it as one of those. squiggly line and ii thought right i do 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 if someone copies and paste that. like i did the instance. code into their assignment and they see. this underline or they run the task. and it fails. they go oh it does not work they dont. realise that anything. um is to anything simple they wont. comprehend if theyre new to. that kind of project or maybe new to node. and pritier and linto and all remainder. so i think the exles should be. bulletproof and should. work so convinced whatever like that. obviously send in a fix is really. certainly significant. have you ever found out new javascript.
Libraries fastly i havent looked at. fastly yet i have heard people you recognize. talking a couple of lot. what issue became to be raised in the repo. i believe it got raised already. i believe so uh aditya beat you to it. adithya sorry my bad theres a. uh its very very small on my on my. display down there but there is an additional. letter. um i havent any project okay son. kara. really wants me to respond so before we. get into the coding allow me. examine this question all of you. be at liberty to reply in addition. it is amazing for every person to have. distinctive perspectives i havent any. tasks achieved till now yet i do know html. css js python. and also have no git repos to do. please inform me what to do. create a git repo i am sure you have got. these apart tasks create them share . them on github and join us on discord. and you may simply variety of snowball from.
There. its uh you only bought type of you cannot. exercise routine on the gymnasium. if you havent sort of long gone to the fitness center. so visit the fitness center after which. try any workout after which you will youll. you will find much more exercises on the. gym that youll do in machines that you. can use. um and uh dtr says already spoke back so. with a bit of luck that facilitates i love seeing. specific. peoples views okay eddie enough. talking lets try to do some coding. um correct so this one we are able to say it is. technique dot n dot. permit me see what i call it in any other. assignment simply. so i cant i wont oh do not mean to. vicinity that what am i doing. um i am gonna open a terminal over here. simply so i will get the token yet nobody. check out the other terminal. you cant its aanother display screen i am secure i. imagine im well. uh and permit me just get the the call of. the token so.
hopefully it ought to be exceptional. lets take a look um you know what i. could do i could start ive got. a simpler suggestion i understand how to get this to. work ok every person bear with me. dont fret all is nice were we can. paintings it out between us. so if we pass um. lets take a look right so i have a. exquisite thought i desire to carry this terminal. over to a different screen and iim going to. begin the task from there. after which the other commands 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 take a look but then i will. within the command when I run it like i said. its aan environment variable so lets. have a look. lets do it so to start the project i. must have all started the task correctly. earlier than i. even placed this in actually theres. another thing i should do so what i. might actually do is undo all that again.
And again human we should assess the. task works before. we try to customize this its lower back. to what we had earlier than. and lets begin run the project so if we. read the documentation. the assignment is probably going to be npm. run begin yet lets. double investigate and spot. what it says first steps set up it it. tells you what. files get created i love the style that. it does it npm run begin. so i can do it at the screen so you could. see we are going to do. npm run start after which within the browser we. must have a hello world api. thats how simple it is to get an api i. have gotten a video on this uh going into. more info i published about a days. ago on wednesday. in which we actually get information from githubs. api and merge it with information that weve got. in the appliance. so thats up and jogging lets go to. localhost or now not local hack day.
i feel 3000 and you will see its very. small um. good day world so we know that works okay. amazing so allow me take this off display. allow me positioned the um token. for discord and lets have a look. um after which with a bit of luck. npm run start. so the project should run back and we. should see. no difference all must be good its up. and strolling you could trust me on this. and so if i reddo this. and the name of this is discord token no. shock there. and you mustnt see it and we arent. utilizing these so lets simply depart those. out. i like vs code typescript all this. amazing stuff. ok so hit keep the task ought to. restart. it didnt i dont know why let me begin. oh no theres a dev mode aha there is a. dev mode for the project. so if i go back to the documentation and. i return to. cli over if you let me check i do. keep in mind seeing.
Uh yeah npm run begin dev so it watches. for changes which is what i must have. executed npm. run start dev. still with the token im fairly sure and. if i go to localhost 3000 back. now not localhag day 3000 remains up and. jogging. you cant see the token thats notable. correct let me make amends for the on the chat. allow me see what i what i neglected. um oh chats going good marvelous i love. it once you all ask questions and chat. among each other its aawesome. uh what did i omit i do not remember. where 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 now not. next js so nest js is an api framework. subsequent js is a framework for the front conclusion. for react. it does have a few style of backing. functions but its very mild contact. i did have a look into that but yeah if.
You want a proper. api i would select an sjs. and you will get up and going for walks as you. noticed literally in mins. yet no trouble ok cool. lets take a look. um. uh sankara i already responded your. query i believe a few folks did. to boot. i used to be a typo that is great ok cool um. good thank you for clarifying okay so weve. obtained this up and running lets see if we. can get hello international operating in. actually in discord so lets see so next. issue we need to do. is weve got this i believe this looks. good i do not its jogging theres no. errors within the console. so the subsequent issue we do is utilization so we. have to create a bot gateway file. ok i imply we are able to do that and copy and. paste that during sounds well. ok um i do know carl has finished it in. precise module thats. a pleasant way of doing it i want to retain it. useless useless simple for at present.
Im simply 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 are able to do a bit of formatting. there we cross ok um. keep that and it may load it lets. have a look. and see. ok so it should oh good ill. upload it theres one more thing i will do uh. the task doesnt comprehend anything about. it but. i must add it to. um to the module exceptionally sure i have missed. that step. lets have a look possibly as a. provider yeah i am attempting to look for the. documentation on it. but theyve sort of overlooked that step. i have all have i overlooked it. let me see usage um yeah so thats the. gateway. it is sensible and you should use the. client decorator ok that is rather. fascinating too theres the way to do. it you can do it for provider. or you can do it with a decorator okay.
Thats good to grasp. um i imply the two appear pleasant and a similar to. me. after which thats for receiving messages. so instantly they are directly to the next. type of discord bot listener so correctly. youre right they havent. theres another improvement to this. assignment allow me share the hyperlink to this. assignment. i believe i shared it already yet i am. going to proportion it a further time um. raise a controversy that and do double determine. that i am. and this is correct but it appears like. when they supply an instance. they dont add it to the module file so. again. you know we can i could have figured. that out yet carls definitely assisting. me that is making it plenty less difficult i. love pair programming. um but you recognize someone is doing this by means of. themselves they could get caught on that. for like three hours. while you recognize about a lines of. clarification or code or exles might.
Simply help them make it a lot simpler this. is why. its so significant for everyones. projects to get other folks to look at. it because. they wont comprehend the certain things. that you comprehend once you make assumptions. so lets take a look so. it truly is bot gateway and we will. upload it to providers weve app. provider which is nothing. that is become car generated by means of gateway. and if i hit enter. lets deliver this up a little bit it. ought to get instantly further at the. suitable. yeah we have at the top so lets hit. save and. the console i ought to be able to um. show you now since the token is hidden. thats good. if it would not get hidden i will be very. upset. but no it i believe its hidden ok and. weve an errors so lets have a look. lets debug all of it collectively. so lets take a look so locations cant. read estate send of undefined.
On on prepared in bot gateway line 23. so lets have a look well ok 23 is. javascript so. we dont have the uh the mapping so. well just uh understand that were. looking for on ready. so on prepared became saying um. ship ok so we cant this does not work. okay have we performed anything wrong or. have we found an additional hassle. um within the project lets have a have a. look. good perhaps i did whatever wrong let me. assess. so when I use this and iits got. a typical in it does it bought imported in. sjs we have all of the imports. distinctly sure i did exactly what they pronounced. ish. i believe it bought the error um i feel um. within the app module where you initialized. um the. discord module and also you didnt provide a. webhook. url and that is why he cant find get he. cannot do get webhook. purchaser and that is why send is undefined. oh i see. okay so if okay good point.
good good observed yet i think you may. simply delete this line i think you dont. want this. that is in case youre using uh web. hooks correct. okay so its done another way i. guess correct its executed. can anybody just get purchaser yeah it can. be carried out we get customers. okay oh yet theres no send on there. okay. good we can see we will see if we can get. a log correct due to the fact it is going to provide. us the user tag. and all the rest so lets simply undo this. for the moment. and return to what we had comment this. out put it aside if i bring up this. its going to reload perfect no blunders this. time. and it does say logged in as eddie bot. so. it works its linked to discord so. perhaps the subsequent element we can do. is get it to listen for a change on a. command. so lets and we are gonna must come. lower back to that because we do desire to send.
Messages to discord still. so lets take a look um okay. create a handler for receiving messages. by the field i like it how its just. broken down into. one-of-a-kind files you do not get those massive. files necessarily issues its all kind. of. looked after for you okay um. lets uh lets take a look so im simply. gonna kind of reproduction and paste this returned. dont do what i do everyone and theyve. referred to as it bot gateway back okay so. theyve put it in an analogous dossier ok so. we can put it in a similar one. because its one more set off its. going to be um. an on command okay lets grab that. put this here what have we acquired so on. command hasnt been imported. we should better simply move import i believe. its appended it up there. nice message does not exist lets see if. it can figure it out. and do an automobile import besides ideal it.
Has carried out. it all appears rather rather joyful so what. we expect. is when it starts. uh whats message come from and it gets. a message so permit me simply examine some . i didnt examine this yet im guessing. begin so that is the command its looking. for im guessing. i believe we should do it on permit me see. what would be what would be an excellent that. i believe i saw on an excellent instance. that might be greater i dont desire to do. on every message i am watching you i did. that i believe once I turned into having a play. with anything once and everyone had. somebody wrote a message the bot become simply. spamming everyone so you will not do this. lets uh. lets have a look at permit me catch up with the chat. when you are having a having a study . band sal are you able to tell your different uh. channels that supply open source content. and guidance. um not to every person touches on it i feel.
Yet nobody certainly makes a speciality of open resource. like myself. so um but i will take a look ask and. discord and we will we are able to. ship you a few a hyperlink within the in the. description less than to the discord channel. and we are able to chat to you and find a few. people yet we are already discovering. some bugs during this in these days so. with any luck someone has raised the problem. that uh what turned into the problem oh sure including. it to. um the module oh but they do add it oh i. neglected it if we look. um providers purchased gateway oh that is. because. definite they did add it previously ok so. they further it earlier than. and that i went immediately on to usage and so. its a bit bizarre including it earlier than yet. the file does not exist. i would have finished it somewhat. otherwise i would done it like a. proper pass. but you know it is it is there i just. assume. i wouldnt add a file bot gateway to the.
Module until i create it i always kind. of create the dossier first i dont know. what persons think um themselves. right within the chat what do you believe. lets have a look predicament raised. um okay cool. yeah deleting yeah do you i believe you. can the problem um. i even i will put a comment allow me permit me. look at the issues and i can say. oh i discovered it so you can not delete it you. can close it i think its. i have upload comma at the end by using jason. awesome and then i think did you close. it already. um yet i could positioned a remark and say oh. i discovered it that it become added up and so. forth. um if thats if that needs to be the. case im glad to. to lower back you up on that because i. endorsed you to elevate it and it became a. bit puzzling the move um. wasnt wasnt remarkable um so ok. and ii wasnt interpreting it when i was. rushing via okay.
Allow me be aware of inform me the issue quantity if. you have uh have. study it reproduction and paste uh is okay as a. developer ill create a assignment via. only replica and paste to create whatever. it is going to be exciting and iimprove my examine. abilties your copy and paste is good to. start with. um yet i believe its important to. understand what you are copying pacing i. imagine when I replica and paste. i just go out it really works and just type of. do it after I once I type it out i. in fact. assume more approximately it so it is a bit no longer. exceptional but i am simply attentive to time. just i desire to keen to get something. operating and to just get. my goal here isnt to actually understand. every thing is to get whatever working. to work out if. if theres something we must always use going. ahead so it is just like a spike so. i am going to cut a large number of corners. to boot i actually have a query for.
Everyone and maybe for carl to boot. who i do know has accomplished nest um js stuff for. um a lot more than me is what about why. is thiis specific to discord bots so. correctly its perhaps now not so much of a. nest question. but what approximately trying out a discord bot. because it it. does cyber web 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 determine the reaction but the. issue with thats after I um. send the data returned the uh checking out. library kind of kills the connection. after which the bot just maintains attempting to. reconnect all the time to the websocket. and so it just gets into this loopy kind. of loop. i wonder if anyones demonstrated any. websockets before because thats necessarily. uh. because its like a fascinating. issue okay in which turned into i. um right what become i doing i used to be doing we.
Had a start that is what we had. execute command start ok i believe. that is it. i believe it is going to run and carl might. recognize greater than me. if you are still around is that um i do. the beginning command iits going to reply. with this lets just provide it a pass so if. i hit keep. should reload logged in as eddie bot. ideal. lets elevate discord lets have a look. um and allow me visit lets go to the bot. chat. and what turned into our uh with a percent i. assume. if i do exactly test nothing should arise. oh you are perhaps behind my head eddie. its in the back of your head. sorry everybody my bad permit me make it uh. deliver it up it is friday. endure with me its friday correctly i make. mistakes like this everyday. so test as youll discover experiment is there and. um. no reply no remark not anything in the. console nothings modified so the bot. hasnt done whatever thats good.
So if i do percent and that turned into our. trigger for our command. test i hope it does nothing returned. nothing there. not anything in the console ok not anything is. good and now if i do. percentage experiment start sorry percentage. begin. i am hoping whatever happens either in. the console log or within the chat. lets have a look at it worked i imply thats how. quick it is to get. an sjs up with an api and a discord bot. i imply that is surprisingly noticeably fast correct. so now we have. execute command percent start so. for that reason we will do. so many other other things hypot. the reason is, correctly i would like um to get. our api up that allows you to get the map. post behind me and as people interact. utilizing. um doing contributions to open source i. desire their profile to appear on the map. from github so i have such a lot of cool. thoughts with that so i perhaps ought to. focus more on.
The api than doing those other things. but the bot. with the bot going down um i want alexa. js up so much because i im simply so. uninterested in every person just announcing whats up guys. its like now not everyones a man here so. um convinced so i am keen to a minimum of get uh. alex js up at the bot and then we are able to i. can get back to the the api however i am. not doing greatly on the api its. most of the time carl. uh okay oh sorry carl we will say. whatever. no no um ok every thing satisfactory ok cool. no dilemma um ok in order that works so i am. pleased with that. and so what something we want to do. in a different way is. we dont desire a command for alexa js. that is something we dont want we do. in fact want a version wide variety. i do like having the the knowing what. versions are running so people can assume. well wheres my characteristic i. submitted a pull request to that um so.
it is uh it is nice to have a version so. what we could. perhaps do i wont get distracted with. that now yet it will likely be good to have a. version command. um yet perhaps i will just difference that to. edition and we cant carry out the. version. but um we will simply remind us to put. that in so now. and that ought to be fine it should have. reloaded excellent. lets deliver alexa alex js not alexa. alex js so wed like that to trigger on. each message. so lets take a look what we will accomplish that. if we go to the docs i did see anything. subscribe to the event. and we want to enroll in each. message and we are not likely to respond yet. we will have a look so. lets have a look if we i need to put in. the same file for now and lets . necessarily. uh separate this out later if you wish. um we need the on. annotation and im not likely 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 amazing oops not intended. to do this. there is aan awesome logging within sjs. yet i am not gonna try this right this moment i am. simply gonna say um. lets log the message so yeah just log. the message. message dot good i didnt see what it. become. it turned into as an instance what its. message dot um. am i able to get the content material of it not author. content here we pass. there we go so should i see it optimistically. within the console log. that should reload lets return to the. bot. long time no see eddie but. uh yeah nest js spot. ok um right i am sorry there you move. see in the console. correct not behind my head is it okay so. thats coming through 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.
Also comes up in the console and its. not just from me. so i want to show evidence to every person. and myself that it is not just

Leave a Reply

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