Code your personal Discord Bot - clear Messages (2021)



Code your individual Discord Bot - Aliases (2021)
what is going on men welcome back to. yet another discord.js academic in ultra-modern. educational 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 it is a false or. assumed identification. what this suggests is to illustrate lets say. i create a command. thats play which joins a voice. channel and starts playing a command. yet as an exle i desire to execute this. exact same code. of this command utilizing a different keyword so. instead of play. i want to execute this with pl and just. by means of doing. this here it is going to nonetheless execute. an analogous. code as play and it is very simple. it is going to be an extremely brief video yet. earlier than i get started i do desire to offer. my discord server a quick shout out it. has been like four days considering that we. formally launched. we have over one thousand participants already.
Come right here when you are. into coding disc or mods this can be a. coding neighborhood for discord bots. and likewise we do have a little chat area a. little lounge location in case you men desire to. talk. to the community so there is going to be. a link in description to this discord. server. come ahead become a member of so lets move forward and. start with the actual. code so like i mentioned very quick video. all youre going to need is to visit. your message event if you are new here. make sure to watch. the complete event handler video due to the fact. we restructured our whole overall project. so lets start right here. in our message event we have a const. command and this is the same as client that. instructions that gets cmd. well edit this and do an or so. or. it will be purchaser that instructions. dot uncover well create a. variable i am just going to name the.
Variable a. with an arrow function a dot aliases. aliases after which and. im in fact going to repeat aliases and a. dot aliases. that includes and well pass. in that cmd yet another time cmd. is thiis constant up here that is simply. rx that shift that to a lower case. and really were essentially performed. with the message routine. now from right here visit all your reviews. and well create the aliases up. right here. so aliases colon it will be a list. and you can begin. typing your aliases so for the mc server. were gonna have three aliases. one is gonna be mc the subsequent one is going. to be mce. investigate and the ultimate one were just gonna. write out minecraft. and ensure you place out the comma at. the top reserve it. store every little thing and every little thing ought to be. walking best lets move forward and do note. space dot. there we go it is on line lets move into.
Our discord server attempt running. the first reliable call of the command. which changed into mc server so mc server. you will discover it will say please. enter a minecraft ip and then we can. also run. mc it is going to say please input my. type uh what is the different one that is the. mc. assess and then we even have minecraft. so all of these commands here are. technically strolling. the exact same code that is this. however. you know it is simply its the aliases it is. similar to the known as. um commands right here so it technically. all works i can actually do anything. like. mcmc.highpixel.internet. two 5 five six 5 and there we pass. the physique is gonna work. now what in case you wanna use those aliases. as anything like a facet command. so rather than walking the exact same. code perhaps i desire to have. mc right here run one other code than.
This yet nonetheless have it in a similar file. here. the way you do this is come all the way. here well upload anything down. here in the execute method. and we are going to name it cmd we are. sincerely passing cmd right here. that is this variable you could add in. any place right here i am simply going to feature it. here in the boys in the center subsequent. message then come here into your. command upload it as well what you must. do is reproduction. all of the code and you just want to cross. forward. and investigate for the cmd. so all you do is do if cmd triple equals. two. and the 1st one is often going to be. the actual main command so. mc server and then cross ahead and paste in. your code then come each of the way down. here and then do the next if so. if cmd triple equals to mc thats the. first alias were just going to console. that log.
And well console the log. saying 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 ship lower back you. guys can kind whatever you guys desire. here. its aactually now not console.log allow me. message that channel. that is ship so they can see it at the. server. and for the minecraft you may say we. love. minecraft so using these three aliases. we are actually running three special. commands. in one command dossier now technically you. would. do distinctive instructions and its gonna be. no unique than the particular command. handler that we had before but with this. new command handler we are literally. organizing every little thing. so that you do wanna have your command you. comprehend documents and every little thing organized. its just that to be able to have a you.
comprehend one more alias with a further. operate. i am just showing you so lets cross ahead. and run this. and now if we do mc. server that is the first command so. please enter 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 love minecraft. and that is how you really can run. numerous instructions in a single command folder. using aliases. almost always you just desire to use. aliases as aliases. but in many instances if you are doing. whatever just like the play and go away. command you might want to have them in. the same. file so you should use the exact same. things so i will use. like the voice channel and retain. every little thing prepared so. thats basically it men i am hoping you. guys enjoyed if you did be sure to.


