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



Code Your own Discord Bot - Aliases (2021)
what is going on men welcome back to. an extra discord.js academic in ultra-modern. educational well 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 identity. what this suggests is to illustrate to illustrate. i create a command. thats play which joins a voice. channel and starts playing a command. yet for instance i want to execute this. very same code. of this command utilizing a further key-word so. rather than play. i want to execute this with pl and just. by doing. this right here its going to nonetheless execute. an identical. code as play and that is very simple. it will be an exceedingly brief video but. earlier than i get started i do prefer to offer. my discord server a quick shout out it. has been like 4 days due to the fact that we. officially launched. weve over a thousand members already.
Come right here if you are. into coding disc or mods it is a. coding neighborhood for discord bots. and likewise we do have a bit chat region a. little living room location in case you guys desire to. talk. to the neighborhood so theres going to be. a link in description to this discord. server. come ahead join so lets pass ahead and. start with the particular. code so like i pronounced very quick video. all youre going to need is to go to. your message occasion if you are new right here. make sure to watch. the complete occasion handler video because. we restructured our complete entire project. so lets get started here. in our message occasion weve a const. command and this is the same as client that. instructions that gets cmd. were going to edit this and do an or so. or. its going to be purchaser that instructions. dot find were going to create a. variable im simply going to call the.
Variable a. with an arrow function a dot aliases. aliases after which and. im in fact going to copy aliases and a. dot aliases. that includes and were going to flow. in that cmd one other time cmd. is thiis constant up here that is simply. rx that shift that to a decrease case. and truly were basically performed. with the message activities. now from right here visit all your reviews. and we will create the aliases up. here. so aliases colon it will be a catalogue. and you can start. typing your aliases so for the mc server. we are gonna have three aliases. one is gonna be mc the subsequent one is going. to be mce. examine and the final one we are just gonna. write out minecraft. and confirm you place out the comma at. the top reserve it. keep every little thing and every little thing must be. walking nice lets pass forward and do note. space dot. there we move it is on-line lets pass into.
Our discord server test walking. the 1st legit call of the command. which was mc server so mc server. you will discover it will say please. input a minecraft ip after which we will. additionally run. mc it is going to say please enter my. sort uh what is the different one that is the. mc. examine and then we even have minecraft. so all of these instructions listed here are. technically jogging. exactly the same code that is this. however. you know its just it is the aliases its. similar to the known as. um commands right here so it technically. all works i can actually do something. like. mcmc.highpixel.internet. 5 five six five and there we go. the physique is gonna work. now what in case you wanna use those aliases. as something like an aspect command. so in place of walking exactly the same. code perhaps i want to have. mc right here run one other code than.
This but still have it in the same file. right here. how you do it really is come all of the manner. right here were going to add anything down. here within the execute technique. and well call it cmd we are. basically passing cmd here. which is this variable you could upload in. any location right here im simply going to add it. right here in the men in the middle next. message then come here into your. command upload it as well what you need to. do is replica . all the code and you simply desire to go. forward. and examine for the cmd. so all you do is do if cmd triple equals. two. and the first one is usually 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. right here and then do the next if so. if cmd triple equals to mc which is the. first alias were simply going to console. that log.
And were going to console the log. asserting this isnt. an mc server and then lets do one final. one. which is if cmd triple equals to. uh minecraft and iits going to say. message.channel that is send again you. guys can sort whatsoever you men desire. right here. its aactually now not console.log allow me. message that channel. thats ship so that you can see it on the. server. and for the minecraft you may say we. love. minecraft so using these 3 aliases. were correctly jogging three exceptional. instructions. in one command file now technically you. would. do diverse instructions and its gonna be. no extraordinary than the actual command. handler that we had earlier than but with this. new command handler we are literally. organizing every thing. so you do wanna have your command you. be aware of files and every thing organized. it is just that so as to have a you.
be aware of another alias with an extra. operate. im just showing you so lets pass forward. and run this. and now if we do mc. server this is the first command so. please input your minecraft ip. then if we do mc it will say this. isnt a minecraft server. this is not a micro server and if we do. minecraft it is going to say yay. minecraft we adore minecraft. and that is how you truly can run. distinctive instructions in a single command folder. using aliases. typically you just desire to use. aliases as aliases. but generally when youre doing. something like the play and depart. command you might want to have them in. the same. file so you should use exactly the same. matters so i will use. like the voice channel and preserve. every little thing organized so. that is pretty much it men i am hoping you. guys enjoyed if you probably did be sure to.


