your individual Discord Bot - Aliases (2021)Whats going men your personal Discord Bot - Aliases (2021)Whats going men Your own



Code your personal Discord Bot - Aliases (2021)
what is going on men welcome back to. one more discord.js academic in state-of-the-art. academic we will be adding. aliases. to our commands in our discord bots if. you do not know what an alias is. google tells me that its a fake or. assumed identification. what this means is as an exle for exle. i create a command. thats play which joins a voice. channel and starts gambling a command. yet as an exle i desire to execute this. very same code. of this command utilizing one more keyword so. in preference to play. i desire to execute this with pl and just. with the aid of doing. this here its going to nonetheless execute. an identical. code as play and its extremely simple. it will be an exceedingly short video yet. before i start i do desire to give. my discord server a short shout out it. has been like four days due to the fact we. formally released. weve over 1000 individuals already.
Come right here if you are. into coding disc or mods it is a. coding community for discord bots. and likewise we do have a little chat region a. little living room region if you guys want to. communicate. to the neighborhood so theres going to be. a hyperlink in description to this discord. server. come forward join so lets go ahead and. get started with the actual. code so like i reported very short video. all youre going to desire is to go to. your message occasion if you are new right here. be sure to watch. the whole event handler video because. we restructured our total entire project. so lets get started right here. in our message event we have a const. command and this is equal to purchaser that. instructions that receives cmd. we will edit this and do an or so. or. it will be purchaser that commands. dot discover we will create a. variable im just going to call the.
Variable a. with an arrow operate a dot aliases. aliases and then and. i am in fact going to repeat aliases and a. dot aliases. that includes and were going to pass. in that cmd another time cmd. is thiis constant up right here thats simply. rx that shift that to a lower case. and truly we are basically achieved. with the message routine. now from right here visit all of your reviews. and well create the aliases up. here. so aliases colon its going to be a listing. and you can start. typing your aliases so for the mc server. were gonna have 3 aliases. one is gonna be mc the subsequent one is going. to be mce. determine and the final one were just gonna. write out minecraft. and ensure you put out the comma at. the top put it aside. shop everything and everything must be. walking fine lets go forward and do note. space dot. there we cross it is online lets go into.
Our discord server attempt strolling. the 1st official call of the command. which turned into mc server so mc server. you can find it is going to say please. input a minecraft ip after which we will. also run. mc it is going to say please input my. kind uh whats the other one thats the. mc. determine after which we also have minecraft. so all of these instructions listed below are. technically going for walks. the exact same code thats this. notwithstanding. you know it is simply its the aliases its. almost like the known as. um instructions here so it technically. all works i can actually do something. like. mcmc.highpixel.internet. 5 five six 5 and there we cross. the body is gonna work. now what in case you wanna use those aliases. as whatever like a side command. so rather than strolling the exact same. code perhaps i desire to have. mc right here run one other code than.
This but still have it in an analogous dossier. here. how you do thats come each of the manner. right here were going to add anything down. here within the execute method. and we are going to call it cmd were. in actual fact passing cmd right here. which is this variable you could add in. any vicinity right here i am just going to feature it. right here in the lads in the middle subsequent. message then come right here into your. command add it besides what you want to. do is copy. all the code and you only desire to cross. forward. and verify for the cmd. so all you do is do if cmd triple equals. two. and the 1st one is usually going to be. the actual leading command so. mc server after which cross ahead and paste in. your code then come all of the way down. right here and then do the subsequent if so. if cmd triple equals to mc which is the. first alias were simply going to console. that log.
And well console the log. saying this isnt. an mc server after which lets do one ultimate. one. which is if cmd triple equals to. uh minecraft and iits going to say. message.channel thats send back you. men can sort whatever you men prefer. right here. its aactually not console.log let me. message that channel. that is send so one can see it at the. server. and for the minecraft you can say we. love. minecraft so using those 3 aliases. we are actually running three one of a kind. instructions. in one command file now technically you. might. do varied instructions and its gonna be. no specific than the particular command. handler that we had earlier than yet with this. new command handler we are actually. organizing everything. so you do wanna have your command you. recognize documents and every little thing organized. it is simply that a good way to have a you.
comprehend another alias with a further. operate. i am just displaying you so lets go ahead. and run this. and now if we do mc. server it is the 1st command so. please enter your minecraft ip. then if we do mc it is going to say this. is not a minecraft server. this isnt a micro server and if we do. minecraft its going to say yay. minecraft we love minecraft. and that is how you really can run. multiple commands in a single command folder. using aliases. usually you just desire to use. aliases as aliases. yet sometimes when you are doing. anything just like the play and leave. command you might want to have them in. an analogous. file so you need to use exactly the same. things so i will use. just like the voice channel and hold. every little thing organized so. that is just about it men i hope you. men enjoyed if you did be sure to.