Awful KPOP DISCORD SERVERS
Welcome players before we begin this. video i cannot pressure this sufficient this. is a case research this video is never. intended to promote any harassment to. anyone i understand how debatable this can. be I tweeted out Korean pop received about. thirty people combating in my goodddamn. require just like the video I made one. yr ago called lousy hairy discord. servers i am attempting to infiltrate this. neighborhood and notice what its about my god. fairly frankly we see it forever. kpop stands and Twitter reprised. replying with fan cams and that is what. we see at the tip of the iceberg but I. desired going to be and discover what. its aactually like to be a part of this. community. so please whether youre a kpop stand. or no longer do not move in harass anybody shown. in this video. oh guy Jesus Christ we will begin with. our possess discord account.
My call is mr. kpop scenario 1 im not. from the kpop community but i am from. an additional stand community how pleasant good. those persons deal with me okay Im kind of. scared Harry Styles female friend. you look so dreamy during this image i am. gonna juice this one. oh yeah batard all God but awesome i am a. Harry fashion supporter now time to see. how those communities will treat me. knowing Im from another community. so i am not only gonna join kpop servers. i am also gonna join anime servers see. how people from the anime servers could. treat me you guys ever heard of kpop. Lord overheard or understand whats kpop. kpop Korean pop it is a genre I want to. be part of that community okay listen. here Harry Styles as somebody who got here. from the k12 neighborhood I enormously imply. you do not go too deep into the community. because its a nutrition I believe that is a.
surely suggest assumption i feel you just. hate kpop ok listen right here bucko. do yourself a different combat which you you. can not yourself out Im okay. its aa lot of fourteenyear-old ladies or. your buddy you recognize I dont believe i used to be. girlfriends Audi likeness. Oh whats this oh this is all in Korean. I dont know Korean IG is trash interval . yg period interval I do not know what that. skill. female friend that is the worst welcome. ooh thats on a bot hi Im seeking to. convert I have under no circumstances heard a kpop but Im. looking for associates oh why are they. making exciting of me why do you think it exciting. of me Dan two times first. why might I stand twice if I comprehend. the first time is there a rule in which I. ought to stand someone two times and a. 610 mamamoo dan gee thats a car or truck. enterprise ive not ever heard their track I. do not know who they are but what is this.
It all I dont know what the any of. this suggests I have on no account heard of them. earlier than. does anybody want a function play as BTS. contributors yeah does that a No pay attention. freeze authorized teethers why cant you. men whore these persons. idols Hello what she deleted it perhaps. it is time for me to go away youre not. gonna remain right here although so as to. study kpop i think out of touch cuz. i do not take heed to kpop a lot every person. begins somewhere may also help you authentic certain. a big welcome begin from listening to. London oil that is a source buddy start. with one team yet what you can begin. with BTS if you want Im deaf though I. cannot listen to track what why are they. making exciting of me are you making exciting of. me all right Harry patterns is simply. knocking through the drink how about we. begin with that BTS participants jimin jhope. suga jungkook jin RM okay jungkook is.
The selected i dont know who any of. those are but i thinkin ago with. jungkook who i discovered a kpop server that. hosts karaoke hiya changed into garyoke with a. karaoke box all right very well lets play a. song i am all set please play me Jung Kooks. no 1 hit whats that I simply prefer. to sing a jungkook tune just get me a. well music alright okay Im all set ask for. cash get suggestion. I unfold my funds twice theres a exciting. music hi this a lecture room and i say a. little music well buy junk code like this. ok sorry guys up to I will help you I know. my manner was gonna be later a few week. in the past good time those are pitbull eaters. they consume mr. global any bald people. no that is the worst things occurred to. me tonight now i understand how kpop stands. react to other music maybe some track. even better than kpop now i understand how. they react it truly is so unhappy its time now.
That ive learned all the secrets. by way of discord and during many her. aisle and error are you prepared to take on. the massive boss thats Twitter organization. chats so I got a pal to infiltrate me. into various Twitter organization tracks accordingly. will test out the community i am placing. the president that kpop stands hate bald. persons were gonna learn how true. it is. oh dont ask about the Vin Diesels that. say thats a bar combat I dont need to. discuss that this elf in. my mentions with a similar crusty pop. that said seeking images you are the. one singing me fancams i am just. responding all right I believe this is a. person homie yeah this individual has been. assisting me infiltrate I am not gonna. divulge her call definitely we cant. reveal her mystery identification. should I ask my friend how do I. introduce myself and they stated hello Im.
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 final bias is jungkook and i am. gonna try this white emoji that in basic terms. teen white ladies use this one certain. and a celebrity emoji very thats perfect. 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 I would ok so ive. been off social media a gaggle due to. assessments and private problems. I noticed BTS in Hamilton in 2018 but i would like. to purchase my mom this birthday current I. cant genuinely come up with the money for the two oh heres a. controversy reaches over mum and dad Eddie. day of the week parents. jungkook gave start to me okay why did. you upload yet another army to some of the. cakes in right here most folks here Stan. BTS ok so this is a group to start.
Controversy in now very well men. warning okay i do not take heed to kpop I. have no idea what kpop sounds like yet. lets have a look at the reactions to a. controversial opinion ok thats the. bomb GBH jungkook has been having. disappointing vocals recently I much. want the other kpop contributors oh wow I. like you already. what are they talking to me what the do. we love beets definite or no longer what is going. on here you supply off solo stand other halves. woo. so its aactually far better than BTS. although nothing wrong with solo. stands off did you only name me a . this is like a bar combat dude it truly is. like a goodddamn bar battle no I known as. them why are you getting all up. in my face limo simply I was okay . you assert then nevermind this army cannot. study lm foul excuse me protecting you. shuttle you annoy changed into actually. protecting you maybe if you knew the way to.
study maybe in case you stand genuine expertise. sis not my fault your brain win mistakes. for or for Sophie express regret i am sorry. that yall dont have a mind shes just. stand genuine talent are you 12. sure but he isnt Im just gonna provide. putting images someone already left Oh. 3 spots a fancam I must find a. pitbull fancam that is needless to say okay I. reported loads of agencies in those peoples. case flavor thiis sweetie lime foul. justjust-just. okay i have to keep hitting them with. the mr. worldwide images I got to get. more pictures do my arsenal of pimple. has to develop enhanced oh oh okay so you. do not have a touch combat of. Arsenals I see verify this out theyre. no longer 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 i am.
now not involved people is not interested. in you buddy thats so unhappy Ive been. kicked out of the sole organization so in case you. express regret okay Im sorry it is only a. board heavily must have done that. i am going to delete my tweets in the present day and this. is when I hit him with the true she runs. to computer activates logs onto Twitter. deletes undesirable excursion hits. clenches fist thats not how a. metallic face turns crimson okay so start. sweating pull please dont you judge me. in any case hes completed ten films because. it is done 0 movies actually what is. incorrect together with her okay o.k. stop sending. your images you recognize what i am sending. 4 pictures of mr. Vin Diesel were. having battles of images of kpop video. victors it truly is the best thing ever all. correct no okay here is Eddie one of a kind. artist good I better send mine friend this. is how the genuine global works very well oh.
This person genuinely went into my DMS to. send me images of this one artist all. correct thats how they need to play lets. play dude ill move all Vin Diesel. all night I dont deliver it look at this. man the bald head you could just slap it. guy you may simply slap it theres an. underground art is that no one whove. I have asked listens to you so far am i able to. please share with you guys. Sophie please percentage definite okay my sister. used to assume Vin Diesel the rocking. people work good that is a learning of. this night its true theyre an analogous. person see what the hell what is the. change any other cult began. bashing on me beating my ass and that i send. those people images of pitbull and. they do not mind thanks men and not. getting mad at my bald men pigs thats. top notch pleasant you know thiis this became a pleasant. institution wait did i get one kicked no no I.