lousy KPOP DISCORD SERVERS
Welcome players earlier than we start this. video i cant pressure this enough this. is a case examine this video is on no account. meant to advertise any harassment to. anybody i understand how arguable this can. be I tweeted out Korean pop bought approximately. thirty persons fighting in my goodddamn. require like the video I made one. 12 months in the past called awful hairy discord. servers Im trying to infiltrate this. community and see what its about my god. relatively frankly we see it all the time. kpop stands and Twitter reprised. replying with fan cams and that is what. we see at the end of the iceberg yet I. wanted going to be and find out what. its aactually want to be a part of this. community. so please no matter if you are a kpop stand. or not do not pass in harass anyone shown. during this video. oh guy Jesus Christ we will begin with. our own discord account.
My call is mr. kpop situation 1 I am not. from the kpop neighborhood yet Im from. an additional stand neighborhood how pleasant good. those people deal with me ok Im type of. scared Harry patterns female friend. you seem so dreamy during this picture i am. gonna juice this one. oh yeah batard all God yet awesome i am a. Harry style supporter now time to work out. how those communities will deal with me. understanding Im from a further community. so Im not just gonna become a member of kpop servers. i am also gonna become a member of anime servers see. how persons from the anime servers might. deal with me you guys ever heard of kpop. Lord overheard or comprehend what is kpop. kpop Korean pop its a style I desire to. join that neighborhood okay hear. right here Harry Styles as someone who came. from the k12 community I totally imply. you do not go too deep into the neighborhood. because its a food I believe that is a.
surely mean assumption I believe you only. hate kpop ok pay attention here bucko. do yourself a different fight which you you. wont be able to yourself out Im okay. its aa lot of fourteenyear-old women or. your pal 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 interval . yg interval period I do not know what that. skill. female friend its the worst welcome. ooh thats on a bot hello i am trying to. convert ive in no way heard a kpop yet i am. searching for friends oh why are they. making exciting of me why do you think it fun. of me Dan two times first. why might I stand twice if I comprehend. the first time is there a rule where I. ought to stand someone two times and a. 610 mamamoo dan gee thats a car or truck. company ive not ever heard their track I. dont know who they are yet what is that this.
It all I dont know what the any of. this suggests I have never heard of them. before. does anybody need a function play as BTS. participants yeah does that a No pay attention. freeze permitted teethers why cannot you. men whore these people. idols hi there what she deleted it perhaps. its time for me to leave youre not. gonna remain right here though to be able to. learn about kpop i feel out of contact cuz. i do not take heed to kpop plenty all people. starts someplace should help you true yes . a large welcome begin from hearing. London oil thats a source friend start. with one team yet what you can begin. with BTS if you wish i am deaf although I. cant take heed to music what why are they. making exciting of me are you making exciting of. me very well Harry Styles is simply. knocking during the drink how approximately we. start with that BTS participants jimin jhope. suga jungkook jin RM ok jungkook is.
the chosen i have no idea who any of. these are but i thinkin ago with. jungkook who i discovered a kpop server that. hosts karaoke hi there was garyoke with a. karaoke field o.k. very well lets play a. tune Im prepared please play me Jung Kooks. no 1 hit what is that I just favor. to sing a jungkook tune simply get me a. good track alright okay Im ready ask for. funds get recommendation. I unfold my funds twice theres a exciting. tune hi this a classroom and that i say a. little track well purchase junk code like this. ok sorry guys as much as ill help you i do know . my manner became gonna be later a few week. ago good time these are pitbull eaters. they consume mr. international any bald people. no it really is the worst things happened to. me tonight now i understand how kpop stands. react to other song perhaps some song. even better than kpop now I know how. they react it is so sad its time now.
That ive found out all the secrets. by way of discord and during many her. aisle and blunder are you prepared to take on. the big boss thats Twitter group. chats so I got a pal to infiltrate me. into numerous Twitter group tracks as a result. will test out the neighborhood i am setting. the president that kpop stands hate bald. persons we are gonna learn how authentic. it truly is. oh do not ask in regards to the Vin Diesels that. say thats a bar combat I dont need to. talk about that this elf in. my mentions with an analogous crusty pop. that said seeking pictures youre the. one making a song me fancams Im just. responding alright i feel it is a. individual homie yeah this individual has been. assisting me infiltrate I am not gonna. disclose her call obviously we cannot. disclose her mystery identity. ought to I ask my buddy how do I. introduce myself and they reported hi i am.
name and i am from after which your final. bias is your final bias is jungkook. hi i am Sophie and im from usa and. my ultimate bias is jungkook and im. gonna try this white emoji that basically. teenager white women use this one certain. and a celeb emoji very that is perfect. whats up Sophie are you going to the. video store on are they Tori now why did. I know this nutrients its aall over Twitter I. dont stand in even id okay so I have. been off social media a group as a result of. assessments and personal problems. I saw BTS in Hamilton in 2018 yet I need. to purchase my mother this birthday present I. cannot certainly find the money for the two oh heres a. controversy reaches over father and mother Eddie. day of the week mom and dad. jungkook gave beginning to me okay why did. you add one other military to the various. tarts in right here most folks here Stan. BTS okay so this can be a organization to start.
Controversy in now alright men. caution ok I dont hearken to kpop I. do not know what kpop sounds like but. lets see the reactions to a. arguable opinion ok this is the. bomb GBH jungkook has been having. disappointing vocals lately I a lot. favor any other kpop members oh wow I. like you already. what are they talking to me what the do. we like beets certain or now not what is going. on here you deliver off solo stand better halves. woo. so its aactually much better than BTS. although not anything wrong with solo. stands off did you just name me a . this is like a bar combat dude thats. like a goodddamn bar combat no I known as. them why are you getting all up. in my face limo just I was okay whatever. you say then nevermind this army cannot. examine lm foul excuse me protecting you. shuttle you annoy turned into actually. protecting you maybe if you knew the way to.
examine perhaps in case you stand actual talent. sis not my fault your brain win blunders. for or for Sophie ask for forgiveness i am sorry. that yall havent got a brain shes simply. stand genuine talent are you 12. certain yet hes not i am just gonna supply. placing pictures somebody already left Oh. 3 spots a fancam I must find a. pitbull fancam thats of course okay I. said plenty of groups in these peoples. case taste thiis sweetie lime foul. justjust-just. ok i need to retain hitting them with. the mr. international images I got to get. more pictures do my arsenal of pimple. has to grow more suitable oh oh okay so that you. shouldnt have a bit fight of. Arsenals I see examine this out theyre. not gonna assume thiis not one pitbull. pitbulls. oh oh three pit bulls Oh for pit bulls. Oh five pit bulls oh seven pit bulls can. you discontinue sitting middleaged guys Im.
No longer involved persons isnt fascinated. in you friend that is so unhappy i have been . kicked out of the sole institution so if you. apologize ok Im sorry its only a. board seriously must have done that. ill delete my tweets immediately and this. is when I hit him with the true she runs. to computer activates logs onto Twitter. deletes bad tour hits. clenches fist that is not how a. metal face turns crimson okay so start. sweating pull please dont you judge me. anyhow hes performed ten movies due to the fact. its accomplished 0 movies literally whats. incorrect along with her okay very well discontinue sending. your images you know what i am sending. 4 pictures of mr. Vin Diesel were. having battles of pictures of kpop video. victors it truly is the neatest thing ever all. correct no okay here is Eddie exceptional. artist well I higher send mine pal this. is how the real global works o.k. oh.
This individual genuinely went into my DMS to. send me images of this one artist all. correct that is how they need to play lets. play dude I will pass all Vin Diesel. all night time I dont give it check out this. guy the bald head you could simply slap it. guy you can just slap it theres an. underground art is that no one whove. I have requested listens to you to date can i. please percentage with you men. Sophie please percentage sure ok my sister. used to suppose Vin Diesel the rocking. people paintings good that is a discovering of. this night it is real theyre an identical. person see what the hell whats the. difference the other cult started. bashing on me beating my ass and that i send. those people pictures of pitbull and. they do not mind thank you men and not. getting mad at my bald guys pigs thats. awesome pleasant you recognize thiis this became a pleasant. institution wait did i get one kicked no no I.