lousy KPOP DISCORD SERVERS
Welcome gamers before we start this. video i cant strain this enough this. is a case study this video is never. intended to advertise any harassment to. anybody i understand how debatable this may. be I tweeted out Korean pop acquired about. thirty people combating in my goodddamn. require just like the video I made one. year ago called awful furry discord. servers i am trying to infiltrate this. neighborhood and see what its about my god. particularly 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 discover what. its aactually want to be a part of this. community. so please whether youre a kpop stand. or no longer dont pass in harass anyone proven. in this video. oh man Jesus Christ we will begin with. our possess discord account.
My call is mr. kpop scenario 1 I am not. from the kpop community but Im from. another stand neighborhood how pleasant good. those people deal with me okay i am form of. scared Harry Styles girlfriend. you seem so dreamy in this photo i am. gonna juice this one. oh yeah batard all God yet magnificent i am a. Harry fashion supporter now time to work out. how these communities will treat me. knowing i am from a different community. so Im not just gonna become a member of kpop servers. i am also gonna join anime servers see. how persons from the anime servers might. treat me you men ever heard of kpop. Lord overheard or recognize whats kpop. kpop Korean pop it is a genre I desire to. join that neighborhood ok pay attention. right here Harry Styles as someone who got here. from the k12 community I particularly imply. you dont go too deep into the neighborhood. because its a meals i think that is a.
certainly suggest assumption i feel you simply. hate kpop ok pay attention here bucko. do your self one more fight that you you. cannot yourself out i am okay. its aa lot of fourteenyear-old women or. your pal you recognize I dont 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 interval period I do not know what that. means. female friend its the worst welcome. ooh that is on a bot hello i am seeking to. convert ive not ever heard a kpop but i am. searching for associates oh why are they. making enjoyable of me why do you think it fun. of me Dan two times first. why could I stand two times if I recognise. the 1st time is there a rule in which I. have got to stand someone twice and a. 610 mamamoo dan gee thats a car. firm ive by no means heard their tune I. dont know who theyre but what is that this.
It all I do not know what the any of. this suggests I have not ever heard of them. earlier than. does anybody desire a position play as BTS. participants yeah does that a No hear. freeze approved teethers why cannot you. guys whore these persons. idols hiya what she deleted it perhaps. its time for me to leave youre not. gonna continue to be right here though so that you can. find out about kpop i think out of touch cuz. i do not take heed to kpop plenty all people. begins someplace will help you true certain. a large welcome start from hearing. London oil that is a source buddy begin. with one crew yet what you can start. with BTS if you want Im deaf though I. cannot hearken to music what why are they. making exciting of me are you making enjoyable of. me okay Harry Styles is just. knocking throughout the drink how approximately we. begin with that BTS individuals jimin jhope. suga jungkook jin RM okay 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 hello became garyoke with a. karaoke box very well all right lets play a. song i am ready please play me Jung Kooks. no 1 hit what is that I simply desire. to sing a jungkook song just get me a. well song alright ok Im all set ask for. money get recommendation. I spread my funds twice there is a fun. song hello this a study room and i say a. little track good buy junk code like this. ok sorry guys as much as ill assist you I know. my way turned into gonna be later a couple of week. in the past well time these are pitbull eaters. they consume mr. worldwide any bald persons. no that is the worst matters happened to. me tonight now I know how kpop stands. react to other track perhaps some music. even better than kpop now I know how. they react its so unhappy it is time now.
That I have learned all the secrets. through discord and through many her. aisle and mistake are you prepared to take on. the large boss which is Twitter institution. chats so I got a friend to infiltrate me. into numerous Twitter group tracks therefore. will experiment out the community i am setting. the president that kpop stands hate bald. persons we are gonna find out how real. this is. oh dont ask about the Vin Diesels that. say that is a bar fight I dont want to. talk about that this elf in. my mentions with a similar crusty pop. that said seeking pictures you are the. one singing me fancams Im simply. responding o.k. I believe it is a. person homie yeah this individual has been. assisting me infiltrate im not gonna. reveal her name obviously we wont. divulge her secret identification. ought to I ask my friend how do I. introduce myself and that they said hi Im.
name and im from after which your final. bias is your final bias is jungkook. hi Im Sophie and im from usa and. my ultimate bias is jungkook and im. gonna do this white emoji that purely. youngster white ladies use this one certain. and a celeb emoji very thats excellent. what is up Sophie are you going to the. video shop on are they Tori now why did. I know this food its aall over Twitter I. dont stand in even id ok so ive. been off social media a bunch because of. tests and private problems. I saw BTS in Hamilton in 2018 but i want. to purchase my mother this birthday present I. cannot surely have enough money the two oh heres a. controversy reaches over mother and father Eddie. day of the week mum and dad. jungkook gave birth to me okay why did. you upload a further army to a number of the. cakes in right here most people right here Stan. BTS ok so this is a group to begin.
Controversy in now o.k. men. warning okay i do not listen to kpop I. dont know what kpop sounds like but. lets see the reactions to a. debatable opinion okay its the. bomb GBH jungkook has been having. disappointing vocals lately I much. prefer the other kpop members oh wow I. such as you already. what are they talking to me what the do. we love beets definite or no longer what goes. on here you provide off solo stand other halves. woo. so its aactually much better than BTS. though nothing incorrect with solo. stands off did you only name me a . this is sort of a bar combat dude that is. like a goodddamn bar fight no I known as. them why are you getting all up. in my face limo just i used to be ok . you are saying then nevermind this army cannot. study lm foul excuse me protecting you. go back and forth you annoy became literally. protecting you maybe if you knew how to.
study perhaps in case you stand precise talent. sis not my fault your mind win blunders. for or for Sophie apologize i am sorry. that yall do not have a mind shes simply. stand real expertise are you 12. certain yet hes not Im just gonna provide. setting images somebody already left Oh. three spots a fancam I must find a. pitbull fancam thats needless to say okay I. reported various companies in those peoples. case taste thiis sweetie lime foul. justjust-just. ok i have to keep hitting them with. the mr. global images I got to get. extra images do my arsenal of pimple. has to develop better oh oh okay so that you. should not have a touch fight of. Arsenals I see check this out theyre. 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 discontinue sitting middleaged men i am.
No longer involved persons isnt involved. in you pal that is so sad i have been . kicked out of the only organization so if you. make an apology ok i am sorry its only a. board seriously should have done that. i am going to delete my tweets right this moment and this. is when I hit him with the real she runs. to laptop turns on logs onto Twitter. deletes bad excursion hits. clenches fist that is not how a. metal face turns crimson okay so start. sweating pull please dont you choose me. in any case he is carried out ten movies because. its carried out 0 movies literally what is. incorrect with her ok very well discontinue sending. your pictures you know what i am sending. 4 pictures of mr. Vin Diesel were. having battles of pictures of kpop video. victors it is the best thing ever all. right no okay here is Eddie specific. artist good I larger send mine buddy this. is how the real world works very well oh.
This person really went into my DMS to. ship me images of this one artist all. right that is how they need to play lets. play dude i am going to cross all Vin Diesel. all night I dont supply it investigate this. guy the bald head you may simply slap it. man you can just slap it theres an. underground art is that no one whove. ive asked listens to you so far am i able to. please percentage with you men. Sophie please share convinced okay my sister. used to assume Vin Diesel the rocking. persons work good that is a discovering of. this night its real theyre the same. person see what the hell whats the. difference any other cult all started. bashing on me beating my ass and i send. those persons pictures of pitbull and. they do not intellect thanks men and not. getting mad at my bald men pigs thats. outstanding nice you know thiis this changed into a nice. institution wait did i get one kicked no no I.