5 Discord Audio Settings everybody should recognize !!
frequently after developing voice meter. or equalizer apo. a number of you have mentioned that youve got. concerns with. discord and many the days it is. actually involving. settings within discord the audio. settings in discord. regularly it defaults to having a few. matters. on that actually shouldnt be on or. many times you men. pass in there and you forget that you had. became matters on like echo cancellation. and whatnot so this goes to be a. speedy video on. what you will have established to your. discord audio settings. lets take a look if you end up on discord. in case you visit the lowest. left in which your name is you could go to. consumer settings and. under app settings youll find voice and. video in voice and video youll have. your input and output device. in general as an entire i imply. choosing the default device as your.
enter. and output gadget during this area as you. can see right here ive actually manually. selected my. microphone the input gadget that i would like. on. discord first thing were going to take. a look at is the input sensitivity if. you turn this. input sensitivity on its going to. instantly determine. enter sensitivity this is truly um in. a sense. a noise gate clear out so if you turn this. off what you notice this is we have a. slider. on the left side of the slider we have a. yellow aspect and on the correct facet we. have green. the yellow portion of this meter is. in fact. muted audio so if i were to show this. down it would set my noise gate down at. unfavorable 75 decibels i desire to pass forward. and simply keep this at unfavorable 62. to be. honest with you i already have a noise. gate filter out in-built equalizer apo so i. would might be flip this each of the way.
Down. and iit wouldnt subject but in your. guyss sake this is aa great way to dam. out history noise from coming in on. your microphone. specifically on discord what you can do. is just track the. audio of your microphone without you. speaking into it and simply block out. every little thing thats doping up. at the meter here generally its going to. possibly take a seat correct lower than unfavourable 60.. remember if you have to go too high. your voice will be cutting. in and out of the audio scrolling down. to the advanced part. we have a noise suppression made through this. enterprise called. crisp it suppresses background noise. out of your mic this. is in beta thats such as the rtx. voice. ai that got here out lately as you men. understand. i suggest simply creating aa legitimate. noise gate filter and downward expander. in your mic. theres no purpose to use the noise.
Suppression within discord. if you only installed a suitable noise gate. filter out. for your microphone there are. alternatives to this as well youve. realtime noise suppression that may be. established. as a filter out 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 below voice processing we have. echo cancellation. and noise discount it is in which things. get. slightly iffy echo cancellation and noise. reduction usually. creates like a warping influence on the. vocals. sometimes it can cause your your vocals. to get roboticky. and staticky when you are utilizing voicemeeter. and that additional further processing. on top of the already processing thats. being applied by means of. voice meter can cause a few issues there. those two ought to definitely be.
Off constantly i dont find them. essential to switch on. i dont genuinely see a time in which its. essential. for these items as i pronounced earlier than simply. constructing right filters for. your mic is a stronger way of going. about this but lots of people have. concerns. in regards with you recognize like phone. settings things like that you can turn. on. um sure audio settings if you find yourself. utilizing your cellphone with discord and that i. might see in a few occasions wherein. this may also help automatic obtain. manage is really as much as you it really is. going to try and gauge. where your audio or where the quantity of. your microphone goes to hit so it. will both. increase the quantity foil or decrease the. quantity for you automatically good quality. service you need to allow this putting. here so one can have an improved. priority in your discord.
people searching for products over the internet some some . internet vendors might have a few. issues with this or internet prospective buyers. may need concerns with this. that again this setting goes to be. up to you usually having it off is. possibly a way to cross. yet when you are familiar a widely used person. of discord i could see. a case where you might want a stronger. priority. for discord audio if you do quite a few. calls or. you recognize youve you do company that. manner um i could see where this could be. beneficial attenuation is truly going. to be like a vocal ducking or an aspect. chaining except for it is whatever that. you are going to pay attention your self. it is going to decrease the volume of other. purposes. by means of the percentage which you set whilst. someone is talking. so you could have it attenuate other. volume degrees from different assets like. your song or browser audio or video game.
Audio. while folks communicate or when you. communicate with the aid of the settings right here. generally i would count on everybody to. have the attenuation. set to 0 because that is variety of a. unusual element to establish for yourself yet. in case you have been interested in what this. placing does that is what it does. its going to actually decrease the amount of. other resources whilst some other person is. speaking or if youre speaking. looking on the placing that youve. the audio subsystem repeatedly your. gadgets will in fact. are compatible concerns with discord a. lot of you guys run into this. quandary where there is a compatibility. clash involving this gadget. and discord itself you could just by no means. appear to get it to work. adequately within discord what you can test. doing is switching the audio subsystem. over from fashionable to legacy. or vice versa and that could resolve.
The clash. with the compatibility there the last. area this is voice diagnostics. do not really need to dive into this. certainly you have three settings right here one. for displaying. a caution while audio is not being. detected out of your microphone. youve use the most recent technology to. catch your display screen and use an. experimental option to capture audio. from. functions entire those are each of the. settings that you will run into. with discord when you are having a controversy. with discord after setting up. voicemeeter. equalizer apo this is a good video to. go to or if your mates are strolling. into any issues or dont know what to. mounted. within the discord voice settings this. video is an effective. video to reference i also want to send. you men over to the equalizer apo video. that i latterly did take a look at the. new preset dossier that ive.
Available within my discord server and. additionally simply take a look at how to establish. all these audio settings to get your. microphone sounding. good thats going to finish this. tutorial guys i realize it turned into a short one. dont worry i am gonna be making it up to. you men i am working on. redoing the voice beater tutorial so i. desired to knock out some speedy movies in. the period in-between. so i had time or a little bit of wiggle. room as some distance. as working on those video clips because. they are gonna be. massive ones and take lots of time in case you. men have any questions. after watching this video you recognize wherein. to move my discord server link 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.