5 Discord Audio Settings everybody Needs to know !!
in many instances after setting up voice meter. or equalizer apo. some of you have mentioned that youve. issues with. discord and many the times it truly is. actually concerning. settings inside discord the audio. settings in discord. normally it defaults to having a few. things. on that truly should not be on or. many times you guys. move in there and also you overlook which you had. turned matters on like echo cancellation. and whatnot so this is going to be a. quick video on. what you should have established to your. discord audio settings. lets have a look when youre on discord. if you go to the lowest. left wherein your call is you could go to. consumer settings and. under app settings youll find voice and. video in voice and video you will have. your input and output device. commonly as a whole i mean. selecting the default gadget as your.
enter. and output gadget in this area as you. can see right here ive actually manually. selected my. microphone the enter device that i need. on. discord first thing well take. a look into is the input sensitivity if. you switch this. input sensitivity on it is going to. automatically verify. input sensitivity this is really um in. a feeling. a noise gate filter so if you turn this. off what you spot this is we have a. slider. at the left aspect of the slider weve a. yellow part and on the right facet we. have green. the yellow part of this meter is. correctly. muted audio so if i have been to show this. down it might set my noise gate down at. adverse seventy five decibels i desire to go ahead. and just maintain this at unfavourable sixty two. to be. sincere with you i have already got a noise. gate filter out inbuilt equalizer apo so i. could possibly turn this all the way.
Down. and iit wouldnt subject but in your. guyss sake this is aa great way to block. out historical past noise from coming in on. your microphone. specially on discord what you are able to do. is simply track the. audio of your microphone without you. talking into it and just block out. everything that is popping up. on the meter here generally it is going to. maybe sit down correct lower than destructive 60.. keep in mind if you have to go too excessive. your voice would be reducing. out and in of the audio scrolling down. to the advanced part. we have a noise suppression made by this. company called. crisp it suppresses heritage noise. from your mic this. is in beta it is reminiscent of the rtx. voice. ai that got here out recently as you men. know. i imply just creating aa legitimate. noise gate clear out and downward expander. for your mic. theres no cause to use the noise.
Suppression inside discord. if you simply installed a suitable noise gate. clear out. to your microphone there are. choices to this in addition you have. realtime noise suppression that may be. established. as a filter and setup in equalizer apo. you have the reaffir. plugin that i did a video on lately i. will link it. in the description under as a whole this. should always be. off down less than voice processing weve. echo cancellation. and noise discount it truly is wherein matters. get. a bit iffy echo cancellation and noise. reduction generally. creates like a warping outcome on the. vocals. regularly it may cause your your vocals. to get roboticky. and staticky if youre utilizing voicemeeter. and that additional further processing. on top of the already processing thats. being applied via. voice meter could cause some concerns there. these should definitely be.
Off continuously i do not find them. essential to turn on. i dont certainly see a time where its. essential. for these items as i mentioned before just. developing proper filters for. your mic is a higher way of going. about this yet many people have. issues. with regard with you recognize like phone. settings things like that youll turn. on. um certain audio settings if you end up. using your phone with discord and i. could see in some occasions where. this might actually help computerized achieve. manage is actually up to you that is. going to try to gauge. wherein your audio or where the quantity of. your microphone goes to hit so it. will either. increase the amount foil or lower the. quantity for you instantly good quality. service you must permit this putting. right here in order to have a stronger. priority to your discord.
Searching for what you offer over the internet some some . internet providers may need a few. concerns with this or information superhighway searching for what you offer. might have concerns with this. that again this placing is going to be. up to you usually having it off is. perhaps how to cross. but if you are customary a primary person. of discord i may see. a case wherein you might want a more robust. priority. for discord audio in case you do various. calls or. you recognize youve you do enterprise that. way um ill see in which this may be. beneficial attenuation is truly going. to be like a vocal ducking or an aspect. chaining with the exception of its anything that. youre going to listen yourself. its going to lower the volume of alternative. purposes. through the percentage that you set while. someone is talking. so you could have it attenuate different. volume levels from different assets like. your tune or browser audio or game.
Audio. while people communicate or when you. speak via the settings right here. usually i would count on all people to. have the attenuation. set to zero due to the fact thats style of a. strange factor to set up for your self yet. in case you were attracted to what this. setting does that is what it does. it will actually lower the amount of. different resources while some other person is. speaking or if you are speaking. reckoning on the putting that you have. the audio subsystem generally your. gadgets will correctly. fit concerns with discord a. lot of you guys run into this. obstacle in which there is a compatibility. conflict regarding this device. and discord itself you could simply on no account. appear to get it to work. adequately inside discord what you could try out. doing is switching the audio subsystem. over from fashionable to legacy. or vice versa and that would remedy.
The clash. with the compatibility there the last. part this is voice diagnostics. do not really want to dive into this. surely youve 3 settings right here one. for showing. a warning when audio isnt being. detected out of your microphone. youve use the most recent technology to. trap your display and use an. experimental approach to capture audio. from. purposes overall those are all of the. settings that youre going to run into. with discord if you are having an argument. with discord after establishing. voicemeeter. equalizer apo this is an effective video to. go to or if your mates are walking. into any issues or dont know what to. mounted. in the discord voice settings this. video is an effective. video to reference i also want to ship. you men over to the equalizer apo video. that i latterly did check out the. new preset dossier that i have.
Available inside my discord server and. also just take a look at how to set up. all those audio settings to get your. microphone sounding. well thats going to complete this. educational guys i comprehend it changed into a quick one. dont be concerned i am gonna be making it as much as. you men i am working on. redoing the voice beater educational so i. wanted to knock out some quick videos in. the intervening time. so i had time or a little bit of wiggle. room as far. as working on those movies because. they are gonna be. big ones and take plenty of time in case you. guys have any questions. after watching this video you know in which. to go my discord server hyperlink is within the . description. less than if you like this video do me a. good hit that like button and subscribe. for extra content material like this. and iif youre interested in funding this. channel and my discord server.