5 Discord Audio Settings Everyone must know !!
usually after constructing voice meter. or equalizer apo. a number of youve outlined that you have. concerns with. discord and many the days its. in fact related to. settings within discord the audio. settings in discord. usually it defaults to having a few. things. on that actually shouldnt be on or. routinely you guys. cross in there and you forget that you had. grew to become things on like echo cancellation. and whatnot so this is going to be a. speedy video on. what you should have mounted in your. discord audio settings. lets take a look if you find yourself on discord. if you visit the lowest. left in which your call is you may go to. user settings and. less than app settings you will find voice and. video in voice and video youll need. your enter and output gadget. in general as a whole i mean. selecting the default device as your.
enter. and output device in this part as you. can see right here i have in fact manually. selected my. microphone the input device that i would like. on. discord very first thing well take. a investigate is the input sensitivity if. you switch this. enter sensitivity on it is going to. instantly investigate. input sensitivity this is really um in. a sense. a noise gate filter out so if you turn this. off what you spot this is we have a. slider. on the left part of the slider we have a. yellow aspect and on the correct part we. have green. the yellow portion of this meter is. actually. muted audio so if i have been to turn this. down it might set my noise gate down at. unfavorable 75 decibels i want to pass forward. and just maintain this at damaging sixty two. to be. honest with you i have already got a noise. gate filter out inbuilt equalizer apo so i. could might be turn this each of the manner.
Down. and iit wouldnt topic yet on your. guyss sake this is aa great way to dam. out heritage noise from coming in on. your microphone. specifically on discord what you are able to do. is simply monitor the. audio of your microphone devoid of you. talking into it and just block out. every little thing thats taking drugs. at the meter right here usually it is going to. might be sit down right less than unfavourable 60.. keep in mind when you have to go too excessive. your voice would be cutting. in and out of the audio scrolling down. to the advanced section. we have a noise suppression made by this. company referred to as. crisp it suppresses heritage noise. out of your mic this. is in beta that is such as the rtx. voice. ai that got here out recently as you men. recognize. i imply just creating aa legitimate. noise gate clear out and downward expander. to your mic. there isnt any rationale to use the noise.
Suppression within discord. if you just established a proper noise gate. filter out. for your microphone there are. selections to this as well youve. realtime noise suppression that may be. hooked up. as a filter and setup in equalizer apo. youve the reaffir. plugin that i did a video on lately i. will link it. in the description under as an entire this. must always be. off down under voice processing weve. echo cancellation. and noise reduction this is where matters. get. slightly iffy echo cancellation and noise. reduction generally. creates like a warping outcome on the. vocals. often it could cause your your vocals. to get roboticky. and staticky if you are utilizing voicemeeter. and that additional further processing. on top of the already processing thats. being applied by way of. voice meter can cause a few issues there. these two ought to definitely be.
Off normally i do not discover them. necessary to activate. i dont certainly see a time wherein its. necessary. for this stuff as i suggested before just. setting up correct filters for. your mic is a better way of going. approximately this but a lot of people have. issues. with regard with you know like cellphone. settings things like that youll be able to turn. on. um sure audio settings when youre. utilizing your cellphone with discord and that i. could see in some instances in which. this can help computerized reap. control is really up to you its. going to try to gauge. where your audio or in which the quantity of. your microphone goes to hit so it. will either. increase the amount foil or decrease the. quantity for you instantly good quality. service you need to permit this placing. here a good way to have an improved. priority to your discord.
prospective customers over the web some a few. information superhighway vendors may need some . concerns with this or internet people searching for products. might have concerns with this. that again this placing goes to be. as much as you generally having it off is. might be the way to cross. but when you are primary a everyday consumer. of discord i may see. a case in which you might want a more robust. precedence. for discord audio in case you do a large number of. calls or. you recognize youve you do business that. manner um ill see where this may be. beneficial attenuation is really going. to be like a vocal ducking or a side. chaining except for it is anything that. youre going to pay attention yourself. it will decrease the amount of alternative. applications. by way of the proportion that you set when. someone is speaking. so that you can have it attenuate different. quantity degrees from different assets like. your song or browser audio or online game.
Audio. while other people communicate or when you. converse by the settings here. generally i would count on everyone to. have the attenuation. set to 0 due to the fact that is form of a. strange thing to establish for yourself but. in case you have been attracted to what this. setting does that is what it does. it is going to actually lower the quantity of. other resources whilst someone else is. talking or when you are talking. reckoning on the setting that youve. the audio subsystem commonly your. devices will correctly. are compatible concerns with discord a. lot of you guys run into this. difficulty where theres a compatibility. conflict involving this device. and discord itself you may just in no way. seem to get it to paintings. appropriately within discord what you may test. doing is switching the audio subsystem. over from trendy to legacy. or vice versa and that would remedy.
The clash. with the compatibility there the last. section this is voice diagnostics. dont really need to dive into this. really you have 3 settings right here one. for showing. a caution whilst audio is not being. detected from your microphone. you have use the most recent technologies to. capture your display and use an. experimental technique to catch audio. from. purposes overall those are all the. settings that youre going to run into. with discord if you are having an argument. with discord after setting up. voicemeeter. equalizer apo this is an effective video to. visit or if your folks are strolling. into any issues or do not know what to. installed. within the discord voice settings this. video is an effective. video to reference i also desire to ship. you guys over to the equalizer apo video. that i lately did check out the. new preset dossier that ive.
Available within my discord server and. also just take a look at how to establish. all those audio settings to get your. microphone sounding. good thats going to finish this. academic guys i understand it was a brief one. dont worry im gonna be making it up to. you men im working on. redoing the voice beater tutorial so i. desired to knock out some quick video clips in. the meantime. so i had time or a bit of wiggle. room as a long way. as engaged on those videos due to the fact. they are gonna be. big ones and take lots of time in case you. men have any questions. after watching this video you know where. to move my discord server hyperlink is in the. description. less than if you like this video do me a. sturdy hit that like button and subscribe. for more content like this. and iif youre interested in funding this. channel and my discord server.