Building a Discord Bot using NestJS - let#39s pair program
okay hi all people weve one minute to. go i thought lets just begin im prepared. to go. and i am wonderful excited about today um. from honest overview i have had particularly an extended. day its been superb do not get me incorrect. so im just a little type of you know. tired so. i do know youre all gonna help me uh work. in this assignment collectively and i am rather. eager because. eddie bot has been taken offline it had. some limitation i had a brief seem and i. couldnt recognize what was incorrect with. it. so i presumed well eddie bot was just a. prototype i needed to replace it. i did see that nest js which were. building our api with has a terrific. um library that allows you to write. discord bots with it. and but you get the large benefits of. an sjs with all the several. hooks and guards and just numerous. awesome stuff. so i assumed itd be particularly interesting.
To look at that so youre gonna. see me. uh start it from scratch today and perhaps. wrestle. yet dont be concerned uh carl whos on radio. eddy with me. or aka julian um he has done it already. and uh let me uh allow me bring up uh. carls github page. so you can see kyles female web page a lot of. eco-friendly squares. lately in the last form of couple of. weeks which is wonderful thats amazing. its fabulous and then if we scroll. down here allow me make it a little. bigger for you all. if we scroll down right here you will see nest. js. discord alex js so kyle has already gone. ahead and completed it yet i need to benefit. a way to do it so i thought. um ill i am going to start from scratch and you. understand we are able to all do it together and do not. forget we do have. the stargate repo that is already. deployed to kubernetes. and has already bought all of the tokens for.
Discord so we could possibly get this. deployed today well see. how we get on but yeah poor eddie bot is. under the elements. and is not operating right now so how. is every person within the chat appear. uh say hi within the chat it is um amazing to. see what you have all been up to in these days i. wish you have a very good week its the. weekend meaning a large number of open resource. and we have uh prathamesh has already. first on the mercy pink became moment carl. became third. well i was moment but you recognize i dont. count number um. sassy adithya amazing to have you all. here lily. jason long term no see jason karuna how. you doing karine i am hoping you are good. mikey very long time im hoping paintings is. going good youre not operating too hard. felix marvelous to have you all right here do. say hi. to one another and okay that is. collaboration not just with me but. among one another grow your network and.
we are able to all learn from one another. so thats awesome uh ok. and and uh yes we need um. eddie bot or alex alex js and ii think in. the chat so people do not say hi there men so. a lot. um so convinced marvelous to have you ever right here lets. start so. um in fact you recognize what before we. guess coding i want to start thiis right. from scratch. you will discover ive got my terminal right here. ive like carried out nothing we will 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 a few of the. things they have been building. on the api for our community is going to. underpin. our stay stream sort of you recognize live. map wherein all your locations are which. we had a prototype earlier than. and also the discord bot so carl the way you. doing hows your week been. im happy to have weekend now uh im.
excellent. amazing in fact let me convey um discord. over here so every person may also see that. to boot on the stay stream. cool certain the weekend is right here that is well. so im hoping youre gonna have a break and. you have executed a large number of coding on our api. um this weekend yet i am hoping you are gonna. so this week i am hoping you may have a damage. in addition. oh i its aactually quite uh relaxing i. savor. coding um for this project awesome. thanks ok that sounds cool so i. desire to get started so my. my first proposal and im perhaps going. to make some blunders but. um you recognize im i am self-assured among. every person we are able to figure it out. ill cross into my repos listing. where i create all my repos. and actually allow me also drop. um carls github in the chat. or cross provide carl um a comply with. carl has no fans on github i will. be the 1st and optimistically youll get.
some more in addition. okay so its how we will do it. i think the very first thing that i should. possibly do first. is create an sjs project so lets examine. how this goes. an sjs documentation well area to begin. um ive needed to play with a good number of. little bits in sjs. and as our apa evolves ive been. researching tons about form of guards and. middleware and all remainder. i love it how i needed to play with. websockets how you will get his stay chat. working genuinely quickly. and theyve certainly considered this. framework its all constructed on express so. it is a bit might be building 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 an excellent. area to start set up it globally. i feel i possibly got it create new. project. hmm create new task i am going to simply create.
A new task for now. i must add it to an existing one to. get it deployed but we are able to fear about. that. later so permit me create a new project. what should we call it. uh i will simply name it discord bot um. okay its new lets pass wait a few. seconds. npm or yarn lets select npm i love. vanilla retain every little thing vanilla as. attainable. um lets have a look uh. koalaa happy hubbers definite precisely happy. hub become all. and uh adithya um why unhappy . i am hoping i pronounced your call correct have. you now not unhappy because i suggested your. call wrong. lets uh lets see every person looking. do not forget deliver this video a thumbs up. certainly facilitates uh support the chat. lets put the chat weve support. channel that isnt a great begin. ok we do the failing sounds must be. a failing sound but persons on radio edit. you wont be able to listen it.
Uh lets have a look um. okay uh ok so its created i think. were well so now weve created lets i. necessarily do i necessarily head into the project. so we move into discord bots. after which i always open um the vs code. correct you recognize we all like vs codes. so lets bring this over right here so you may. all see it. and ill make it manner bigger there we pass. you all realise bs code im sure okay. so what. subsequent lets have a look she created it. ok so now i need to truly perhaps. leap. straight to the um. uh the what do you call it the package. that we are gonna use for an sjs. to create discord so it says. installing we need to. install these things and we have used. discord js earlier than. so the sole additional form of new one. to us is the. nest js edition so lets have a look so. lets just set up that. npm set up lets cross so to this point its been.
All a duplicate and paste. lets have a look um. oh what we got within the in the chat um. two followers incidentally magnificent thank. you a lot that is amazing lets get. lets see if we can get carl to ten. followers in these days. thanks oh i see thats why karuna. thank you a lot right i im not the. the sharpest toy in in the in the field as. the expression says yet queen is saying. definite uh adithya possibly unhappy due to the fact no. fans. i agree i used to be sad too lets examine if we. can get double figures. awesome okay so now we have mounted that. lets examine what next. im already stuck no i am jokking um okay. so subsequent is announcing weve i will have a. token i can seize a token that i have. before. im able to seize a majority of these ids ok. marvelous lets just get. hiya world working and spot if we are able to. see that seem in in discord. so instance of making a dynamic module.
With config i assume it has one-of-a-kind. methods to do this uh carl did you know what. the variation is between these. other ways so you have got. 4 routes and then youve got four. path async so async i am guessing it is. gonna attempt to preserve loading up the. project when this happens in the. background. so is that extra effective did you know um. to be honest i didnt determine what is. exclusive. myself um i feel if you use um for. direction async. you may circulate um one of a kind prospective buyers for. exle if you have. um the token into um in the dot. n dot enb file um you could move. you could inject the config provider while. developing um. the module um. thats 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 way that i tough coded a token into. the use manufacturing facility method. um should we have a look yet i feel.
it is its its just a option. lets take a look and we can actually. exhibit people um which. file would be a module. okay yeah so you allow me take a look yeah. you will need to have the youtube open. um so as to see it it is in. in my repo it is in a bot folder after which. um thiis called config service. discord config oh not the spec discord. config service. received you i see ok and there i. injected um the config searching for what you offer the. config provider um which reads the. env dossier i see. ok obtained you ok that appears relatively particularly. sensible. okay im gonna try and hold it superb. exceptional simple. um but i can not put it in that dossier but i. dont ever want to see on the stay. movement all my tokens. so i need to have a thing i must have. concept this before. what does uh um everybody else thinks. um aditya why are so many followers. nonetheless showing 10 even after such a lot of.
Follows. um it takes time for those numbers to. update i believe theyre all jogging on. exclusive microservices on github so. even if you get a good number of followers it. would possibly not take month-to-month 24 hours to. in fact replace to what the useful. numbers are ok so im trying to think. ill do that and ii could you still. use the config i cant inject you are. correct i see what you mean i cant inject. the config provider to get them out as. environment variables right. ok um what you can possibly do. um im not quite sure if it works is um. reference. procedure.n immediately im not using the. yeah um the config carrier this may work. yet. uh no longer no hundred percentage guarantee yeah. no its well lets try it lets. experiment. um so we are going to all learn something new if. it works or if it does not. so the um we might do that for now.
Um but it isnt whatever that i would. form of commit and did and set up yet. anything for locally just. for uh facts of suggestion i believe works so. if i go to. the discord it is a discord module but to. the the module. i am not gonna um do whatever. i believe carls assignment is much better. check out that for uh reference. yet i am just doing this to illustrate so. lets have a look. whats their bot gateway in addition. am i able to click on that export bot gateway. um lets have a look. shes executed a bit of study beforehand. right here we go here is the gateway correct okay. so. on prepared event all set log it ok that. is sensible got you. okay lets take a look in order a typical. developer. im going to do a lot of copy and paste. so weve got module we have imports. um so its going to be an import um. lets take a look so its discord and.
Sjs lets replica . that import at the end. ok and then i will grab. this import i think its. there there we pass so. because we wish to preserve the import array. and we paste that during. that appears you know not too undesirable oh not. dot. comma everybody following along lets. take a look and spot. so um that is not comfortable okay that is simply. the. uh the missing trailing comma. ok amazing the others have it besides. so actually that is an improvement persons. can make to the documentation. in case you appear this ones the the last one. it has a trailing one. um this ones the last one has a. trailing comma yet this one does not so. when you replica and paste this you get an. errors. so permit me um proportion this task of. everybody. in um. in the chat and someone can raise an. predicament and really increase a pull request. and so you dont when you replica and paste.
this instance you arent getting an errors. right lets have a have a look um. we have some questions within the chat. lets take a look uh uh aditya. says such a lot of left tabs in vs code. what are those oh those ones down the. aspect. ah ok good query so. i must control discord as well. ensure no ones raising their hands. to to come up. if you do permit me comprehend within the chat so um. the tabs ok bought dossier thats the equal. as everyone elses i think search the. equal. what is changed to the resource code um i. shouldve accomplished a commit earlier than i began. making changes to this i always do like. an initial. sort of dedicate i would try this now and. then. this one is the debugger then it is the. distant. this one distant explorer i used to be simply code. areas its for code spaces. that is the plugins so ive all my. plugins set up.
Um lenses get lenses which just offers. you an perception into your. type of your your task and stuff ok. lenses just got removed not sure what. happened there. uh live share uh to do studios is truly. beneficial. um once you kind of placed i like this. due to the fact persons just put todos. anywhere. and then neglect that they they happened. and they go oh good. you know yet now i will get a list of all. the todos which have. regarded in the assignment and i can simply. go to them instantly. and simply cross and connect them and clear up them. or if theyre obsolete just get rid of. them so i really that is like one in every of my. famous tabs. tremendously advise having that uh this is. azure its i take advantage of this for i. suppose due to the fact you can use the azure. provider to connect with a database. but i do not use that anymore i might. correctly eliminate which could i uninstall it.
Um i can probably just remove that uh. lets have a look at this ones a brand new one whats. this one. 100 days of code yeah i dont use. that one much anymore both what. else have i got down here docker and. code time and mongodb. i might be need to kind that up um. theres a lot there that i dont. in fact use. so thanks for putting it out so i admire. everyones questions. uh i havent noticeable those tabs in vs code. uh. i paintings with yeah i have further them on and. i perhaps dont desire them all. yet let me understand which of them you would use. out of those not really too many. stay code percentage is recommended lets. uh. lets take a look um. whats the cause of using typescript. with nest uh nest by default. uses typescript and typescript is just. freaking marvelous ask nick. when nick arrives presently you will see. that typescript is awesome.
Um lets have a look ok so i want to. do actually i will undo this for a. moment i am simply going to sort of. so let me do an undo and it is often a. well proposal. undo that after which im going to put it aside. and iim going to do a commit so if i do. if i clean my console. and i do a status ive got all of these. i think theyre all secure to devote im. just checking. they are so lets do um a get ad we are going to. add all of them so now it will likely be. we are going to do a catalogue returned you could you could. see all these i know what a number of you. are asserting youre asserting eddie. why are you not utilizing uh vs code to do. this im in order that used to the command. line for doing this. uh ok after which im gonna do a devote. so i am gonna say initial nest commit or. something like that. so um and then characteristic preliminary. nest js task in order that i do know that if i. mess anything up i can simply revert lower back.
To this so i have dedicated i dont even. have to push it. its dedicated and i want to redo what i. had right here. um there we pass so i have reddone what ive. got here so ive got this back back. ok so those tokens obviously dont. paintings. what we will try to do is as. carl suggested and simply use the method. um after which im gonna i will take my. terminal. off the display screen briefly 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 enable. and deny is okay and. allowed instructions and and so forth is. satisfactory internet hooks i do not believe we need do. wed like cyber web hook identity and token i do not. assume we do. i might be incorrect i feel the sole. obligatory um residences are token and. command prefix. the rest uh is okay lets. uh remark all of these out if i. remember in fact. that sounds good no obstacle we will try out it.
So i want to use an additional command to. every little thing else in order that we know we are. simply concentrating on this spot. i want to use percentage which isnt. whatever we might use if and after we install. it. but um lets uh lets have a look. oh what is an sjs ok terrific query so. thank you greatly for the the question. uh elusive code. so the question is the question is um. let me raise your query on the. display i should in fact get more um. organized at this i get over excited. with coding. etc so here we move good question if. ive. ignored any questions i am over right here so. im still here. if ive overlooked any questions you only. kind of wait a couple of minutes and duplicate and. paste it again in. so subsequent js i want to describe this. in fact it is built on top of. um exhibit and its. used for construct it is a body of building. apis and its prompted.
by way of angular do not run away and get scared. yet which angler changed into prompted with the aid of like. style of spring. so its certainly variety of that framework. mentality its really nice youve got a. lot of tools there all set for you. http purchaser you are able to do which you want um. internet sockets you need guards you ought to. defend it is advisable to certain. middleware it is it has got quite a few it. constructed you wish a logger as i found out. the day prior to this with carl. once we have been talking approximately this you wish. a logger it has got a vanilla one inbuilt. definite you can still add more to it and. customize it yet it has got a very good. start line for for every thing so. thats a. genuinely outstanding question im hoping i. did not pass over any others i am attempting to. have a skip and take a look um. pr discord.js despatched thanks . oh magnificent pleasant okay. so you sent a pr to that project. and deserves a shout out that is a green.
rectangular for you and uh. thanks much for doing that that is. awesome. because you know i noticed it as a kind of. squiggly line and ii thought right i do know . its just a comma. and iit is just a comma and ii know plenty. of folk say i should not make. contributions which are just aa space or a. comma. but if somebody copies and paste that. like i did the instance. code into their assignment and that they see. this underline or they run the task. and it fails. they pass oh it would not work they do not. realize that something. um is to anything easy they may not. realize if theyre new to. that kind of project or perhaps new to node. and pritier and linto and all the rest. so i think the exles must be. bulletproof and may. paintings so certain anything like that. obviously send in a repair is truly. genuinely significant. have you found out new javascript.
Libraries fastly i have not checked out. fastly yet i have heard people you recognize. talking a few lot. what issue become to be raised in the repo. i feel it received raised already. i think so uh aditya beat you to it. adithya sorry my bad theres a. uh its totally very small on my on my. screen down there yet there is an extra. letter. um i havent any task ok son. kara. really wants me to reply so earlier than we. get into the coding allow me. look at this question all of you. feel free to reply to boot. it is superb for everyone to have. special views i have no. initiatives executed till 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 sure youve got. those aside projects create them share . them on github and join us on discord. and youll just sort of snowball from.
There. it is uh you simply obtained style of you can not. exercise routine at the gymnasium. if you havent form of gone to the fitness center. so go to the health club after which. try out any workout after which you will youll. youll find much more workouts at the. health club that you can do in machines which you. can use. um and uh dtr says already spoke back so. optimistically that helps i admire seeing. distinct. peoples views ok eddie sufficient. talking lets try and do a little coding. um right so this one we will say it is. strategy dot n dot. allow me see what i call it in the other. project simply. so i cant i wont oh dont imply to. vicinity that what am i doing. um i am gonna open a terminal over right here. just so i can get the token but no person. look at the other terminal. you cannot its aanother display im secure i. think i am well. uh and allow me simply get the the call of. the token so.
hopefully it ought to be quality. lets have a look um you know what i. would do ill start i have. an easier proposal i know how to get this to. work okay every person bear with me. dont fret all is good were we will. paintings it out between us. so if we pass um. lets take a look right so i have a. first rate idea i desire to bring this terminal. over to a different display screen and iim going to. begin the task from there. and then the other instructions i run ill. run in vs code. i do know you all like vs code etc. so uh permit me have a look but then i can. in the command once I run it like i pronounced. its aan environment variable so lets. take a look. lets do it so to start the assignment i. must have started the assignment actually. before i. even placed this in in fact there is. another thing i ought to achieve this what i. might actually do is undo all that again.
And again human we should determine the. assignment works before. we try and customize this thats lower back. to what we had before. and lets start run the project so if we. examine the documentation. the assignment is probably going to be npm. run start but lets. double assess and spot. what it says first steps set up it it. tells you what. documents get created i like the style that. it does it npm run start. so i can do it at the display so you can. see we will do. npm run begin after which in the browser we. must have a hey global api. that is how easy its to get an api i. have got a video on this uh going into. extra info i posted a couple of days. in the past on wednesday. in which we really get information from githubs. api and merge it with information that weve got. in the application. so thats up and walking lets go to. localhost or now not regional hack day.
I believe 3000 and you will find its totally. small um. hello international so we know that works ok. marvelous so allow me take this off display screen. let me positioned the um token. for discord and lets have a look. um after which with any luck. npm run begin. so the task ought to run lower back and we. ought to see. no change all must be good its up. and jogging you could trust me in this. and so if i reddo this. and the name of this is discord token no. shock there. and you should not see it and were not. utilizing those so lets just depart those. out. i admire vs code typescript all this. magnificent stuff. okay so hit store the project ought to. restart. it didnt i do not know why permit me start. oh no theres a dev mode aha there is a. dev mode for the task. so if i go back to the documentation and. i return to. cli over in case you permit me investigate i do. keep in mind seeing.
Uh yeah npm run start dev so it watches. for changes which is what i should have. completed npm. run begin dev. still with the token im relatively certain and. if i go to localhost 3000 returned. not localhag day 3000 is still up and. running. you can not see the token which is fantastic. correct let me compensate for the on the chat. let me see what i what i neglected. um oh chats going well amazing i love. it when you all ask questions and chat. between each other its aawesome. uh what did i pass over i do not remember. in which i got to uh whats sjs we did. discuss that. uh alicia raised the pr. um thanks for explaining next uh it is. ness js sorry now not. subsequent js so nest js is an api framework. next js is a framework for the front conclusion. for react. it does have a few kind of backing. capabilities but its totally gentle contact. i did take a look into that but yeah if.
You want a proper. api i would elect an sjs. and you may get up and going for walks as you. saw literally in mins. yet no dilemma ok cool. lets have a look. um. uh sankara i already spoke back your. query i think some other folks did. to boot. i was a typo that is nice okay cool um. well thanks for clarifying okay so weve. obtained this up and going for walks lets have a look at if we. can get whats up international operating in. correctly in discord so lets see so next. aspect we need to do. is we have this i feel this looks. well i do not its strolling there is not any. blunders in the console. so the subsequent thing we do is usage so we. have got to create a bot gateway dossier. ok i suggest we are able to do that and duplicate and. paste that in sounds good. okay um i know carl has finished it in. exact module that is. a nice way of doing it i desire to retain it. lifeless dead easy for today.
Im just trying to do a spike to work out if. going forward could i write a discord. bot with nestjs. um typescript okay lets take a look. paste it in. we are able to do just a little formatting. there we move okay um. store that and its going to load it lets. take a look. and see. okay so it should oh well ill. add it theres one more thing ill do uh. the project does not understand anything approximately. it yet. i need to upload it to. um to the module noticeably sure ive neglected. that step. lets take a look might be as a. provider yeah im attempting to search for the. documentation on it. but theyve style of missed that step. ive all have i missed it. allow me see utilization um yeah so that is the. gateway. it is sensible and you can use the. purchaser decorator okay that is relatively. interesting too theres methods to do. it you can do it for provider. or you are able to do it with a decorator okay.
that is good to know. um i imply the two look pleasant and an analogous to. me. and then that is for receiving messages. so instantaneously they are on to the next. variety of discord bot listener so correctly. you are correct they havent. theres another development to this. assignment permit me percentage the link to this. task. i think i shared it already yet im. going to percentage it one other time um. raise an issue that and do double investigate. that im. and this is true however it seems like. when they give an exle. they do not upload it to the module dossier so. again. you know we will i could have figured. that out but carls obviously helping. me which is making it plenty simpler i. love pair programming. um yet you know somebody is doing this by way of. themselves they might get stuck on that. for like two three hours. whereas you recognize a couple of strains of. rationalization or code or exles could.
just help them make it a lot simpler this. is why. it is so significant for everyones. projects to get other folks to look at. it because. they might not know the sure things. that you know once you make assumptions. so lets take a look so. this is bot gateway and well. add it to providers we have app. carrier which is nothing. which is turned into car generated by means of gateway. and if i hit input. lets deliver this up somewhat it. ought to get immediately further at the. accurate. yeah we have at the end so lets hit. save and. the console i should be capable of um. show you now since the token is hidden. thats good. if it doesnt get hidden ill be very. disillusioned. yet no it i feel its hidden ok and. we have an mistakes so lets take a look. lets debug all of it collectively. so lets have a look so locations cannot. read property send of undefined.
On on all set in bot gateway line 23. so lets have a look good ok 23 is. javascript so. we dont have the uh the mapping so. well just uh keep in mind that were. looking for on prepared. so on prepared turned into announcing um. send ok so we cant this does not paintings. okay have we finished anything wrong or. have we discovered an additional trouble. um within the project lets have a have a. look. well maybe i did whatever incorrect allow me. examine. so after I use this and iits got. a common in it does it bought imported in. sjs we have all of the imports. tremendously sure i did exactly what they stated. ish. i believe it bought the mistake um i think um. in the app module where you initialized. um the. discord module and you did not provide a. webhook. url and thats why he cannot discover get he. cant do get webhook. purchaser and that is why ship is undefined. oh i see. ok so if ok well point.
good good noticed but i feel you can. simply delete this line i feel you dont. desire this. it truly is in case youre utilizing uh information superhighway. hooks correct. okay so it can be carried out one other manner i. bet right its performed. can anybody just get purchaser yeah it could. be carried out we get customers. ok oh yet theres no send on there. ok. good we can see we are able to see if we are able to get. a log right due to the fact it will supply. us the user tag. and all remainder so lets just undo this. for the instant. and go back to what we had remark this. out put it aside if i bring up this. it may reload ideal no errors this. time. and it does say logged in as eddie bot. so. it works its related to discord so. maybe the subsequent issue we will do. is get it to hear for a change on a. command. so lets and were gonna need to come. returned to that because we do desire to send.
Messages to discord nonetheless. so lets take a look um ok. create a handler for receiving messages. by means of the box i like it how its simply. broken down into. exceptional files you do not get those massive. documents always issues it is all type. of. looked after for you ok um. lets uh lets have a look so i am simply. gonna kind of replica and paste this again. do not do what i do all people and theyve. called it bot gateway lower back ok so. theyve positioned it in an identical dossier ok so. we can placed it in an identical one. because its another trigger its. going to be um. an on command ok lets grab that. placed this right here what have we acquired so on. command hasnt been imported. we should better simply move import i believe. its appended it up there. pleasant message would not exist lets see if. it can determine it out. and do an automobile import to boot ideal it.
Has executed. all of it appears really particularly comfortable so what. we predict. is when it begins. uh what is message come from and it gets. a message so let me simply read some . i didnt read this but im guessing. begin so thats the command its seeking. for im guessing. i feel we must always do it on allow me see. what will be what would be an outstanding that. i believe i saw on an outstanding exle. that could be larger i dont desire to do. on each message im looking you i did. that i believe after I become having a play. with whatever as soon as and everybody had. someone wrote a message the bot was just. spamming everybody so you wont try this. lets uh. lets have a look at allow me get closer the chat. when you are having a having a study . band sal are you able to tell your other uh. channels that deliver open resource content material. and guidance. um to not all people touches on it i believe.
Yet no person genuinely focuses on open resource. like myself. so um yet i will have a look ask and. discord and we will we can. send you a few a hyperlink in the within the . description lower than to the discord channel. and we can chat to you and uncover a few. people but we are already discovering. a few insects in this today so. optimistically somebody has raised the difficulty. that uh what become the difficulty oh definite including. it to. um the module oh but they do upload it oh i. ignored it if we look. um vendors purchased gateway oh that is. due to the fact. certain they did upload it previously ok so. they further it before. and that i went immediately directly to usage and so. its kind of bizarre adding it earlier than yet. the file would not exist. id have executed it somewhat. differently id carried out it like a. appropriate flow. yet you recognize its it is there i just. assume. i wouldnt upload a file bot gateway to the.
Module until i create it i always type. of create the file first i dont know. what people assume um themselves. right in the chat what do you believe. lets take a look hindrance raised. um ok cool. yeah deleting yeah do you i feel you. can the problem um. i even im able to placed a remark permit me permit me. observe the issues and i can say. oh i discovered it so you cant delete it you. can close it i think its. ive got add comma at the tip by means of jason. amazing and then i think did you shut. it already. um yet ill positioned a remark and say oh. i found it that it become added up and so. forth. um if that is if that should be the. case im happy to. to lower back you up on that because i. endorsed you to raise it and it was a. bit perplexing the flow um. wasnt wasnt great um so okay. and ii wasnt examining it when i used to be. speeding by way of ok.
permit me know tell me the difficulty wide variety if. youve uh have. study it replica and paste uh is fine as a. developer i will create a project by using. in basic terms reproduction and paste to create whatever. itll be fun and iimprove my examine. talents your reproduction and paste is good to. begin with. um but i think you need to. comprehend what you are copying pacing i. think once I copy and paste. i simply go out it really works and simply type of. do it when I once I sort it out i. in fact. think more about it so its kind of not. amazing but i am just aware of time. just i want to eager to get something. operating and to just get. my goal here isnt to really realise. everything is to get anything operating. to work out if. if there is something we must always use going. forward so its just like a spike so. i will cut loads of corners. as well i actually have a question for.
every person and maybe for carl besides. who i know has carried out nest um js stuff for. um much more than me is what about why. is thiis specific to discord bots so. actually its maybe no longer a lot of a. nest question. but what approximately checking out a discord bot. because it it. does web sockets so i would have tried in. the past to mock out the websocket. and send the information that i want to the bot. so that. um i will investigate the response however the. drawback with that is when I um. ship the info again the uh trying out. library type of kills the connection. and then the bot just maintains attempting to. reconnect all the time to the websocket. and so it just receives into this crazy sort. of loop. i ponder whether anyones verified any. websockets before due to the fact that is necessarily. uh. because its like an engaging. predicament okay where was i. um correct what changed into i doing i was doing we.
Had a start thats what we had. execute command start okay i feel. that is it. i believe its going to run and carl would. know more than me. if you are still round is that um i do. the start command iits going to respond. with this lets just deliver it a move so if. i hit keep. ought to reload logged in as eddie bot. excellent. lets elevate discord lets take a look. um and let me visit lets go to the bot. chat. and what became our uh with a percent i. imagine. if i do just experiment nothing should come up. oh youre probably at the back of my head eddie. it is at the back of your head. sorry every person my undesirable let me make it uh. convey it up it is friday. bear with me its friday in fact i make. mistakes like this every day. so experiment as you will find experiment is there and. um. no reply no comment nothing within the . console nothings changed so the bot. hasnt done anything thats good.
So if i do percent and that become our. trigger for our command. test im hoping it does nothing returned. nothing there. nothing in the console okay nothing is. well and now if i do. percent experiment start sorry percent. begin. im hoping something occurs either in. the console log or within the chat. lets examine it labored i imply that is how. quick its to get. an sjs up with an api and a discord bot. i mean that is relatively quite rapid right. so now weve. execute command percentage begin so. accordingly we can do. so many other other things hypot. its because in fact i want um to get. our api up with a purpose to get the map. post behind me and as people work together. using. um doing contributions to open source i. desire their profile to seem at the map. from github so ive got so many cool. ideas with that so i maybe should. awareness extra on.
The api than doing these other things. however the bot. with the bot happening um i want alexa. js up so much because i im simply so. uninterested in everyone just saying hi there men. its like not everyones a guy right here so. um certain so i am eager to at least get uh. alex js up on the bot and then we will i. can come again to the the api despite the fact im. no longer doing very much on the api its. pretty much carl. uh ok oh sorry carl we will say. whatever. no no um ok everything fine okay cool. no dilemma um ok so that works so i am. proud of that. and so what some thing we want to do. differently is. we dont need a command for alexa js. thats something we dont desire we do. correctly need a version quantity. i do like having the the knowing what. versions are walking so people can suppose. well wheres my characteristic i. submitted a pull request to that um so.
it is uh it is good to have a edition so. what lets . perhaps do i wont get distracted with. that now yet it is going to be well to have a. version command. um but maybe i am going to just difference that to. version and we wont convey out the. version. yet um we will simply remind us to put. that during so now. and that should be first-rate it must have. reloaded perfect. lets convey alexa alex js now not alexa. alex js so we want that to trigger on. each message. so lets take a look what we are able to accomplish that. if we visit the doctors i did see whatever. subscribe to the development. and we want to subscribe to every. message and were not likely to respond yet. we are able to take a look so. lets have a look if we i need to install. the same dossier for now and we could. always. uh separate this out later if you wish. um we want the on. annotation and im not likely to respond.
but when it is not the bot lets do a. console log um. just so as to see in the log console. and there is an amazing oops no longer intended. to try this. there is aan awesome logging inside sjs. but i am not gonna do that right this moment im. simply gonna say um. lets log the message so yeah just log. the message. message dot well i didnt see what it. become. it turned into for exle what its. message dot um. can i get the content of it no longer author. content material right here we cross. there we go so ought to i see it optimistically. within the console log. that should reload lets return to the. bot. long term no see eddie but. uh yeah nest js spot. okay um correct im sorry there you pass. see within the console. right not in the back of my head is it okay so. thats coming by way of so we know for. each message. so some other person can write a message in. the in the bot. chat channel and that i want to see that it.
Also comes up within the console and its. not only from me. so i want to prove facts to everybody. and myself that it is not simply me so. karuna nick jason an elusive code i know. youre already there if you can write. an extra message. and o

Leave a Reply

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