constructing a Discord Bot utilizing NestJS - let#39s pair software
okay hello all people we have one minute to. move i assumed lets simply begin i am ready. to head. and im great enthusiastic about at present um. from sincere assessment ive had rather an extended. day its been incredible do not get me wrong. so im somewhat variety of you know. worn-out so. i know youre all gonna assist me uh work. on this task together and im fairly. eager because. eddie bot has been taken offline it had. some limitation i had a short look and that i. could not comprehend what become incorrect with. it. so i presumed well eddie bot become just a. prototype i wished to interchange it. i did see that nest js which we are. constructing our api with has an awesome. um library that lets you write. discord bots with it. and but you get the big advantages of. an sjs with all the different. hooks and guards and simply lots of. awesome stuff. so i thought it might be quite fascinating.
to take a look at that so you are gonna. see me. uh start it from scratch today and maybe. wrestle. yet dont worry uh carl who is on radio. eddy with me. or aka julian um he has completed it already. and uh allow me uh allow me bring up uh. carls github page. so you will see that kyles female web page lots of. eco-friendly squares. lately in the last sort of couple of. weeks that is awesome which is marvelous. it is appropriate and then if we scroll. down here permit me make it a little bit. larger for you all. if we scroll down here youll see nest. js. discord alex js so kyle has already gone. forward and finished it yet i want to benefit. how to do it so i thought. um ill ill start from scratch and you. be aware of we are able to all do it collectively and dont. neglect we do have. the stargate repo thats already. deployed to kubernetes. and has already got all the tokens for.
Discord so we might be able to get this. deployed at present well see. how we get on yet yeah deficient eddie bot is. lower than the elements. and isnt operating right this moment so how. is everybody within the chat seem. uh say hi within the chat it is um awesome to. see what you have all been as much as in these days i. hope you have a superb week it is the. weekend that means numerous open resource. and weve uh prathamesh has already. first on the mercy purple become moment carl. changed into 3 . well i used to be moment yet you know i dont. count um. sassy adithya magnificent to have you ever all. right here lily. jason long time no see jason karuna how. you doing karine i hope you are well. mikey long time i am hoping work is. going well you are not working too tough. felix amazing to have you ever all right here do. say hello. to each other and alright its. collaboration not only with me yet. between each other develop your network and.
we are able to all be taught from each other. so thats awesome uh ok. and and uh certain we want um. eddie bot or alex alex js and ii think in. the chat so persons do not say hey men so. a lot. um so convinced awesome to have you ever here lets. get started so. um actually you know what before we. wager coding i want to begin thiis right. from scratch. you can see ive got my terminal right here. ive like done nothing we can do. everything from scratch. uh let me um say hello to carl whos on. radio eddie and carl can provide themselves. a shout out maybe talk about the various. matters theyve been building. at the api for our neighborhood is going to. underpin. our live circulation form of you recognize live. map where all your destinations 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 pleased to have weekend now uh i am.
excellent. amazing correctly permit me convey um discord. over here so every person can also see that. besides at the live circulate. cool sure the weekend is right here that is good. so im hoping youre gonna have a break and. you have performed various coding on our api. um this weekend yet i hope youre gonna. so this week i hope you could have a smash. in addition. oh i its aactually really uh enjoyable i. enjoy. coding um for this assignment magnificent. thanks ok that sounds cool so i. want to get started so my. my first idea and i am probably going. to make some errors yet. um you recognize im i am confident among. every person we can determine it out. i will cross into my repos directory. wherein i create all my repos. and actually allow me also drop. um carls github within the chat. or cross give carl um a comply with. carl has no fans on github ill. be the 1st and with a bit of luck you will get.
A few more to boot. okay so it is how well do it. i think the very first thing that i ought to. probably do first. is create an sjs assignment so lets see. how this goes. an sjs documentation well location to begin. um ive had to play with a number of. little bits in sjs. and as our apa evolves i have been . learning lots approximately sort of guards and. middleware and all the rest. i love it how i needed to play with. websockets how you will get his stay chat. working really quickly. and theyve surely considered this. framework it is all constructed on express so. its a bit probably constructing on one. what all of you know already so do have. a check out this im very very inspired. with it. so first steps its perhaps an outstanding. location to begin set up it globally. i believe i possibly acquired it create new. project. hmm create new project i am going to simply create.
a brand new task for now. i need to add it to an current one to. get it deployed but we are able to worry about. that. later so let me create a brand new project. what ought to we name it. uh ill simply call it discord bot um. ok it is new lets pass wait some . seconds. npm or yarn lets elect npm i love. vanilla keep every thing vanilla as. possible. um lets take a look uh. koalaa happy hubbers certain exactly comfortable. hub was all. and uh adithya um why sad. im hoping i said your name right have. you now not sad because i suggested your. name wrong. lets uh lets see every person watching. do not forget deliver this video a thumbs up. certainly allows uh assist the chat. lets put the chat we have aid. channel thats not a superb begin. ok we do the failing sounds ought to be. a failing sound but persons on radio edit. you wont be able to hear it.
Uh lets take a look um. ok uh okay so its created i feel. were good so now we have created lets i. always do i always head into the assignment. so we go into discord bots. and then i always open um the vs code. right you know we all like vs codes. so lets carry this over right here so you may. all see it. and ill make it way larger there we go. you all recognise bs code im certain ok. so what. subsequent lets take a look she created it. ok so now i want to actually probably. jump. immediately to the um. uh the what do you call it the package. that were gonna use for an sjs. to create discord so it says. setting up we need to. install these matters and weve used. discord js before. so the only extra variety of new one. to us is the. nest js edition so lets have a look so. lets just install that. npm install lets move so thus far its been.
All a replica and paste. lets take a look um. oh what we got within the within the chat um. fans incidentally amazing thank. you a lot thats magnificent lets get. lets examine if we can get carl to ten. followers at present. thanks oh i see that is why karuna. thanks a lot correct i i am not the. the sharpest toy in within the within the field as. the expression says but queen is saying. definite uh adithya perhaps sad because no. followers. i agree i was unhappy too lets see if we. can get double figures. awesome ok so now weve installed that. lets have a look at what next. im already stuck no i am jokking um ok. so subsequent is announcing weve i am going to have a. token im able to seize a token that ive got. earlier than. i will grab most of these ids ok. awesome lets simply get. whats up international operating and notice if we can. see that seem in in discord. so instance of creating a dynamic module.
With config i guess it has exceptional. methods to do that uh carl did you know what. the difference is among those. alternative ways so youve got. four routes and then you have got four. direction async so async im guessing its. gonna try and preserve loading up the. project whilst this happens within the . heritage. so is that more efficient did you know um. to be honest i did not decide what is. extraordinary. myself um i feel if you employ um for. course async. you could circulate um special services for. instance if you have. um the token into um within the dot. n dot enb dossier um you may move. you could inject the config carrier while. developing um. the module um. that is the use case i see okay um in my. repo i. did it um with surroundings. variables ok um i didnt do it um. the way that i tough coded a token into. the use manufacturing facility method. um ought to we take a look yet i feel.
Its it is its only a selection. lets have a look and we can actually. exhibit persons um which. dossier would be a module. ok yeah so you let me have a look yeah. youll have to have the youtube open. um so one can see it its in. in my repo its in a bot folder and then. um thiis called config provider. discord config oh not the spec discord. config provider. received you i see okay and there i. injected um the config prospective buyers the. config carrier um which reads the. env file i see. okay received you ok that appears relatively really. shrewd. ok i am gonna try to maintain it exquisite. tremendous easy. um but i am unable to put it in that file but i. do not ever want to see at the stay. flow all my tokens. so i should have a specific thing i must have. concept this earlier than. what does uh um everyone else thinks. um aditya why are such a lot of fans. still displaying 10 even after so many.
Follows. um it takes time for these numbers to. replace i feel theyre all going for walks on. unique microservices on github so. even if you get a number of followers it. would possibly not take monthly 24 hours to. actually update to what the practical. numbers are ok so im trying to suppose. i could do this and ii could you still. use the config i am unable to inject youre. right i see what you imply i can not inject. the config provider to get them out as. surroundings variables correct. okay um what you can most likely do. um i am not rather certain if it really works is um. reference. method.n immediately i am not utilizing the. yeah um the config carrier this may paintings. yet. uh now not no hundred percent warrantly yeah. no it is good lets try it lets. experiment. um so we are going to all study anything new if. it works or if it does not. so the um we might try this for now.
Um but it is not something that i would. style of devote and did and install but. something for locally simply. for uh proof of inspiration i think works so. if i visit. the discord it is a discord module yet to. the the module. im not gonna um do anything. i feel carls project is far better. check out that for uh reference. but i am just doing this to illustrate 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 research earlier. here we pass this is the gateway correct okay. so. on all set event ready log it okay that. is sensible obtained you. ok lets take a look in order a common. developer. im going to do a lot of copy and paste. so weve module weve got imports. um so its going to be an import um. lets have a look so it is see this discord and.
Sjs lets replica . that import at the end. okay and then ill grab. this import i believe its. there there we go so. because we wish to keep the import array. and we paste that during. that looks you know not too undesirable oh now not. dot. comma everyone following along lets. have a look and notice. so um that is not joyful ok thats simply. the. uh the missing trailing comma. ok awesome the others have it as well. so actually thats an improvement persons. could make to the documentation. if 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 doesnt so. when you replica and paste this you get an. blunders. so permit me um percentage this project of. everyone. in um. in the chat and someone can raise an. dilemma and truly raise a pull request. and so you do not once you reproduction and paste.
this instance you dont get an errors. right lets have a have a look um. weve a few questions in 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. part. ah ok well question so. i need to keep watch over discord besides. be sure no ones raising their palms. to to come up. if you do let me be aware of within the chat so um. the tabs ok acquired file thats the same. as all people elses i believe search the. identical. what is converted to the source code um i. shouldve executed a dedicate earlier than i started. making changes to this i always do like. an initial. style of dedicate id do this now and. then. this one is the debugger then it is the. remote. this one remote explorer i used to be simply code. spaces this is for code spaces. it truly is the plugins so ive all my. plugins set up.
Um lenses get lenses which simply gives. you an perception into your. kind of your your project and stuff okay. lenses simply received removed unsure what. happened there. uh live share uh to do studios is actually. beneficial. um once you variety of positioned i admire this. due to the fact people just positioned todos. anywhere. after which neglect that they they occurred. and that they go oh well. you recognize but now i will get a listing of all. the todos which have. seemed within the project and that i can just. visit them instantaneously. and just go and attach them and clear up them. or if they are obsolete simply get rid of. them so i really that is like certainly one of my. trendy tabs. tremendously recommend having that uh it truly is. azure it really is i use this for i. think because you can use the azure. service to connect with a database. but i do not use that anymore i might. actually get rid of that can i uninstall it.
Um i can probably just get rid of that uh. lets see this ones a brand new one what is. this one. 100 days of code yeah i dont use. that one so much anymore either what. else have i got down here docker and. code time and mongodb. i perhaps have to sort that up um. there is a lot there that i do not. actually use. so thank you for placing it out so i like. everyones questions. uh i have not noticeable those tabs in vs code. uh. i paintings with yeah i have added them on and. i probably dont desire all of them. but permit me comprehend which ones youll use. out of these not likely too many. stay code proportion is advisable lets. uh. lets take a look um. whats the cause of utilizing typescript. with nest uh nest by using default. uses typescript and typescript is just. freaking marvelous ask nick. when nick arrives almost immediately you will see. that typescript is amazing.
Um lets take a look okay so i want to. do in fact im going to undo this for a. moment im just going to type of. so let me do an undo and it is usually a. well thought. undo that after which im going to reserve it. and iim going to do a commit so if i do. if i clear my console. and i do a standing i have all of these. i think theyre all safe to dedicate i am. simply checking. they are so lets do um a get advert we are going to. upload all of them so now it is going to be. well do a listing again you can you could. see all those i do know what a number of you. are asserting youre announcing eddie. why are you no longer using uh vs code to do. this i am simply so used to the command. line for doing this. uh okay after which im gonna do a commit. so im gonna say preliminary nest dedicate or. whatever like that. so um after which characteristic initial. nest js assignment simply so i know that if i. mess whatever up i will just revert back.
To this so ive dedicated i do not even. must push it. it is dedicated and i want to redo what i. had here. um there we go so ive reddone what i have. got here so i have this returned lower back. ok so these tokens obviously do not. work. what well try to do is as. carl recommended and simply use the method. um after which im gonna im able to take my. terminal. off the screen quickly and set the. surroundings variables for the tokens and. then deliver it lower back. so uh lets have a look at i think the guilds permit. and deny is fine and. allowed commands and and so on is. quality information superhighway hooks i dont believe we need do. we need information superhighway hook id and token i dont. assume we do. i could be incorrect i believe the only. essential um properties are token and. command prefix. remainder uh is ok lets. uh comment all of these out if i. remember in fact. that sounds well no drawback well attempt it.
So i desire to use a further command to. every thing else in order that we know we are. simply concentrating on this spot. i desire to use percentage which is not. whatever wed use if and once we installation. it. but um lets uh lets have a look. oh whats an sjs ok amazing query so. thanks a great deal for the the question. uh elusive code. so the question is the question is um. permit me increase your query on the. screen i should actually get extra um. prepared at this i am getting carried away. with coding. etc so right here we go good question if. ive. ignored any questions im over right here so. im nonetheless right here. if ive overlooked any questions you simply. kind of wait a couple of minutes and copy and. paste it returned in. so subsequent js i need to describe this. in fact it is constructed on top of. um show and its. used for build it is a body of building. apis and its influenced.
by way of angular do not run away and get scared. but which angler was prompted through like. kind of spring. so its really variety of that framework. mentality it is very nice you have got a. lot of equipment there all set for you. http client you can do that you need um. information superhighway sockets you would like guards you must. preserve you have to certain. middleware its its got a number of it. built you wish a logger as i learned. the day gone by with carl. once we have been speaking about this you need. a logger its got a vanilla one inbuilt. certain you can add more to it and. customise it yet it has got an excellent. start line for for every little thing so. thats a. certainly brilliant question i am hoping i. didnt miss any others im attempting to. have a skip and have a look um. pr discord.js sent thank you. oh amazing pleasant okay. so that you sent a pr to that project. and merits a shout out thats a eco-friendly.
Square for you and uh. thank you much for doing that that is. amazing. because you comprehend i noticed it as one of those. squiggly line and ii thought right i know. its just a comma. and iit is just a comma and ii know plenty. of people say i shouldnt make. contributions which are just aa space or a. comma. but if someone copies and paste that. like i did the instance. code into their task and they see. this underline or they run the project. and it fails. they move oh it doesnt paintings they dont. understand that something. um is to anything simple they might not. realise if theyre new to. that form of task or maybe new to node. and pritier and linto and all the rest. so i think the exles must be. bulletproof and will. paintings so definite anything like that. obviously send in a repair is truly. really important. have you ever found out new javascript.
Libraries fastly i have never checked out. fastly but i have heard persons you recognize. talking about a lot. what issue become to be raised in the repo. i feel it bought raised already. i feel so uh aditya beat you to it. adithya sorry my bad theres a. uh its very very small on my on my. screen down there yet there is an extra. letter. um i havent any project okay 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 happy to respond besides. it is superb for every person to have. exceptional perspectives i have no. initiatives achieved until now yet i know html. css js python. and also have no git repos to do. please inform me what to do. create a git repo i am certain youve got. those aside initiatives create them proportion. them on github and become a member of us on discord. and you may simply kind of snowball from.
There. it is uh you only received kind of you cannot. exercise routine at the gymnasium. if you havent variety of long past to the fitness center. so visit the gym and then. try any workout after which you will you will. you will find a lot more workouts on the. gym that you can do in machines that you. can use. um and uh dtr says already spoke back so. with a bit of luck that allows i love seeing. distinct. peoples views ok eddie enough. talking lets try and perform a little coding. um right so this one we can say its. strategy dot n dot. permit me see what i call it in the other. project simply. so i can not i wont oh do not suggest to. area that what am i doing. um i am gonna open a terminal over here. in order that im able to get the token yet nobody. look into the other terminal. you cant its aanother screen i am safe i. suppose i am good. uh and let me simply get the the call of. the token so.
with a bit of luck it ought to be pleasant. lets have a look um you recognize what i. could do i could start ive got. a less complicated idea i know how to get this to. work ok every person bear with me. dont be concerned all is sweet we are we will. work it out between us. so if we cross um. lets have a look correct so ive got a. fantastic idea i desire to convey this terminal. over to another display screen and iim going to. start the project from there. and then the other commands i run i am going to. run in vs code. i do know you all like vs code etc. so uh permit me have a look but then i will. in the command after I run it like i pronounced. its aan environment variable so lets. take a look. lets do it so to begin the task i. must have started the assignment actually. before i. even put this in in fact theres. another thing i should do so what i. could correctly do is undo all that again.
And returned human we should examine the. project works earlier than. we try and customise this that is again. to what we had before. and lets begin run the assignment so if we. examine the documentation. the project is likely to be npm. run start but lets. double investigate and notice. what it says first steps install it it. tells you what. files get created i like the fashion that. it does it npm run start. so i will do it on the screen so you could. see we will do. npm run begin and then in the browser we. should have a hiya international api. thats how simple it is to get an api i. have gotten a video in this uh going into. extra details i posted a couple of days. ago on wednesday. wherein we actually get data from githubs. api and merge it with information that weve got. in the application. so thats up and strolling lets go to. localhost or not nearby hack day.
I believe 3000 and you can find its totally. small um. hey world so we know that works okay. magnificent so permit me take this off display screen. permit me put the um token. for discord and lets have a look. um after which optimistically. npm run start. so the project ought to run lower back and we. should see. no difference all must be good it is up. and running you could believe me on this. and so if i reddo this. and the call of this is discord token no. shock there. and you shouldnt see it and we are not. utilizing these so lets simply leave these. out. i like vs code typescript all this. amazing stuff. okay so hit store the assignment ought to. restart. it didnt i do not know why let me begin. oh no theres a dev mode aha theres a. dev mode for the project. so if i go back to the documentation and. i return to. cli over in case you permit me check i do. keep in mind seeing.
Uh yeah npm run start dev so it watches. for adjustments which is what i should have. executed npm. run begin dev. still with the token im enormously 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 extremely good. correct allow me catch up on the at the chat. allow me see what i what i neglected. um oh chats going well magnificent i admire. it when you all ask questions and chat. between each other its aawesome. uh what did i miss i do not remember. where i got to uh what is sjs we did. talk about that. uh alicia raised the pr. um thank you for explaining next uh it is. ness js sorry 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. capabilities yet its very easy touch. i did have a look into that but yeah if.
you desire a proper. api id select an sjs. and you will get up and strolling as you. saw literally in minutes. yet no obstacle ok cool. lets have a look. um. uh sankara i already responded your. query i think some people did. in addition. i used to be a typo thats best okay cool um. good thank you for clarifying ok so weve. got this up and jogging lets see if we. can get hello global working in. correctly in discord so lets examine so subsequent. component we have to do. is weve got this i feel this looks. well i dont its walking there isnt any. mistakes within the console. so the next aspect we do is utilization so we. need to create a bot gateway dossier. ok i suggest we can do this and replica and. paste that during sounds well. ok um i know carl has done it in. actual module which is. a nice way of doing it i desire to retain it. useless lifeless easy for today.
i am simply trying to do a spike to determine if. going forward could i write a discord. bot with nestjs. um typescript ok lets have a look. paste it in. we are able to do a bit of formatting. there we go okay um. keep that and its going to load it lets. take a look. and notice. ok so it should oh well ill. upload it theres one thing more i will do uh. the project doesnt recognize anything approximately. it but. i must upload it to. um to the module exceptionally certain i have missed. that step. lets take a look possibly as a. supplier yeah im attempting to look for the. documentation on it. but theyve sort of missed that step. i have all have i ignored it. permit me see usage um yeah so thats the. gateway. it makes sense and you should use the. purchaser decorator ok thats fairly. fascinating too there is the right way to do. it you can do it for service. or you can do it with a decorator ok.
Thats well to grasp. um i mean the two seem pleasant and an identical to. me. and then that is for receiving messages. so immediately they are directly to the subsequent. variety of discord bot listener so correctly. you are right they havent. theres another improvement to this. task permit me proportion the hyperlink to this. task. i believe i shared it already yet im. going to proportion it a different time um. enhance an issue that and do double check. that im. and this is right however it looks like. once they provide an instance. they dont upload it to the module file so. back. you know we will i could have figured. that out yet carls definitely assisting. me that is making it plenty less difficult i. love pair programming. um yet you know somebody is doing this through. themselves they might get stuck on that. for like two 3 hours. while you recognize a few strains of. rationalization or code or exles might.
just help them make it plenty less complicated this. is why. its so significant for everyones. tasks to get people to look at. it because. they wont be aware of the sure things. which you comprehend once you make assumptions. so lets have a look so. this is bot gateway and were going to. add it to providers we have app. carrier which is nothing. thats became car generated by way of gateway. and if i hit enter. lets carry this up a little bit it. should get immediately added on the. excellent. yeah we have at the top so lets hit. store and. the console i ought to have the ability to um. show you now because the token is hidden. which is well. if it would not get hidden ill be very. disillusioned. yet no it i believe its hidden okay and. weve an error so lets have a look. lets debug all of it collectively. so lets have a look so locations cannot. read property send 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 are going to just uh keep in mind that were. seeking on ready. so on prepared turned into asserting um. send ok so we cant this does not paintings. ok have we finished something incorrect or. have we found one other trouble. um in the assignment lets have a have a. look. good maybe i did anything incorrect allow me. investigate. so when I use this and iits got. a standard in it does it obtained imported in. sjs we have all of the imports. exceptionally sure i did precisely what they mentioned. ish. i believe it obtained the mistake um i believe um. in the app module wherein you initialized. um the. discord module and you didnt provide a. webhook. url and that is why he cannot uncover get he. cannot do get webhook. purchaser and thats why ship is undefined. oh i see. ok so if ok well point.
Well well noticed but i feel you may. just delete this line i believe you do not. desire this. that is in case youre using uh web. hooks correct. okay so it is performed one more manner i. wager correct it is carried out. can anybody just get purchaser yeah it can. be executed we get customers. okay oh but there isnt any ship on there. ok. well we can see we will see if we are able to get. a log right because its going to provide. us the user tag. and all remainder so lets just undo this. for the moment. and go back to what we had comment this. out reserve it if i raise this. it may reload ideal no error this. time. and it does say logged in as eddie bot. so. it works its related to discord so. perhaps the subsequent component we are able to do. is get it to hear for a metamorphosis on a. command. so lets and were gonna have to come. back to that due to the fact we do want to ship.
Messages to discord still. so lets take a look um okay. create a handler for receiving messages. by means of the field i like it how its just. damaged down into. one-of-a-kind documents you do not get these big. documents always problems its all variety. of. looked after for you okay um. lets uh lets have a look so im just. gonna kind of reproduction and paste this again. do not do what i do every person and theyve. called it bot gateway back ok so. theyve put it in the same file okay so. we are able to positioned it in an analogous one. because its an additional trigger it is. going to be um. an on command ok lets grab that. positioned this here what have we received so on. command hasnt been imported. we should better just pass import i believe. its appended it up there. pleasant message would not exist lets examine if. it can figure it out. and do an auto import in addition ideal it.
Has performed. all of it appears rather particularly happy so what. we predict. is when it starts offevolved. uh what is message come from and it gets. a message so permit me just study a few. i didnt examine this but i am guessing. begin so that is the command its seeking. for i am guessing. i think we should do it on allow me see. what would be what will be a very good that. i believe i saw on an outstanding instance. that might be higher i dont want to do. on each message im watching you i did. that i believe after I turned into having a play. with anything once and everybody had. someone wrote a message the bot become simply. spamming all people so you will not try this. lets uh. lets see permit me get closer the chat. when you are having a having a examine. band sal can you tell your other uh. channels that give open source content. and training. um not to all people touches on it i feel.
but no one surely makes a speciality of open resource. like myself. so um but ill have a look ask and. discord and we are able to we will. ship you some a link in the in the. description lower than to the discord channel. and we are able to chat to you and uncover a few. other folks but we are already discovering. a few bugs in this in these days so. optimistically someone has raised the difficulty. that uh what become the problem oh certain adding. it to. um the module oh but they do upload it oh i. neglected it if we look. um providers bought gateway oh thats. due to the fact. yes they did add it formerly ok so. they added it before. and i went directly directly to usage and so. its a bit bizarre including it earlier than but. the file would not exist. id have done it slightly. in a different way i would completed it like a. appropriate flow. but you recognize its it is there i simply. suppose. i would not upload a file bot gateway to the.
Module till i create it i necessarily sort. of create the dossier first i dont know. what people assume um themselves. right within the chat what do you think. lets have a look challenge raised. um okay cool. yeah deleting yeah do you i think you. can the difficulty um. i even im able to positioned a remark let me allow me. take a look at the flaws and i can say. oh i found it so you can not delete it you. can near it i think it is. ive got add comma at the top by way of jason. amazing and then i think did you close up. it already. um yet ill positioned a remark and say oh. i discovered it that it changed into added up and so. forth. um if thats if that needs to be the. case im completely satisfied to. to back you up on that due to the fact i. endorsed you to elevate it and it became a. bit perplexing the flow um. wasnt wasnt terrific um so okay. and ii wasnt examining it when i used to be. speeding via ok.
let me understand inform me the difficulty wide variety if. youve uh have. read it reproduction and paste uh is fine as a. developer i am going to create a task by. basically replica and paste to create something. itll be enjoyable and iimprove my study. abilities your replica and paste is good to. start with. um but i believe you need to. recognize what you are copying pacing i. think after I replica and paste. i simply exit it works and just type of. do it when I after I variety it out i. correctly. assume more about it so its a bit now not. splendid but i am simply responsive to time. just i want to keen to get something. operating and to only get. my goal here isnt to truly understand. every little thing is to get whatever operating. to see if. if there is something we should always use going. ahead so it is the same as a spike so. ill reduce a large number of corners. in addition i also have a question for.
every person and maybe for carl in addition. who i know has accomplished nest um js stuff for. um a lot more than me is what approximately why. is thiis specific to discord bots so. actually it is maybe not a lot of a. nest question. but what approximately checking out a discord bot. since it it. does information superhighway sockets so i would have tried in. the past to mock out the websocket. and send the info that i want to the bot. so that. um i can investigate the reaction but the. drawback with thats once I um. ship the information back the uh checking out. library form of kills the relationship. and then the bot just keeps attempting to. reconnect all the time to the websocket. and so it just receives into this crazy sort. of loop. i wonder if anyones validated any. websockets earlier than due to the fact thats necessarily. uh. because its like an attractive. issue okay where became i. um correct what become i doing i was doing we.
Had a start that is what we had. execute command start okay i feel. thats it. i think its going to run and carl might. know greater than me. if you are still round is that um i do. the start command iits going to reply. with this lets just deliver it a pass so if. i hit shop. ought to reload logged in as eddie bot. perfect. lets increase discord lets have a look. um and let me go to lets go to the bot. chat. and what was our uh with a percent i. suppose. if i do just experiment nothing ought to arise. oh youre possibly behind my head eddie. it is at the back of your head. sorry everyone my bad let me make it uh. carry it up its friday. endure with me its friday correctly i make. mistakes like this day-to-day. so test as you will discover experiment is there and. um. no reply no comment nothing within the . console nothings transformed so the bot. hasnt finished anything thats good.
So if i do percentage and that changed into our. trigger for our command. experiment im hoping it does nothing returned. nothing there. nothing in the console ok not anything is. good and now if i do. percentage test start sorry percentage. begin. i hope something happens both in. the console log or in the chat. lets examine it labored i mean that is how. quick it is to get. an sjs up with an api and a discord bot. i mean thats fantastically extraordinarily rapid right. so now we have. execute command percentage start so. for that reason we will do. so many other other things hypot. the reason is, in fact i want um to get. our api up with a view to get the map. publish in the back of me and as persons work together. utilizing. um doing contributions to open resource i. prefer their profile to seem on the map. from github so i have such a lot of cool. thoughts with that so i probably ought to. awareness extra on.
The api than doing these other things. however the bot. with the bot going down um i want alexa. js up much due to the fact i i am in order that . bored with everybody simply announcing hiya men. it is like no longer everyones a man here so. um convinced so i am eager to a minimum of get uh. alex js up at the bot and then we will i. can get back to the the api besides the fact that children im. now not doing greatly at the api its. mostly carl. uh okay oh sorry carl we will say. anything. no no um ok every little thing quality okay cool. no challenge um ok in order that works so i am. pleased with that. and so what something we want to do. in another way is. we dont desire a command for alexa js. that is one thing we dont desire we do. in fact want a edition number. i do like having the the understanding what. versions are going for walks so persons can imagine. good wheres my feature i. submitted a pull request to that um so.
it is uh it is good to have a version so. what we could. might be do i wont get distracted with. that now yet itll be well to have a. version command. um yet perhaps i will just change that to. edition and we will not bring out the. edition. but um we are able to simply remind us to put. that during so now. and that should be exceptional it must have. reloaded excellent. lets deliver alexa alex js not alexa. alex js so we need that to set off on. every message. so lets have a look what we are able to do so. if we go to the doctors i did see whatever. join the event. and we wish to enroll in each. message and we are not likely to reply yet. we can have a look so. lets have a look if we i want to install. the same file for now and shall we. necessarily. uh separate this out later if you wish. um wed like the on. annotation and i am not likely to respond.
but when it isnt the bot lets do a. console log um. just so that they can see in the log console. and there is an magnificent oops not meant. to do this. there is aan awesome logging within sjs. yet i am not gonna try this today im. just gonna say um. lets log the message so yeah just log. the message. message dot well i did not see what it. became. it was for exle what its. message dot um. can i get the content material of it now not writer. content material here we pass. there we move so ought to i see it hopefully. in the console log. that should reload lets return to the. bot. long term no see eddie yet. uh yeah nest js spot. okay um correct i am sorry there you pass. see in the console. right not behind my head is it ok so. that is coming by way of so we know for. every message. so someone else can write a message in. the within the bot. chat channel and i want to see

Leave a Reply

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