constructing a Discord Bot utilizing NestJS - let#39s pair program
Ok hello every person weve one minute to. pass i thought lets just start im ready. to move. and im extraordinary excited about in these days um. from sincere review ive had quite a protracted. day its been first rate arent getting me wrong. so i am a bit of style of you know. tired so. i do know youre all gonna help me uh work. in this task collectively and i am really. eager because. eddie bot has been taken offline it had. some limitation i had a quick seem and that i. couldnt recognize what was wrong with. it. so i presumed good eddie bot became just a. prototype i wished to switch it. i did see that nest js which were. constructing our api with has a great. um library that permits you to write. discord bots with it. and but you get the large reward of. an sjs with all the various. hooks and guards and just plenty of. amazing stuff. so i thought itd be really interesting.
To look at that so you are gonna. see me. uh begin it from scratch at present and perhaps. battle. yet dont worry uh carl whos on radio. eddy with me. or aka julian um he has achieved it already. and uh permit me uh allow me increase uh. carls github web page. so you can find kyles lady page a large number of. green squares. recently in the last sort of couple of. weeks that is extraordinary that is amazing. its awesome after which if we scroll. down right here let me make it just a little. larger for you all. if we scroll down here youll see nest. js. discord alex js so kyle has already gone. ahead and done it yet i want to learn. how to do it so i presumed. um i will i am going to begin from scratch and also you. understand we can all do it collectively and dont. neglect we do have. the stargate repo that is already. deployed to kubernetes. and has already received all the tokens for.
Discord so we could possibly get this. deployed at present we will see. how we get on yet yeah deficient eddie bot is. under the elements. and is not operating today so how. is everyone in the chat look. uh say hello in the chat it is um marvelous to. see what you have all been up to at present i. desire youve a great week it is the. weekend meaning various open resource. and weve uh prathamesh has already. first on the mercy purple became moment carl. was 0.33. good i was moment but you recognize i dont. count number um. sassy adithya marvelous to have you all. right here lily. jason long time no see jason karuna how. you doing karine im hoping you are good. mikey long time i am hoping paintings is. going good youre not operating too tough. felix magnificent to have you all here do. say hi. to each other and all right it is. collaboration not just with me yet. between each other develop your network and.
We can all gain knowledge of from each other. so thats magnificent uh ok. and and uh convinced wed like um. eddie bot or alex alex js and ii think in. the chat so people dont say hey guys so. much. um so definite amazing to have you here lets. get started so. um actually you know what earlier than we. bet coding i would like to start thiis right. from scratch. you will discover i have my terminal here. ive like done not anything we will do. every little thing from scratch. uh allow me um say hello to carl whos on. radio eddie and carl can provide themselves. a shout out maybe talk about a few of the. things theyve been building. at the api for our community goes to. underpin. our stay stream form of you know live. map wherein all of your destinations are which. we had a prototype before. and also the discord bot so carl how you. doing hows your week been. i am happy to have weekend now uh im.
high-quality. amazing correctly let me bring um discord. over right here so every person can also see that. to boot on the stay flow. cool definite the weekend is right here thats well. so i am hoping youre gonna have a smash and. youve finished a lot of coding on our api. um this weekend but i am hoping you are gonna. so this week i hope you could have a damage. to boot. oh i its aactually rather uh relaxing i. delight in. coding um for this task amazing. thanks ok that sounds cool so i. desire to get started so my. my first notion and im maybe going. to make some blunders but. um you recognize i am i am confident among. everybody we are able to figure it out. i will go into my repos directory. wherein i create all my repos. and actually let me additionally drop. um carls github within the chat. or pass give carl um a follow. carl has no fans on github ill. be the first and with a bit of luck you will get.
A few extra to boot. okay so it truly is how well do it. i think first thing that i ought to. maybe do first. is create an sjs task so lets have a look at. how this goes. an sjs documentation well place to begin. um i have needed to play with a large number of. little bits in sjs. and as our apa evolves ive been. getting to know plenty about variety of guards and. middleware and all the rest. i like it how i had to play with. websockets how you can get his stay chat. operating really quickly. and theyve genuinely thought of this. framework it is all constructed on convey so. it is a bit possibly constructing on one. what all of you recognize already so do have. a inspect this i am very very inspired. with it. so first steps it is maybe a very good. place to start set up it globally. i feel i possibly acquired it create new. project. hmm create new task ill just create.
a brand new task for now. i need to add it to an existing one to. get it deployed but we will worry about. that. later so allow me create a new assignment. what ought to we call it. uh i will simply name it discord bot um. okay its new lets cross wait a few. seconds. npm or yarn lets go with npm i admire. vanilla retain everything vanilla as. attainable. um lets take a look uh. koalaa happy hubbers yes precisely completely satisfied. hub become all. and uh adithya um why sad. i am hoping i reported your call right have. you no longer sad due to the fact i mentioned your. name incorrect. lets uh lets have a look at every person watching. dont forget supply this video a thumbs up. surely allows uh help the chat. lets placed the chat weve support. channel that isnt a very good start. okay we do the failing sounds ought to be. a failing sound yet people on radio edit. you cannot pay attention it.
Uh lets take a look um. ok uh ok so it is created i think. we are good so now we have created lets i. necessarily do i necessarily head into the task. so we cross into discord bots. after which i always open um the vs code. correct you recognize we all like vs codes. so lets deliver this over here so you can. all see it. and ill make it manner bigger there we move. you all recognise bs code i am certain okay. so what. next lets take a look she created it. okay so now i want to actually perhaps. leap. straight to the um. uh the what do you name it the package. that were gonna use for an sjs. to create discord so it says. installation we need to. install these two matters and we have used. discord js before. so the only extra style of new one. to us is the. nest js version so lets take a look so. lets just set up that. npm set up lets cross so so far it has been.
All a duplicate and paste. lets take a look um. oh what we acquired in the within the chat um. two followers incidentally magnificent thank. you much that is awesome lets get. lets examine if we are able to get carl to 10. followers in these days. thank you oh i see thats why karuna. thank you much correct i im not the. the sharpest toy in within the within the box as. the expression says but queen is saying. definite uh adithya probably unhappy because no. fans. i agree i was sad too lets have a look at if we. can get double figures. amazing ok so now we have installed that. lets examine what next. im already caught no im jokking um okay. so next is saying we have i am going to have a. token im able to grab a token that ive got. earlier than. im able to seize these kind of ids okay. amazing lets just get. good day global working and spot if we will. see that appear in in discord. so exle of creating a dynamic module.
With config i assume it has one of a kind. approaches to do that uh carl did you know what. the variation is between these. alternative ways so you have got. four routes and then you have got 4. route async so async i am guessing its. gonna try to maintain loading up the. task when this occurs within the . history. so is that extra effective do you know um. to be honest i didnt decide what is. unique. myself um i feel if you use um for. route async. you may flow um distinct searching for what you offer for. exle if you have. um the token into um within the dot. n dot enb file um you can circulate. you could inject the config provider while. growing um. the module um. that is the use case i see ok um in my. repo i. did it um with environment. variables okay um i did not do it um. the manner that i hard coded a token into. the use manufacturing facility technique. um should we have a look yet i think.
Its it is its only a choice. lets take a look and we can actually. show persons um which. dossier will be a module. okay yeah so you allow me take a look yeah. you will have to have the youtube open. um in an effort to see it it is 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 provider. obtained you i see okay and there i. injected um the config searching for what you offer the. config service um which reads the. env dossier i see. okay received you ok that appears fairly relatively. sensible. ok im gonna attempt to retain it great. awesome easy. um yet i cant positioned it in that dossier but i. dont ever desire to see on the stay. circulation all my tokens. so i should have something i should have. thought this earlier than. what does uh um everybody else thinks. um aditya why are so many fans. still showing 10 even after so many.
Follows. um it takes time for these numbers to. replace i believe theyre all going for walks on. distinctive microservices on github so. even if you get a large number of followers it. will possibly not take monthly 24 hours to. actually replace to what the functional. numbers are ok so i am attempting to suppose. i may do this and ii could you continue to. use the config i am unable to inject you are. correct i see what you suggest i can not inject. the config provider to get them out as. surroundings variables right. ok um what you could probably do. um im not fairly certain if it works is um. reference. process.n instantly im not utilizing the. yeah um the config provider this may paintings. yet. uh no longer no hundred percentage warrantly yeah. no its well lets test it lets. experiment. um so we will all gain knowledge of whatever new if. it really works or if it doesnt. so the um wed do this for now.
Um but its not something that id. type of dedicate and did and set up yet. anything for domestically simply. for uh proof of idea i think works so. if i go to. the discord it is a discord module yet to. the the module. i am not gonna um do anything. i feel carls project is much better. look into that for uh reference. but i am just doing this as an exle so. lets have a look. whats their bot gateway in addition. can i click on that export bot gateway. um lets take a look. shes completed somewhat of research beforehand. right here we go this is the gateway correct okay. so. on prepared event all set log it okay that. makes sense bought you. ok lets take a look in order a common. developer. i will do various reproduction and paste. so weve got module we have imports. um so it will be an import um. lets take a look so its discord and.
Sjs lets replica . that import at the tip. ok and then im going to grab. this import i think its. there there we pass so. due to the fact we want to keep the import array. and we paste that in. that looks you recognize not too undesirable oh not. dot. comma every person following along lets. take a look and spot. so um that is not happy ok thats just. the. uh the missing trailing comma. ok amazing the others have it besides. so actually that is an improvement persons. could make to the documentation. if you look this ones the the last one. it has a trailing one. um this ones the last one has a. trailing comma yet this one doesnt so. when you replica and paste this you get an. mistakes. so allow me um proportion this assignment of. everybody. in um. in the chat and someone can enhance an. predicament and really boost a pull request. and so you dont once you copy and paste.
this instance you do not get an error. correct lets have a have a look um. we have some questions in the chat. lets take a look uh uh aditya. says such a lot of left tabs in vs code. what are these oh those ones down the. facet. ah okay good query so. i must keep watch over discord in addition. make sure no ones elevating their hands. to to arise. in case you do let me know in the chat so um. the tabs ok bought dossier thats the equal. as every person elses i believe seek the. identical. whats changed to the resource code um i. shouldve accomplished a devote earlier than i started. making changes to this i always do like. an preliminary. type of commit id do this now and. then. this one is the debugger then its the. distant. this one distant explorer i was simply code. spaces it is for code spaces. that is the plugins so ive all my. plugins mounted.
Um lenses get lenses which simply gives. you an insight into your. sort of your your project and stuff okay. lenses just acquired removed not sure what. happened there. uh stay share uh to do studios is really. beneficial. um once you type of positioned i love this. due to the fact people just put todos. anywhere. after which neglect that they they occurred. and that they go oh well. you recognize yet now i can get a catalogue of all. the todos which have. looked within the assignment and i can just. go to them right away. and simply pass and fasten them and remedy them. or if theyre obsolete simply eliminate. them so i actually thats like certainly one of my. sought after tabs. highly recommend having that uh it is. azure thats i use this for i. imagine due to the fact you can use the azure. service to connect to a database. yet i do not use that anymore id. actually get rid of that can i uninstall it.
Um i can probably just eliminate that uh. lets examine this ones a brand new one whats. this one. a hundred days of code yeah i dont use. that one much anymore both what. else have i got down right here docker and. code time and mongodb. i possibly need to sort that up um. theres a lot there that i dont. actually use. so thank you for putting it out so i love. everyones questions. uh i have never seen those tabs in vs code. uh. i work with yeah ive added them on and. i possibly dont want them all. yet permit me recognize which ones you would use. out of those not really too many. live code share is recommended lets. uh. lets have a look um. whats the reason for using typescript. with nest uh nest through default. makes use of typescript and typescript is simply. freaking amazing ask nick. while nick arrives almost immediately you will see. that typescript is awesome.
Um lets have a look ok so i desire to. do correctly ill undo this for a. moment i am simply going to form of. so allow me do an undo and its always a. well suggestion. undo that after which i will save it. and iim going to do a devote so if i do. if i clean my console. and i do a status i have all of these. i believe theyre all safe to dedicate im. simply checking. they are so lets do um a get ad well. add them all so now it will be. we will do a listing back you could you could. see all those i do know what a number of you. are saying you are asserting eddie. why are you now not utilizing uh vs code to do. this i am in order that used to the command. line for doing this. uh ok after which im gonna do a commit. so i am gonna say preliminary nest dedicate or. whatever like that. so um after which function initial. nest js task just so i do know that if i. mess anything up im able to just revert again.
To this so i have committed i do not even. need to push it. it is committed and that i desire to redo what i. had right here. um there we go so ive reddone what i have. got here so ive got this back returned. ok so those tokens obviously do not. paintings. what were going to try to do is as. carl recommended and just use the method. um after which i am gonna i can take my. terminal. off the display temporarily and set the. surroundings variables for the tokens and. then carry it back. so uh lets examine i believe the guilds enable. and deny is fine and. allowed instructions and and so forth is. best information superhighway hooks i dont believe we need do. we want internet hook id and token i dont. imagine we do. i may be incorrect i feel the sole. necessary um houses are token and. command prefix. the rest uh is ok lets. uh remark all of these out if i. remember in fact. that sounds good no drawback well attempt it.
So i want to use a further command to. every thing else in order that we know we are. just targeting this spot. i desire to use percent which isnt. whatever we would use if and when we set up. it. yet um lets uh lets have a look. oh what is an sjs ok splendid query so. thanks greatly for the the question. uh elusive code. so the question is the question is um. let me raise your query at the. display i ought to actually get extra um. prepared at this i get over excited. with coding. and so on so right here we pass well question if. ive. overlooked any questions im over here so. i am nonetheless here. if ive ignored any questions you just. style of wait a couple of minutes and copy and. paste it returned in. so subsequent js i would like to explain this. correctly it is built on top of. um convey and its. used for construct its a frame of building. apis and its encouraged.
by way of angular do not run away and get scared. but which angler changed into encouraged with the aid of like. sort of spring. so its certainly type of that framework. mentality it is very nice youve got a. lot of tools there all set for you. http client you are able to do that you want um. internet sockets you wish guards you should. protect its worthwhile to sure. middleware it is it has got various it. built you wish a logger as i discovered. the previous day with carl. once we have been talking approximately this you need. a logger its got a vanilla one built in. definite you can upload extra to it and. customize it yet its got a superb. starting point for for every little thing so. that is a. really awesome query im hoping i. didnt miss any others i am trying to. have a skip and take a look um. pr discord.js despatched thanks . oh amazing pleasant ok. so that you despatched a pr to that project. and merits a shout out that is a green.
rectangular for you and uh. thank you much for doing that that is. marvelous. since you know i noticed it as one of those. squiggly line and ii thought right i do know . it is only a comma. and iit is just a comma and ii know plenty. of people say i shouldnt make. contributions that are just aa space or a. comma. but when someone copies and paste that. like i did the exle. code into their task and that they see. this underline or they run the project. and it fails. they move oh it would not paintings they do not. realize that something. um is to whatever simple they might not. realize if theyre new to. that kind of assignment or maybe new to node. and pritier and linto and all the rest. so i think the exles ought to be. bulletproof and may. paintings so yes anything like that. obviously send in a repair is actually. really significant. have you discovered new javascript.
Libraries fastly i havent looked at. fastly but i have heard persons you recognize. talking about a lot. what issue was to be raised in the repo. i think it acquired raised already. i feel so uh aditya beat you to it. adithya sorry my undesirable theres a. uh its very very small on my on my. display down there yet there is an extra. letter. um i have no assignment ok son. kara. really wants me to respond so earlier than we. get into the coding allow me. have a look at this question all of you. feel free to reply to boot. its terrific for everyone to have. different perspectives i have no. initiatives done till now yet i do know html. css js python. and likewise havent any git repos to do. please inform me what to do. create a git repo i am certain you have got. those apart projects create them proportion. them on github and join us on discord. and you may just style of snowball from.
There. it is uh you only acquired sort of you can not. exercise session on the fitness center. if you havent variety of long past to the gymnasium. so visit the gym after which. test any workout and then youll youll. you will find much more routines on the. gym that youll do in machines which you. can use. um and uh dtr says already replied so. with any luck that helps i like seeing. specific. peoples views ok eddie sufficient. speaking lets try and do a little coding. um right so this one we will say its. process dot n dot. allow me see what i call it in the other. assignment just. so i cant i will not oh do not suggest to. vicinity that what am i doing. um im gonna open a terminal over here. just so im able to get the token but no one. inspect any other terminal. you can not its aanother display im secure i. think im good. uh and allow me simply get the the name of. the token so.
with a bit of luck it must be satisfactory. lets take a look um you recognize what i. would do i could start ive got. a less complicated proposal i know how to get this to. paintings okay all people undergo with me. dont worry all is sweet were we will. paintings it out between us. so if we pass um. lets take a look correct so ive got a. extremely good concept i want to bring this terminal. over to a different screen and iim going to. start the task from there. after which any other instructions i run i will. run in vs code. i do know you all like vs code etc. so uh permit me have a look but then im able to. within the command once I run it like i said. its aan environment variable so lets. take a look. lets do it so to begin the task i. must have all started the task correctly. earlier than i. even positioned this in in fact theres. another thing i should accomplish that what i. might correctly do is undo all that again.
And lower back human we should assess the. project works earlier than. we try to customise this it really is back. to what we had before. and lets start run the project so if we. read the documentation. the task is likely to be npm. run start yet lets. double verify and notice. what it says first steps set up it it. tells you what. files get created i admire the fashion that. it does it npm run start. so im able to do it at the display so you can. see we will do. npm run start after which within the browser we. should have a hello world api. that is how simple it is to get an api i. have gotten a video on this uh going into. extra info i posted a couple of 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 walking lets go to. localhost or no longer regional hack day.
I believe 3000 and youll discover its very. small um. whats up global so we know that works ok. marvelous so permit me take this off display screen. let me positioned the um token. for discord and lets have a look. um and then with a bit of luck. npm run begin. so the project ought to run lower back and we. should see. no difference all must be good it is up. and strolling you could trust me on this. and so if i reddo this. and the call of its discord token no. shock there. and you mustnt see it and we arent. using these so lets simply leave these. out. i like vs code typescript all this. magnificent stuff. ok so hit keep the assignment should. restart. it did not i dont know why permit me start. oh no there is a dev mode aha theres a. dev mode for the assignment. so if i return to the documentation and. i return to. cli over if you let me determine i do. keep in mind seeing.
Uh yeah npm run begin dev so it watches. for adjustments thats what i must have. executed npm. run start dev. still with the token i am distinctly sure and. if i visit localhost 3000 returned. no longer localhag day 3000 remains up and. running. you cant see the token that is fantastic. right allow me compensate for the at the chat. let me see what i what i overlooked. um oh chats going well marvelous i like. it once you all ask questions and chat. among each other its aawesome. uh what did i leave out i dont keep in mind. in which i got to uh whats sjs we did. talk about that. uh alicia raised the pr. um thank you for explaining next uh its. ness js sorry now not. subsequent js so nest js is an api framework. next js is a framework for the front end. for react. it does have a few form of backing. features but its totally light touch. i did have a look into that yet yeah if.
you desire a suitable. api i would select an sjs. and you may get up and walking as you. noticed actually in mins. but no challenge okay cool. lets take a look. um. uh sankara i already answered your. question i believe a few people did. to boot. i used to be a typo thats quality okay cool um. good thanks for clarifying ok so we have. got this up and walking lets examine if we. can get whats up world operating in. in fact in discord so lets examine so next. issue we need to do. is weve this i think this looks. good i do not it is going for walks theres no. blunders within the console. so the next factor we do is usage so we. ought to create a bot gateway file. okay i suggest we can do that and duplicate and. paste that during sounds well. ok um i know carl has accomplished it in. genuine module which is. a nice manner of doing it i desire to keep it. useless lifeless easy for in these days.
i am simply attempting to do a spike to see if. going ahead would i check this out write a discord. bot with nestjs. um typescript okay lets take a look. paste it in. we can do just a little formatting. there we move okay um. keep that and it may load it lets. take a look. and notice. okay so it should oh well im going to. upload it theres one thing more i will do uh. the task would not comprehend whatever approximately. it but. i have to upload it to. um to the module highly sure i have neglected. that step. lets have a look probably as a. supplier yeah im trying to look for the. documentation on it. but theyve form of neglected that step. ive all have i neglected it. allow me see utilization um yeah so thats the. gateway. it is smart and you should use the. client decorator ok thats rather. interesting too there is two the right way to do. it you could do it for provider. or you are able to do it with a decorator ok.
Thats good to understand. um i imply both seem pleasant and an identical to. me. and then that is for receiving messages. so straight away theyre directly to the subsequent. variety of discord bot listener so in fact. you are right they havent. theres another development to this. task let me proportion the hyperlink to this. task. i feel i shared it already yet i am. going to proportion it one other time um. raise an issue that and do double assess. that im. and this is correct however it looks like. when they deliver an instance. they do not add it to the module file so. lower back. you recognize we can i may have figured. that out yet carls obviously helping. me which is making it plenty easier i. love pair programming. um but you recognize someone is doing this by means of. themselves they may get caught on that. for like two three hours. while you know a couple of traces of. rationalization or code or exles could.
Simply assist them make it a lot easier this. is why. it is so significant for everyones. tasks to get people to look at. it due to the fact. they wont recognize the certain things. that you understand when you make assumptions. so lets have a look so. thats bot gateway and were going to. add it to providers weve got app. service which is nothing. that is become vehicle generated by way of gateway. and if i hit input. lets carry this up just a little it. should get instantly added at the. good. yeah we have at the top so lets hit. shop and. the console i ought to be capable of um. show you now since the token is hidden. that is good. if it does not get hidden i will be very. disillusioned. yet no it i think it is hidden ok and. we have an mistakes so lets take a look. lets debug all of it collectively. so lets take a look so areas cannot. study property send of undefined.
On on all set in bot gateway line 23. so lets take a look good okay 23 is. javascript so. we do not have the uh the mapping so. we are going to simply uh do not forget that we are. seeking on ready. so on ready became asserting um. ship ok so we cant this doesnt paintings. ok have we carried out whatever incorrect or. have we found one more issue. um within the project lets have a have a. look. well perhaps i did anything incorrect permit me. determine. so once I use this and iits got. a standard in it does it bought imported in. sjs weve each of the imports. exceedingly certain i did exactly what they mentioned. ish. i feel it received the mistake um i feel um. in the app module wherein you initialized. um the. discord module and also you didnt supply a. webhook. url and thats why he cant find get he. cant do get webhook. client and that is why send is undefined. oh i see. okay so if okay good point.
good well noticed but i believe you could. simply delete this line i believe you do not. want this. it really is in case youre utilizing uh cyber web. hooks correct. ok so it is performed yet another way i. bet correct it can be completed. can anyone simply get purchaser yeah it could. be achieved we get customers. ok oh but there is no send on there. ok. good we can see we will see if we will get. a log correct because it is going to provide. us the user tag. and all remainder so lets simply undo this. for the moment. and go back to what we had remark this. out put it aside if i raise this. it should reload perfect no errors this. time. and it does say logged in as eddie bot. so. it really works its linked to discord so. perhaps the subsequent issue we can do. is get it to hear for a transformation on a. command. so lets and were gonna ought to come. returned to that because we do want to ship.
Messages to discord still. so lets take a look um ok. create a handler for receiving messages. via the field i like it how its simply. broken down into. one of a kind files you dont get those large. files always issues its all type. of. taken care of for you okay um. lets uh lets have a look so im just. gonna kind of replica and paste this again. do not do what i do everybody and theyve. referred to as it bot gateway lower back ok so. they have put it in a similar dossier okay so. we are able to placed it in a similar one. because its a further set off it is. going to be um. an on command ok lets seize that. put this right here what have we acquired so on. command hasnt been imported. we should better just move import i believe. its appended it up there. nice message would not exist lets see if. it may determine it out. and do an automobile import to boot ideal it.
Has finished. it all seems fairly relatively completely satisfied so what. we expect. is when it begins. uh what is message come from and it gets. a message so permit me simply read a few. i did not examine this yet i am guessing. start so thats the command its seeking. for i am guessing. i believe we should always do it on permit me see. what would be what would be a superb that. i think i noticed on a great instance. that could be greater i dont need to do. on every message i am looking you i did. that i feel when I was having a play. with whatever once and everyone had. someone wrote a message the bot became simply. spamming all people so you wont do this. lets uh. lets have a look at permit me get closer the chat. if you are having a having a examine. band sal can you tell your different uh. channels that deliver open source content material. and education. um to not everyone touches on it i feel.
but no person certainly specializes in open resource. like myself. so um but i am going to have a look ask and. discord and we will we are able to. send you a few a link within the within the . description below to the discord channel. and we are able to chat to you and find a few. other people but we are already discovering. a few bugs during this today so. optimistically someone has raised the difficulty. that uh what was the difficulty oh sure adding. it to. um the module oh but they do add it oh i. overlooked it if we look. um vendors purchased gateway oh thats. because. definite they did upload it previously ok so. they added it earlier than. and that i went instantly directly to usage and so. it is a bit weird adding it earlier than yet. the file doesnt exist. i would have performed it slightly. otherwise id carried out it like a. proper circulate. but you know its it is there i just. assume. i would not add a dossier bot gateway to the.
Module until i create it i necessarily sort. of create the dossier first i do not know. what people think um themselves. correct in the chat what do you believe. lets take a look hindrance raised. um okay cool. yeah deleting yeah do you i think you. can the problem um. i even im able to put a comment let me allow me. examine the failings and i can say. oh i discovered it so you can not delete it you. can near it i feel its. i have add comma at the end by using jason. amazing after which i believe did you close. it already. um yet i could put a comment and say oh. i found it that it become added up and so. forth. um if thats if that should be the. case im happy to. to again you up on that due to the fact i. encouraged you to raise it and it turned into a. bit confusing the flow um. wasnt wasnt top notch um so okay. and ii wasnt studying it whilst i was. rushing by means of ok.
let me be aware of tell me the difficulty range if. youve uh have. read it copy and paste uh is ok as a. developer i will create a project with the aid of. in simple terms replica and paste to create anything. itll be exciting and iimprove my study. talents your copy and paste is sweet to. start with. um but i feel its important to. understand what you are copying pacing i. suppose once I reproduction and paste. i simply exit it really works and just sort of. do it once I after I sort it out i. actually. assume more approximately it so its kind of no longer. terrific yet im just attentive to time. just i want to eager to get whatever. working and to only get. my goal here isnt to actually realise. everything is to get whatever operating. to determine if. if there is something we must always use going. forward so its almost like a spike so. i will reduce loads of corners. besides i actually have a question for.
every person and perhaps for carl to boot. who i know has finished nest um js stuff for. um much more than me is what approximately why. is thiis specific to discord bots so. actually it is maybe no longer a lot of a. nest query. yet what about testing a discord bot. since it it. does cyber web sockets so id have attempted in. the beyond to mock out the websocket. and send the info that i desire to the bot. so that. um i can check the response however the. limitation with that is when I um. ship the info returned the uh checking out. library form of kills the connection. and then the bot simply keeps trying to. reconnect all the time to the websocket. and so it simply receives into this crazy kind. of loop. i wonder if anyones verified any. websockets earlier than due to the fact thats necessarily. uh. because its like an attractive. difficulty ok in which become i. um correct what became i doing i was doing we.
Had a start that is what we had. execute command start okay i feel. that is it. i believe it is going to run and carl could. be aware of greater than me. if youre still round is that um i do. the start command iits going to respond. with this lets simply provide it a go so if. i hit save. should reload logged in as eddie bot. ideal. lets elevate discord lets take a look. um and allow me go to lets visit the bot. chat. and what turned into our uh with a percent i. suppose. if i do exactly test nothing should come up. oh you are perhaps at the back of my head eddie. it is behind your head. sorry every person my undesirable permit me make it uh. deliver it up it is friday. undergo with me it is friday in fact i make. mistakes like this day-to-day. so test as you will find test is there and. um. no reply no remark not anything within the . console nothings modified so the bot. hasnt achieved whatever that is well.
So if i do percentage and that changed into our. trigger for our command. experiment i hope it does nothing lower back. not anything there. nothing within the console okay nothing is. well and now if i do. percentage test begin sorry percent. start. i hope whatever occurs both in. the console log or in the chat. lets examine it labored i mean that is how. speedy its to get. an sjs up with an api and a discord bot. i mean that is notably pretty speedy correct. so now we have. execute command percent begin so. hence we can do. so many other other things hypot. for the reason that in fact i want um to get. our api up so that it will get the map. submit behind me and as people 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. ideas with that so i possibly ought to. cognizance more on.
The api than doing these other things. but the bot. with the bot happening um i want alexa. js up much due to the fact i i am in order that . uninterested in every person just asserting hiya men. its like now not everyones a man here so. um certain so im eager to a minimum of get uh. alex js up at the bot and then we are able to i. can come back to the the api youngsters im. no longer doing very much at the api it is. more often than not carl. uh okay oh sorry carl we will say. whatever. no no um okay every thing exceptional ok cool. no difficulty um okay in order that works so i am. pleased with that. and so what something we wish to do. otherwise is. we dont want a command for alexa js. that is some thing we dont desire we do. in fact desire a edition quantity. i do like having the the understanding what. versions are jogging so persons can think. well wheres my characteristic i. submitted a pull request to that um so.
it is uh it is sweet to have a edition so. what lets . probably do i will not get distracted with. that now but it will likely be good to have a. edition command. um but maybe ill just difference that to. version and we will not convey out the. edition. yet um we are able to simply remind us to place. that in so now. and that ought to be exceptional it should have. reloaded ideal. lets carry alexa alex js not alexa. alex js so we want that to trigger on. every message. so lets take a look what we are able to accomplish that. if we visit the docs i did see something. join the development. and we wish to subscribe to each. message and we are not likely to reply yet. we are able to have a look so. lets take a look if we i would like to put in. a similar file for now and lets . always. uh separate this out later if you want . um we want the on. annotation and im unlikely to respond.
But if it is not the bot lets do a. console log um. just so as to see within the log console. and there is an marvelous oops no longer intended. to try this. there is aan awesome logging within sjs. but i am not gonna do that at the moment i am. simply gonna say um. lets log the message so yeah just log. the message. message dot well i didnt see what it. changed into. it became lets say what it is. message dot um. can i get the content material of it not writer. content right here we go. there we move so ought to i see it with a bit of luck. in the console log. that ought to reload lets return to the. bot. long time no see eddie yet. uh yeah nest js spot. ok um correct i am sorry there you cross. see in the console. right no longer at the back of my head is it okay so. thats coming via so we know for. each message. so someone else can write a message in. the in the bot. chat channel and that i desire to see that it.
Also comes up in the console and its. not only from me. so i want to prove evidence to everybody. and myself

Leave a Reply

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