Code your individual Discord Bot - Clean Messages (2021)



Code your individual Discord Bot - Aliases (2021)
Whats going men welcome back to. a different discord.js tutorial in brand new. academic were going to be adding. aliases. to our instructions in our discord bots if. you do not know what an alias is. google tells me that its a fake or. assumed identification. what this suggests is to illustrate to illustrate. i create a command. thats play which joins a voice. channel and starts gambling a command. but as an instance i desire to execute this. very same code. of this command utilizing one more key-word so. in preference to play. i desire to execute this with pl and just. by doing. this right here its going to still execute. an identical. code as play and it really is extremely simple. it is going to be a very quick video but. earlier than i start i do prefer to present. my discord server a brief shout out it. has been like 4 days seeing that we. officially released. we have over one thousand participants already.
Come right here if you are. into coding disc or mods this can be a. coding neighborhood for discord bots. and also we do have a little chat vicinity a. little living room area in case you guys desire to. talk. to the community so theres going to be. a link in description to this discord. server. come forward become a member of so lets pass ahead and. start with the actual. code so like i stated very brief video. all youre going to desire is to go to. your message event if you are new here. be sure to watch. the whole event handler video because. we restructured our complete entire task. so lets get started right here. in our message event weve a const. command and this is the same as purchaser that. commands that receives cmd. we will edit this and do an or so. or. it is going to be client that commands. dot discover were going to create a. variable i am just going to name the.
Variable a. with an arrow function a dot aliases. aliases after which and. i am actually going to repeat aliases and a. dot aliases. that includes and we will pass. in that cmd an additional time cmd. is thiis constant up right here thats just. rx that shift that to a decrease case. and actually were basically done. with the message movements. now from here go to all your reviews. and we will create the aliases up. right here. so aliases colon it is going to be a listing. and you can start. typing your aliases so for the mc server. were gonna have three aliases. one is gonna be mc the subsequent one goes. to be mce. examine and the final one were simply gonna. write out minecraft. and ensure you put out the comma at. the top put it aside. keep every thing and every thing must be. running first-class lets go ahead and do note. area dot. there we move it is on-line lets pass into.
Our discord server try walking. the first reputable call of the command. which became mc server so mc server. you can see it will say please. enter a minecraft ip and then we are able to. additionally run. mc its going to say please enter my. sort uh whats the different one thats the. mc. assess and then we also have minecraft. so all of these instructions listed here are. technically jogging. exactly the same code which is this. however. you recognize it is simply its the aliases its. just like the referred to as. um commands right here so it technically. all works i can actually do whatever. like. mcmc.highpixel.web. two five five six 5 and there we cross. the body is gonna work. now what in case you wanna use these aliases. as anything like an aspect command. so in preference to going for walks exactly the same. code perhaps i desire to have. mc here run one more code than.
This yet nonetheless have it in a similar dossier. here. how you do thats come each of the manner. right here well upload anything down. right here within the execute method. and we will call it cmd we are. essentially passing cmd right here. which is this variable you can upload in. any area right here i am just going to add it. here in the boys in the middle subsequent. message then come here into your. command add it besides what you need to. do is reproduction. each of the code and you simply desire to cross. ahead. and check for the cmd. so all you do is do if cmd triple equals. . and the 1st one is usually going to be. the particular main command so. mc server and then pass ahead and paste in. your code then come each of the manner down. here after which do the next if so. if cmd triple equals to mc that is the. first alias we are just going to console. that log.
And we will console the log. saying this isnt. an mc server and then lets do one ultimate. one. which is if cmd triple equals to. uh minecraft and iits going to say. message.channel thats ship back you. guys can sort whatsoever you guys desire. right here. its aactually no longer console.log permit me. message that channel. that is ship for you to see it at the. server. and for the minecraft you could say we. love. minecraft so utilizing those three aliases. were correctly walking three distinct. commands. in a single command dossier now technically you. could. do numerous commands and its gonna be. no exclusive than the particular command. handler that we had earlier than but with this. new command handler we are actually. organizing every thing. so you do wanna have your command you. recognize files and every little thing prepared. its just that on the way to have a you.
be aware of one more alias with yet another. function. im simply showing you so lets move forward. and run this. and now if we do mc. server its the 1st command so. please input your minecraft ip. then if we do mc its going to say this. is not a minecraft server. this isnt a micro server and if we do. minecraft it is going to say yay. minecraft we adore minecraft. and thats how you actually can run. assorted instructions in one command folder. using aliases. in general you only desire to use. aliases as aliases. yet oftentimes if you are doing. anything like the play and depart. command it is advisable to have them in. a similar. file so you can use the exact same. things so i will use. like the voice channel and maintain. every thing prepared so. that is basically it men im hoping you. men enjoyed if you did be sure to.


Awful KPOP DISCORD SERVERS
Welcome gamers before we begin this. video I will not pressure this sufficient this. is a case research this video is by no means. intended to promote any harassment to. anybody I know how debatable this may. be I tweeted out Korean pop acquired approximately. thirty persons fighting in my goodddamn. require like the video I made one. 12 months ago referred to as lousy furry discord. servers Im attempting to infiltrate this. neighborhood and spot what its about my god. fairly frankly we see it for all time. kpop stands and Twitter reprised. replying with fan cams and that is what. we see at the tip of the iceberg but I. desired going to be and discover what. its aactually desire to be part of this. neighborhood. so please even if youre a kpop stand. or now not dont go in harass anyone shown. during this video. oh man Jesus Christ we will begin with. our possess discord account.
My name is mr. kpop scenario 1 im not. from the kpop neighborhood yet i am from. a further stand neighborhood how pleasant good. these people treat me ok Im form of. scared Harry patterns girlfriend. you look so dreamy during this photograph i am. gonna juice this one. oh yeah batard all God but amazing Im a. Harry style supporter now time to see. how these communities will deal with me. understanding Im from one more neighborhood. so Im not only gonna become a member of kpop servers. i am additionally gonna join anime servers see. how persons from the anime servers could. treat me you guys ever heard of kpop. Lord overheard or comprehend what is kpop. kpop Korean pop its a style I want to. join that community okay listen. here Harry Styles as someone who got here. from the k12 community I incredibly suggest. you do not go too deep into the community. because its a nutrition i feel thats a.
Really mean assumption I believe you only. hate kpop okay pay attention here bucko. do yourself yet another battle that you you. cannot yourself out Im ok. its aa lot of fourteenyear-old females or. your buddy you recognize i do not believe I was. girlfriends Audi likeness. Oh what is this oh this is all in Korean. I dont know Korean IG is trash period. yg interval interval I dont know what that. skill. lady friend that is the worst welcome. ooh thats on a bot hi i am trying to. convert ive certainly not heard a kpop but i am. seeking acquaintances oh why are they. making exciting of me why do you believe it enjoyable. of me Dan two times first. why might I stand two times if I understand. the first time is there a rule where I. must stand someone twice and a. 610 mamamoo dan gee that is a vehicle. enterprise I have never heard their tune I. do not know who theyre but what is that this.
It all I do not know what the any of. this suggests ive certainly not heard of them. before. does anyone need a position play as BTS. contributors yeah does that a No listen. freeze approved teethers why cant you. men who are those persons. idols Hello what she deleted it maybe. it is time for me to go away youre not. gonna remain here though so that it will. learn about kpop i feel out of contact cuz. i do not hearken to kpop a lot every person. starts someplace can help you genuine definite. a large welcome start from listening to. London oil thats a source pal start. with one team but what you can start. with BTS if you wish i am deaf though I. cant hearken to tune what why are they. making fun of me are you making enjoyable of. me all right Harry patterns is simply. knocking through the drink how about we. start with that BTS participants jimin jhope. suga jungkook jin RM okay jungkook is.
the chosen i dont know who any of. these are but i thinkin ago with. jungkook who i discovered a kpop server that. hosts karaoke hiya become garyoke with a. karaoke box o.k. all right lets play a. track Im prepared please play me Jung Kooks. number one hit whats that I simply desire. to sing a jungkook track simply get me a. well song alright okay Im prepared ask for. funds get advice. I unfold my cash two times there is a fun. track hi this a lecture room and i say a. little music well purchase junk code like this. ok sorry men up to ill assist you I know. my manner turned into gonna be later a couple of week. ago well time these are pitbull eaters. they consume mr. global any bald persons. no that is the worst things occurred to. me this night now i understand how kpop stands. react to other track maybe some song. even better than kpop now I know how. they react it is so unhappy its time now.
That ive learned all the secrets. by means of discord and through many her. aisle and mistake are you ready to tackle. the massive boss thats Twitter institution. chats so I got a pal to infiltrate me. into several Twitter organization tracks hence. will experiment out the community i am setting. the president that kpop stands hate bald. people we are gonna learn how genuine. this is. oh do not ask about the Vin Diesels that. say that is a bar fight I dont desire to. discuss that this elf in. my mentions with an identical crusty pop. that mentioned seeking images youre the. one making a song me fancams Im simply. responding very well I believe this can be a. person homie yeah this individual has been. helping me infiltrate im not gonna. disclose her call obviously we cannot. divulge her mystery identity. ought to I ask my friend how do I. introduce myself and they suggested hi i am.
name and im from and then your final. bias is your ultimate bias is jungkook. hi Im Sophie and im from united states of america and. my ultimate bias is jungkook and i am. gonna do this white emoji that in simple terms. teen white females use this one definite. and a celeb emoji very that is ideal. what is up Sophie are you going to the. video shop on are they Tori now why did. I know this food its aall over Twitter I. do not stand in even I would ok so ive. been off social media a group as a result of. assessments and personal difficulties. I saw BTS in Hamilton in 2018 yet i want. to buy my mother this birthday current I. cant really have enough money both oh here is a. controversy reaches over parents Eddie. day of the week father and mother. jungkook gave delivery to me ok why did. you upload a further army to a number of the. muffins in here most folk right here Stan. BTS ok so this can be a group to begin.
Controversy in now very well men. caution okay I dont hearken to kpop I. have no idea what kpop sounds like yet. lets have a look at the reactions to a. debatable opinion ok it really is the. bomb GBH jungkook has been having. disappointing vocals recently I much. desire the other kpop participants oh wow I. such as you already. what are they chatting with me what the do. we like beets yes or no longer what goes. on right here you give off solo stand better halves. woo. so its aactually much better than BTS. though nothing incorrect with solo. stands off did you just name me a . this is like a bar combat dude thats. like a goodddamn bar combat no I referred to as. them why are you getting all up. in my face limo just I was ok . you say then nevermind this military cannot. examine lm foul excuse me protecting you. shuttle you annoy changed into literally. defending you maybe if you knew the way to.
Read maybe in case you stand genuine expertise. sis not my fault your brain win error. for or for Sophie make an apology i am sorry. that yall dont have a mind shes just. stand genuine talent are you 12. sure yet he is not Im just gonna provide. setting images somebody already left Oh. 3 spots a fancam I must discover a. pitbull fancam that is obviously ok I. pronounced a number of organizations in those peoples. case flavor thiis sweetie lime foul. justjust-just. ok i have to retain hitting them with. the mr. worldwide pictures I got to get. extra images do my arsenal of pimple. has to develop greater oh oh ok so you. shouldnt have a little battle of. Arsenals I see check this out they are. not gonna expect thiis not one pitbull. pitbulls. oh oh 3 pit bulls Oh for pit bulls. Oh five pit bulls oh seven pit bulls can. you stop sitting middleaged men Im.
not involved people is not fascinated. in you buddy thats so unhappy i have been . kicked out of the only group so in case you. say sorry okay i am sorry it is only a. board seriously should have done that. i am going to delete my tweets today and this. is when I hit him with the true she runs. to machine activates logs onto Twitter. deletes bad excursion hits. clenches fist that isnt how a. steel face turns pink ok so begin. sweating pull please dont you choose me. anyways he is completed ten films due to the fact. its completed zero films literally what is. wrong together with her ok all right discontinue sending. your pictures you recognize what Im sending. 4 pictures of mr. Vin Diesel we are. having battles of images of kpop video. victors that is the smartest thing ever all. correct no okay heres Eddie different. artist well I larger ship mine pal this. is how the true world works o.k. oh.
This person really went into my DMS to. ship 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 do not deliver it investigate this. guy the bald head you can just slap it. man you can just slap it theres an. underground artwork is that no one whove. I have asked listens to you thus far am i able to. please share with you guys. Sophie please proportion yes okay my sister. used to think Vin Diesel the rocking. persons work good thats a discovering of. tonight its true they are the same. individual see what the hell what is the. change any other cult all started. bashing on me beating my ass and i send. these people images of pitbull and. they do not intellect thanks guys and never. getting mad at my bald guys pigs that is. remarkable pleasant you know thiis this was a nice. institution wait did I am getting one kicked no no I.


5 Discord Audio Settings Everyone Needs to recognize !!
mostly after developing voice meter. or equalizer apo. some of youve mentioned that you have. issues with. discord and many the times it truly is. actually involving. settings within discord the audio. settings in discord. normally it defaults to having a few. matters. on that really shouldnt be on or. normally you men. cross in there and you overlook that you had. became matters on like echo cancellation. and whatnot so this goes to be a. speedy video on. what you will have set up for your. discord audio settings. lets have a look if you find yourself on discord. if you visit the lowest. left wherein your call is you may go to. person settings and. below app settings youll find voice and. video in voice and video youll have. your enter and output gadget. in general as a whole i suggest. selecting the default device as your.
Input. and output gadget in this section as you. can see right here i have in fact manually. selected my. microphone the enter device that i need. on. discord very first thing we will take. a investigate is the enter sensitivity if. you turn this. enter sensitivity on it is going to. automatically determine. input sensitivity this is truly um in. a sense. a noise gate filter out so if you switch this. off what you notice here is weve a. slider. at the left aspect of the slider weve a. yellow aspect and on the correct side we. have green. the yellow portion of this meter is. actually. muted audio so if i have been to show this. down it would set my noise gate down at. destructive seventy five decibels i want to cross forward. and simply maintain this at detrimental 62. to be. honest with you i have already got a noise. gate clear out built in equalizer apo so i. would might be flip this all of the way.
Down. and iit wouldnt topic yet to your. guyss sake this is aa great way to dam. out historical past noise from coming in on. your microphone. specially on discord what you can do. is just monitor the. audio of your microphone without you. speaking into it and just block out. everything thats doping up. on the meter here usually it is going to. maybe take a seat right less than detrimental 60.. remember when youve got to go too excessive. your voice will be cutting. in and out of the audio scrolling down. to the advanced area. we have a noise suppression made with the aid of this. company known as. crisp it suppresses background noise. out of your mic this. is in beta it really is equivalent to the rtx. voice. ai that got here out lately as you guys. be aware of . i suggest simply creating aa legitimate. noise gate clear out and downward expander. in your mic. there is no purpose to apply the noise.
Suppression within discord. if you only mounted a proper noise gate. filter out. to your microphone there are. selections to this as well you have. realtime noise suppression that can be. established. as a filter out and setup in equalizer apo. you have the reaffir. plugin that i did a video on recently i. will link it. in the outline below as an entire this. should always be. off down under voice processing we have. echo cancellation. and noise reduction it truly is where things. get. a bit iffy echo cancellation and noise. discount usually. creates like a warping result at the. vocals. routinely it could 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 through. voice meter could cause some concerns there. those ought to definitely be.
Off consistently i dont uncover them. necessary to turn on. i do not surely see a time wherein it is. necessary. for these items as i mentioned before just. establishing appropriate filters for. your mic is a stronger way of going. approximately this but a lot of people have. issues. with regard with you recognize like cellphone. settings things like that you can turn. on. um certain audio settings if you end up. utilizing your phone with discord and that i. would see in some instances where. this may also help automatic gain. control is actually up to you its. going to try to gauge. in which your audio or in which the quantity of. your microphone goes to hit so it. will either. enhance the volume foil or decrease the. volume for you instantly high quality. carrier you need to allow this placing. right here with a view to have an improved. priority on your discord.
prospective buyers over the net some some . cyber web vendors may have some . issues with this or cyber web prospective buyers. may have issues with this. that again this setting goes to be. up to you usually having it off is. maybe a way to move. but when you are regular a widely used person. of discord ill see. a case where you may want a better. precedence. for discord audio if you do quite a few. calls or. you know youve you do company that. manner um i may see wherein this can be. favourable attenuation is really going. to be like a vocal ducking or an aspect. chaining aside from it is anything that. youre going to hear yourself. it is going to lower the volume of different. purposes. by means of the proportion which you set whilst. somebody is speaking. so that you could have it attenuate other. volume degrees from different sources like. your song or browser audio or game.
Audio. when people communicate or once you. speak by means of the settings right here. usually id assume everybody to. have the attenuation. set to 0 due to the fact thats sort of a. unusual component to set up for your self but. in case you were interested in what this. putting does thats what it does. it will correctly lower the volume of. other sources when someone else is. talking or when you are speaking. looking on the setting that youve got. the audio subsystem routinely your. gadgets will correctly. have compatibility issues with discord a. lot of you guys run into this. quandary where there is a compatibility. clash concerning this gadget. and discord itself you can just not ever. seem to get it to work. adequately inside discord what you could test. doing is switching the audio subsystem. over from popular to legacy. or vice versa and that could resolve.
The conflict. with the compatibility there the last. section heres voice diagnostics. dont really need to dive into this. surely you have three settings right here one. for showing. a caution while audio is not being. detected out of your microphone. youve use the newest technologies to. seize your screen and use an. experimental option to trap audio. from. purposes overall those are all of the. settings that youll run into. with discord if youre having a controversy. with discord after constructing. voicemeeter. equalizer apo this is an effective video to. visit or if your friends are jogging. into any concerns or do not know what to. installed. within the discord voice settings this. video is an effective. video to reference i additionally desire to ship. you men over to the equalizer apo video. that i latterly did take a look at the. new preset file that ive.
Available inside my discord server and. also just check out how to set up. all these audio settings to get your. microphone sounding. well that is going to complete this. educational guys i comprehend it become a brief one. dont worry i am gonna be making it as much as. you guys i am engaged on. redoing the voice beater tutorial so i. wanted to knock out some fast movies in. the period in-between. so i had time or a bit of wiggle. room as far. as engaged on those videos because. they are gonna be. massive ones and take various time in case you. men have any questions. after looking this video you know in which. to go my discord server hyperlink is within the . description. below if you like this video do me a. strong hit that like button and subscribe. for extra 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 all people weve got one minute to. move i presumed lets just begin i am all set. to move. and im remarkable enthusiastic about in these days um. from sincere assessment ive had particularly a long. day it has been exquisite arent getting me wrong. so i am a bit of style of you recognize. tired so. i do know youre all gonna assist me uh work. in this task together and i am rather. keen because. eddie bot has been taken offline it had. some hindrance i had a brief look and i. could not recognize what become incorrect with. it. so i assumed good eddie bot turned into only a. prototype i wished to interchange it. i did see that nest js which we are. constructing our api with has an amazing. um library that permits you to write. discord bots with it. and yet you get the large advantages of. an sjs with all the several. hooks and guards and just a number of. marvelous stuff. so i assumed itd be really fascinating.
to have a look at that so you are gonna. see me. uh begin it from scratch at present and maybe. battle. yet dont fret uh carl whos on radio. eddy with me. or aka julian um he has done it already. and uh permit me uh let me bring up uh. carls github web page. so you will see kyles female web page a lot of. green squares. lately in the last style of couple of. weeks thats first-rate thats awesome. its important after which if we scroll. down here allow me make it a bit. bigger for you all. if we scroll down right here youll see nest. js. discord alex js so kyle has already gone. ahead and performed it yet i would like to learn. how to do it so i presumed. um i am going to ill start from scratch and you. comprehend we will all do it collectively and do not. neglect we do have. the stargate repo that is already. deployed to kubernetes. and has already received each of the tokens for.
Discord so we might be able to get this. deployed today well see. how we get on yet yeah deficient eddie bot is. under the elements. and is not operating at this time so how. is every person in the chat appear. uh say hello in the chat it is um magnificent to. see what you have all been as much as at present i. wish youve a great week its the. weekend that means a good number of open source. and we have uh prathamesh has already. first on the mercy red turned into moment carl. turned into 3 . well i used to be second but you know i do not. count um. sassy adithya amazing to have you ever all. here lily. jason long term no see jason karuna how. you doing karine i hope youre well. mikey long time i hope paintings is. going good youre not operating too tough. felix marvelous to have you all here do. say hello. to each other and okay this is. collaboration not only with me but. between one another grow your network and.
we are able to all gain knowledge of from each other. so thats awesome uh ok. and and uh yes we want um. eddie bot or alex alex js and ii think in. the chat so persons do not say hello men so. a lot. um so certain amazing to have you ever right here lets. start so. um correctly you recognize what before we. wager coding i would like to start thiis right. from scratch. you can see i have my terminal here. ive like performed nothing we can do. every little thing from scratch. uh allow me um say hello to carl who is on. radio eddie and carl can provide themselves. a shout out maybe talk about a number of the. matters theyve been constructing. at the api for our community is going to. underpin. our live flow form of you recognize stay. map in which all your locations are which. we had a prototype before. and also the discord bot so carl how you. doing hows your week been. i am glad to have weekend now uh im.
nice. marvelous correctly allow me carry um discord. over right here so everyone may also see that. to boot at the stay circulation . cool yes the weekend is right here thats good. so i am hoping youre gonna have a ruin and. you have achieved plenty of coding on our api. um this weekend but im hoping you are gonna. so this week i hope you could have a break. besides. oh i its aactually particularly uh relaxing i. relish. coding um for this project marvelous. thank you ok that sounds cool so i. desire to start so my. my first proposal and i am maybe going. to make a few blunders yet. um you recognize im i am self-assured among. every body we can figure it out. im going to go into my repos listing. wherein i create all my repos. and really permit me additionally drop. um carls github within the chat. or cross deliver carl um a follow. carl has no followers on github i am going to. be the first and with any luck youll get.
some extra to boot. ok so that is how we will do it. i think first thing that i ought to. probably do first. is create an sjs task so lets examine. how this goes. an sjs documentation good region to begin. um i have needed to play with quite a few. little bits in sjs. and as our apa evolves i have been . getting to know tons approximately variety of guards and. middleware and all remainder. i love it how i had to play with. websockets how you will get his stay chat. working surely soon. and theyve really thought about this. framework it is all built on convey so. its kind of probably constructing on one. what all of you recognize already so do have. a look into this im very very inspired. with it. so first steps its possibly a great. location to begin install it globally. i feel i probably received it create new. assignment. hmm create new project i am going to just create.
a brand new project for now. i have to upload it to an present one to. get it deployed yet we are able to worry approximately. that. later so permit me create a brand new assignment. what ought to we name it. uh i will just call it discord bot um. okay it is new lets cross wait some . seconds. npm or yarn lets decide on npm i like. vanilla keep every little thing vanilla as. attainable. um lets take a look uh. koalaa happy hubbers certain precisely comfortable. hub was all. and uh adithya um why sad. i am hoping i mentioned your name correct have. you no longer unhappy due to the fact i pronounced your. name wrong. lets uh lets see everyone looking. do not forget provide this video a thumbs up. surely helps uh aid the chat. lets put the chat we have support. channel that isnt an excellent begin. ok we do the failing sounds must be. a failing sound but people on radio edit. you wont be able to listen it.
Uh lets have a look um. ok uh ok so its created i think. we are good so now weve created lets i. necessarily do i always head into the task. so we move into discord bots. after which i necessarily open um the vs code. right you know we all like vs codes. so lets convey this over here so you may. all see it. and ill make it manner larger there we cross. you all realise bs code i am certain ok. so what. subsequent lets have a look she created it. ok so now i want to truly perhaps. bounce. directly to the um. uh the what do you call it the kit. that we are gonna use for an sjs. to create discord so it says. installing we need to. install these matters and we have used. discord js before. so the sole extra style of new one. to us is the. nest js version so lets have a look so. lets simply set up that. npm set up lets pass so so far its been.
All a duplicate and paste. lets take a look um. oh what we received in the in the chat um. two fans by the way amazing thank. you so much thats marvelous lets get. lets examine if we will get carl to 10. fans today. thank you oh i see thats why karuna. thank you so much right i i am not the. the sharpest toy in within the in the box as. the expression says yet queen is announcing. convinced uh adithya maybe unhappy because no. followers. i agree i used to be unhappy too lets have a look at if we. can get double figures. magnificent okay so now weve set up that. lets see what next. i am already caught no im jokking um ok. so next is saying we have i will have a. token i will seize a token that i have. before. i will seize most of these ids okay. magnificent lets just get. hello international operating and spot if we can. see that seem in in discord. so instance of creating a dynamic module.
With config i guess it has one of a kind. approaches to do this uh carl do you know what. the difference is between these. alternative ways so you have got. 4 routes and then you have got 4. direction async so async i am guessing it is. gonna attempt to retain loading up the. task whilst this happens in the. history. so is that more effective did you know um. to be sincere i didnt decide whats. different. myself um i believe if you use um for. direction async. you could circulate um exceptional services for. instance if you have. um the token into um within the dot. n dot enb dossier um you may flow. you could inject the config service whilst. developing um. the module um. that is the use case i see ok um in my. repo i. did it um with environment. variables okay um i didnt do it um. the manner that i tough coded a token into. the use factory technique. um ought to we have a look but i believe.
Its it is it is only a option. lets take a look and we can actually. exhibit people um which. dossier would be a module. ok yeah so that you let me have a look yeah. you will have to have the youtube open. um if you want to see it its in. in my repo its in a bot folder and then. um thiis called config provider. discord config oh no longer the spec discord. config carrier. obtained you i see ok and there i. injected um the config services the. config carrier um which reads the. env file i see. okay received you ok that looks particularly rather. smart. ok im gonna attempt to retain it excellent. first rate simple. um yet i am unable to placed it in that dossier but i. do not ever want to see at the live. circulate all my tokens. so i should have a thing i must have. suggestion this before. what does uh um everybody else thinks. um aditya why are so many followers. still displaying 10 even after so many.
Follows. um it takes time for those numbers to. update i believe theyre all jogging on. extraordinary microservices on github so. whether you get a large number of fans it. might not take monthly 24 hours to. actually update to what the realistic. numbers are okay so im trying to assume. i could do that and ii could you continue to. use the config i cant inject youre. right i see what you suggest i am unable to inject. the config carrier to get them out as. environment variables right. ok um what you can in all likelihood do. um im not really sure if it really works is um. reference. method.n straight im not using the. yeah um the config carrier this can work. but. uh now not no hundred percent guarantee yeah. no its good lets test it lets. test. um so we are going to all learn whatever new if. it really works or if it doesnt. so the um we might do that for now.
Um yet it isnt whatever that id. variety of dedicate and did and install but. anything for locally simply. for uh facts of suggestion i feel works so. if i go to. the discord it is a discord module yet to. the the module. im not gonna um do anything. i believe carls assignment is far better. check out that for uh reference. but im just doing this to illustrate so. lets take a look. whats their bot gateway besides. can i click that export bot gateway. um lets have a look. shes performed somewhat of analysis previously. right here we move here is the gateway correct okay. so. on prepared occasion ready log it ok that. is smart got you. ok lets take a look in order a typical. developer. ill do various replica and paste. so we have module weve got imports. um so it is going to be an import um. lets have a look so it is discord and.
Sjs lets copy. that import at the tip. ok and then i will seize. this import i think its. there there we pass so. due to the fact we want to retain the import array. and we paste that in. that appears you know not too bad oh no longer. dot. comma every person following alongside lets. have a look and spot. so um that isnt completely satisfied okay thats just. the. uh the lacking trailing comma. ok awesome the others have it as well. so correctly that is an improvement people. could make to the documentation. in case you appear this ones the the last one. it has a trailing one. um this ones the last one has a. trailing comma but this one doesnt so. when you reproduction and paste this you get an. error. so let me um proportion this task of. everyone. in um. in the chat and someone can raise an. issue and really raise a pull request. and so you do not once you replica and paste.
this instance you dont get an mistakes. right lets have a have a look um. we have some questions in the chat. lets take a look uh uh aditya. says so many left tabs in vs code. what are these oh those ones down the. side. ah okay good question so. i need to control discord to boot. ensure no ones elevating their hands. to to arise. if you do permit me know in the chat so um. the tabs ok obtained file that is the same. as everybody elses i believe seek the. identical. what is transformed to the source code um i. shouldve executed a devote before i started. making changes to this i always do like. an preliminary. style of devote i might do that now and. then. this one is the debugger then its the. remote. this one remote explorer i used to be simply code. areas thats for code spaces. thats the plugins so ive all my. plugins established.
Um lenses get lenses which just gives. you an perception into your. type of your your task and stuff ok. lenses just obtained removed unsure what. occurred there. uh live share uh to do studios is truly. beneficial. um when you form of put i like this. due to the fact people simply placed todos. anywhere. and then overlook that they they happened. and they go oh well. you know but now im able to get a catalogue of all. the todos which have. appeared in the project and that i can simply. go to them instantly. and just go and fix them and remedy them. or if theyre out of date simply remove. them so i actually that is like one among my. well known tabs. enormously propose having that uh thats. azure its i use this for i. suppose due to the fact you need to use the azure. service to hook up with a database. but i dont use that anymore i might. actually get rid of which can i uninstall it.
Um i can probably just get rid of that uh. lets have a look at this ones a new one whats. this one. 100 days of code yeah i dont use. that one so much anymore either what. else have i got down here docker and. code time and mongodb. i might be have got to variety that up um. there is a lot there that i dont. actually use. so thank you for putting it out so i admire. everyones questions. uh i have never seen these tabs in vs code. uh. i work with yeah i have added them on and. i might be dont need all of them. yet let me know which ones you will use. out of those not likely too many. live code share is really useful lets. uh. lets take a look um. whats the reason for utilizing typescript. with nest uh nest by way of default. makes use of typescript and typescript is simply. freaking amazing ask nick. whilst nick arrives presently youll see. that typescript is marvelous.
Um lets have a look okay so i want to. do actually ill undo this for a. second im simply going to type of. so let me do an undo and it is often a. well inspiration. undo that after which im going to save it. and iim going to do a commit so if i do. if i clear my console. and i do a status i have all of these. i believe theyre all safe to commit im. just checking. theyre so lets do um a get advert we are going to. upload all of them so now it will be. we are going to do a catalogue lower back you may you could. see all those i do know what some of you. are saying you are asserting eddie. why are you not using uh vs code to do. this im simply so used to the command. line for doing this. uh ok after which im gonna do a devote. so im gonna say preliminary nest dedicate or. whatever like that. so um after which characteristic preliminary. nest js assignment simply so i do know that if i. mess anything up i will simply revert again.
To this so ive dedicated i dont even. ought to push it. its dedicated and i want to redo what i. had right here. um there we cross so i have reddone what ive. came so i have this again returned. okay so those tokens definitely do not. paintings. what were going to try and do is as. carl recommended and simply use the process. um and then i am gonna i will take my. terminal. off the display screen briefly and set the. environment variables for the tokens and. then bring it back. so uh lets examine i believe the guilds enable. and deny is okay and. allowed instructions and and so on is. fine web hooks i dont think we need do. we need web hook identification and token i do not. think we do. i may well be incorrect i believe the only. mandatory um residences are token and. command prefix. remainder uh is fine lets. uh remark all of these out if i. remember in fact. that sounds well no problem we will try it.
So i want to use a different command to. every thing else in order that we all know we are. simply focusing on this spot. i desire to use percentage which isnt. something we would use if and when we deploy. it. yet um lets uh lets have a look. oh what is an sjs ok wonderful question so. thanks greatly for the the question. uh elusive code. so the question is the question is um. permit me bring up your query at the. display screen i ought to actually get more um. prepared at this i get carried away. with coding. and so on so here we cross well query if. ive. missed any questions im over right here so. im nonetheless here. if ive overlooked any questions you only. kind of wait a couple of minutes and replica and. paste it returned in. so subsequent js i need to explain this. in fact it is constructed on top of. um convey and its. used for build its a frame of establishing. apis and its encouraged.
with the aid of angular dont run away and get scared. but which angler became prompted by like. kind of spring. so its really kind of that framework. mentality its really nice youve got a. lot of tools there ready for you. http client you can do that you desire um. cyber web sockets you wish guards you need to. preserve it is advisable to certain. middleware its it has got a large number of it. constructed you need a logger as i discovered. the day past with carl. once we were speaking about this you wish. a logger its got a vanilla one in-built. definite possible upload extra to it and. customize it but it has got a superb. starting point for for every little thing so. that is a. certainly extraordinary query i am hoping i. didnt pass over any others i am trying to. have a skip and take a look um. pr discord.js despatched thanks . oh awesome nice ok. so you sent a pr to that project. and merits a shout out thats a green.
Square for you and uh. thanks so much for doing that thats. magnificent. since you understand i saw it as a kind of. squiggly line and ii thought right i know. it is only a comma. and iit is just a comma and ii know plenty. of folk say i shouldnt make. contributions which are just aa space or a. comma. but when somebody copies and paste that. like i did the instance. code into their project and they see. this underline or they run the task. and it fails. they pass you can check here oh it would not paintings they do not. recognise that something. um is to something simple they wont. recognize if theyre new to. that kind of project or even new to node. and pritier and linto and all the rest. so i feel the exles must be. bulletproof and may. paintings so definite anything like that. obviously send in a repair is actually. surely significant. have you learned new javascript.
Libraries fastly i have not checked out. fastly yet ive heard persons you know. speaking about a lot. what issue turned into to be raised in the repo. i feel it obtained raised already. i believe so uh aditya beat you to it. adithya sorry my bad there is a. uh its very very small on my on my. display screen down there but there is an additional. letter. um i havent any task ok son. kara. really wants me to respond so earlier than we. get into the coding let me. have a look at this query all of you. be at liberty to respond to boot. its outstanding for everyone to have. unique views i have no. tasks finished till now but i do know html. css js python. and likewise dont have any git repos to do. please tell me what to do. create a git repo i am certain you have got. those apart projects create them percentage. them on github and become a member of us on discord. and you will just type of snowball from.
There. its uh you simply acquired type of you can not. exercise session at the fitness center. if you havent kind of long past to the health club. so visit the gym after which. attempt any workout and then youll youll. youll find much more workouts on the. health club that youll do in machines that you. can use. um and uh dtr says already answered so. hopefully that facilitates i admire seeing. unique. peoples views ok eddie sufficient. speaking lets attempt to do some coding. um correct so this one we can say it is. approach dot n dot. allow me see what i name it in the other. assignment simply. so i can not i will not oh dont mean to. area that what am i doing. um im gonna open a terminal over here. just so i can get the token but nobody. inspect any other terminal. you cant its aanother display screen im safe i. imagine i am well. uh and permit me just get the the name of. the token so.
hopefully it should be first-rate. lets have a look um you recognize what i. might do i could begin i have. an easier notion i understand how to get this to. work okay everybody bear with me. dont worry all is good were we can. paintings it out between us. so if we cross um. lets have a look correct so i have a. terrific thought i want to convey this terminal. over to another screen and iim going to. start the assignment from there. after which any other instructions i run ill. run in vs code. i know you all like vs code and so forth. so uh let me take a look but then i will. in the command after I run it like i said. its aan environment variable so lets. have a look. lets do it so to begin the project i. should have all started the project in fact. before i. even positioned this in correctly there is. another thing i should achieve this what i. might in fact do is undo all that again.
And again human we must always check the. task works before. we attempt to customise this this is returned. to what we had earlier than. and lets start run the task so if we. examine the documentation. the project is likely to be npm. run start but lets. double investigate and see. what it says first steps install it it. tells you what. files get created i like the style that. it does it npm run start. so im able to do it on the screen so you can. see we will do. npm run begin and then within the browser we. should have a hey world api. thats how easy it is to get an api i. have got a video in this uh going into. extra facts i published a few days. in the past on wednesday. where we really get data from githubs. api and merge it with information that weve got. in the appliance. so thats up and jogging lets visit. localhost or not local hack day.
i feel 3000 and you can find its totally. small um. hi there international so we all know that works okay. amazing so permit me take this off display screen. let me positioned the um token. for discord and lets take a look. um and then hopefully. npm run begin. so the task ought to run returned and we. ought to see. no difference all ought to be well its up. and jogging you may believe me on this. and so if i reddo this. and the name of it really is discord token no. surprise there. and you shouldnt see it and we arent. using these so lets simply depart those. out. i like vs code typescript all this. magnificent stuff. ok so hit save the project ought to. restart. it didnt i dont know why let me begin. oh no theres a dev mode aha theres a. dev mode for the assignment. so if i go back to the documentation and. i return to. cli over in case you let me examine i do. keep in mind seeing.
Uh yeah npm run begin dev so it watches. for adjustments that is what i should have. completed npm. run begin dev. still with the token im enormously sure and. if i go to localhost 3000 back. no longer localhag day 3000 continues to be up and. running. you can not see the token thats terrific. correct permit me catch up on the on the chat. let me see what i what i overlooked. um oh chats going well marvelous i love. it once you all ask questions and chat. between each other its aawesome. uh what did i omit i do not keep in mind. in which i got to uh what is sjs we did. talk about that. uh alicia raised the pr. um thanks for explaining next uh its. ness js sorry no longer. subsequent js so nest js is an api framework. subsequent js is a framework for the front end. for react. it does have some form of backing. features yet its very gentle touch. i did have a look into that but yeah if.
You want a suitable. api id choose an sjs. and you can get up and running as you. noticed actually in minutes. but no hassle ok cool. lets take a look. um. uh sankara i already answered your. question i believe some folks did. to boot. i used to be a typo thats satisfactory okay cool um. well thank you for clarifying okay so weve. bought this up and walking lets have a look at if we. can get howdy international working in. actually in discord so lets have a look at so next. issue we need to do. is weve this i feel this looks. good i dont it is jogging there is not any. mistakes within the console. so the next element we do is usage so we. must create a bot gateway file. ok i mean we are able to do that and duplicate and. paste that in sounds good. okay um i do know carl has accomplished it in. exact module which is. a pleasant manner of doing it i want to keep it. lifeless useless simple for in these days.
i am simply attempting to do a spike to determine if. going ahead could i write a discord. bot with nestjs. um typescript ok lets have a look. paste it in. we will do just a little formatting. there we go okay um. keep that and it may load it lets. take a look. and notice. okay so it may oh good i will. add it there is one more thing ill do uh. the task does not know whatever about. it yet. i have to add it to. um to the module incredibly sure i have neglected. that step. lets have a look probably as a. provider yeah i am trying to search for the. documentation on it. but theyve style of overlooked that step. i have all have i neglected it. permit me see utilization um yeah so thats the. gateway. it makes sense and you need to use the. client decorator ok thats quite. fascinating too theres two how you can do. it you may do it for service. or you can do it with a decorator okay.
that is good to know. um i imply both appear nice and an identical to. me. after which thats for receiving messages. so instantaneously theyre directly to the subsequent. variety of discord bot listener so actually. you are right they havent. theres another improvement to this. task allow me proportion the hyperlink to this. project. i believe i shared it already yet i am. going to percentage it another time um. raise a controversy that and do double investigate. that i am. and this is correct however it seems like. after they give an instance. they do not upload it to the module file so. returned. you know we are able to i may have figured. that out yet carls obviously helping. me which is making it plenty easier i. love pair programming. um yet you recognize someone is doing this by means of. themselves they could get stuck on that. for like two three hours. whereas you know about a lines of. rationalization or code or exles might.
Simply assist them make it a lot less difficult this. is why. its so important for everyones. projects to get other people to look at. it because. they wont be aware of the sure things. which you know once you make assumptions. so lets take a look so. its bot gateway and we will. upload it to providers weve app. service which is nothing. which is changed into auto generated by way of gateway. and if i hit enter. lets bring this up slightly it. should get instantly further at the. exact. yeah weve at the top so lets hit. shop and. the console i should be capable of um. show you now because the token is hidden. that is good. if it does not get hidden i will be very. disenchanted. yet no it i believe its hidden okay and. weve an blunders so lets take a look. lets debug all of it collectively. so lets take a look so places cant. read property ship of undefined.
On on all set in bot gateway line 23. so lets have a look good ok 23 is. javascript so. we do not have the uh the mapping so. we will simply uh remember that we are. looking for on prepared. so on ready changed into saying um. ship ok so we cant this doesnt paintings. ok have we done anything incorrect or. have we discovered one other predicament. um within the assignment lets have a have a. seem. good maybe i did anything wrong let me. check. so once I use this and iits got. a common in it does it got imported in. sjs weve all of the imports. enormously certain i did exactly what they suggested. ish. i believe it obtained the mistake um i believe um. within the app module where you initialized. um the. discord module and you didnt supply a. webhook. url and thats why he cant find get he. cannot do get webhook. purchaser and that is why ship is undefined. oh i see. okay so if okay well factor.
good good observed but i believe you could. just delete this line i feel you dont. desire this. this is in case youre using uh information superhighway. hooks right. okay so it can be done an extra way i. guess correct it is achieved. can anyone simply get purchaser yeah it can. be carried out we get customers. okay oh but there is not any send on there. ok. good we are able to see we can see if we can get. a log correct because it will supply. us the user tag. and all the rest so lets just undo this. for the moment. and go back to what we had comment this. out reserve it if i elevate this. it should reload ideal no mistakes this. time. and it does say logged in as eddie bot. so. it really works it is related to discord so. maybe the next element we will do. is get it to listen for a change on a. command. so lets and we are gonna must come. again to that due to the fact we do desire to ship.
Messages to discord still. so lets have a look um ok. create a handler for receiving messages. by using the field i love it how its just. broken down into. specific documents you do not get those large. files necessarily issues it is all kind. of. taken care of for you ok um. lets uh lets take a look so i am simply. gonna kind of replica and paste this returned. do not do what i do all people and theyve. known as it bot gateway lower back ok so. theyve put it in an analogous file ok so. we will put it in an analogous one. because its an extra 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 just pass import i believe. its appended it up there. nice message does not exist lets have a look at if. it may determine it out. and do an car import besides excellent it.
Has completed. all of it appears fairly quite glad so what. we think. is when it begins. uh whats message come from and it gets. a message so permit me simply read a few. i did not examine this but im guessing. begin so thats the command its looking. for i am guessing. i think we should do it on allow me see. what would be what will be a very good that. i think i noticed on a very good exle. that might be bigger i dont need to do. on every message im watching you i did. that i feel after I changed into having a play. with whatever once and everybody had. someone wrote a message the bot changed into just. spamming all people so you wont try this. lets uh. lets examine let me get closer the chat. when you are having a having a read. band sal can you tell your other uh. channels that supply open source content. and coaching. um not to everyone touches on it i feel.
Yet nobody certainly makes a speciality of open source. like myself. so um yet i will have a look ask and. discord and we will we can. ship you a few a link within the within the . description under to the discord channel. and we are able to chat to you and discover a few. people yet were already discovering. some insects in this in these days so. with a bit of luck somebody has raised the difficulty. that uh what became the problem oh certain including. it to. um the module oh but they do upload it oh i. ignored it if we glance. um providers purchased gateway oh that is. because. certain they did upload it previously ok so. they further it before. and i went directly directly to usage and so. it is a bit bizarre including it earlier than but. the dossier would not exist. id have finished it somewhat. in another way i would done it like a. proper flow. but you recognize it is it is there i simply. think. i would not upload a dossier bot gateway to the.
Module until i create it i always type. of create the dossier first i dont know. what people think um themselves. correct within the chat what do you think. lets have a look obstacle raised. um ok cool. yeah deleting yeah do you i think you. can the issue um. i even im able to placed a remark let me permit me. have a look at the failings and that i can say. oh i discovered it so you cant delete it you. can close it i think it is. ive got upload comma at the top by means of jason. marvelous after which i think did you close up. it already. um but ill positioned a comment and say oh. i found it that it became added up and so. forth. um if thats if that needs to be the. case im completely satisfied to. to lower back you up on that because i. encouraged you to raise it and it changed into a. bit confusing the pass um. wasnt wasnt great um so ok. and ii wasnt interpreting it whilst i was. rushing by means of okay.
let me recognize tell me the issue quantity if. youve uh have. examine it copy and paste uh is ok as a. developer i will create a assignment by. in basic terms replica and paste to create anything. it will be exciting and iimprove my study. competencies your reproduction and paste is good to. start with. um but i feel you must. recognize what you are copying pacing i. imagine once I copy and paste. i simply exit it really works and just sort of. do it once I after I type it out i. actually. assume more approximately it so its kind of not. super yet i am simply aware of time. simply i want to keen to get anything. working and to simply get. my target here isnt to actually realise. every thing is to get anything operating. to work out if. if theres something we should always use going. forward so it is similar to a spike so. i am going to reduce numerous corners. besides i even have a query for.
every person and perhaps for carl as well. who i know has carried out nest um js stuff for. um much more than me is what approximately why. is thiis specific to discord bots so. actually its perhaps now not so much of a. nest query. yet what approximately trying out a discord bot. because it it. does internet sockets so id have tried in. the beyond to mock out the websocket. and ship the info that i desire to the bot. so that. um im able to investigate the response but the. difficulty with that is once I um. ship the data lower back the uh trying out. library style of kills the connection. after which the bot simply keeps trying to. reconnect for all time to the websocket. and so it simply gets into this loopy kind. of loop. i ponder whether anyones validated any. websockets before due to the fact that is necessarily. uh. because its like an attractive. difficulty ok where become i. um right what turned into i doing i was doing we.
Had a start thats what we had. execute command start ok i think. thats it. i believe it is going to run and carl could. understand greater than me. if you are still round is that um i do. the start command iits going to reply. with this lets just deliver it a go so if. i hit shop. ought to reload logged in as eddie bot. perfect. lets increase discord lets take a look. um and allow me go to lets go to the bot. chat. and what become our uh with a percent i. think. if i do exactly test nothing should come up. oh you are might be in the back of my head eddie. its behind your head. sorry everybody my bad permit me make it uh. bring it up its friday. endure with me its friday in fact i make. blunders like this everyday. so test as you can find experiment is there and. um. no reply no comment not anything in the. console nothings modified so the bot. hasnt performed whatever which is well.
So if i do percentage and that turned into our. trigger for our command. experiment i hope it does nothing returned. nothing there. nothing in the console okay not anything is. well and now if i do. percentage test start sorry percentage. begin. i am hoping something happens either in. the console log or within the chat. lets have a look at it worked i imply that is how. rapid its to get. an sjs up with an api and a discord bot. i suggest that is fantastically fantastically speedy right. so now we have. execute command percent start so. for that reason we will do. so many other other things hypot. its because actually i want um to get. our api up with a purpose to get the map. submit in the back of me and as persons interact. using. um doing contributions to open resource i. prefer their profile to appear on the map. from github so ive got so many cool. thoughts with that so i maybe ought to. attention extra on.
The api than doing those other things. however the bot. with the bot going down um i want alexa. js up much due to the fact i im in order that . uninterested in everybody just announcing howdy guys. its like now not everyones a guy right here so. um yes so im keen to at least get uh. alex js up on the bot and then we will i. can come again to the the api although im. no longer doing a great deal at the api it is. customarily carl. uh okay oh sorry carl were going to say. whatever. no no um okay every thing satisfactory okay cool. no difficulty um ok so that works so i am. proud of that. and so what one thing we wish to do. in another way is. we dont want a command for alexa js. that is something we dont need we do. actually want a edition wide variety. i do like having the the understanding what. variants are strolling so persons can imagine. good wheres my characteristic i. submitted a pull request to that um so.
it is uh it is good to have a version so. what lets . maybe do i wont get distracted with. that now yet it is going to be good to have a. edition command. um but perhaps ill just difference that to. version and we will not carry out the. version. yet um we will just remind us to put. that in so now. and that ought to be satisfactory it should have. reloaded perfect. lets carry alexa alex js not alexa. alex js so we need that to trigger on. each message. so lets have a look what we are able to achieve this. if we go to the docs i did see anything. subscribe to the event. and we want to join every. message and were unlikely to reply but. we are able to have a look so. lets take a look if we i need to put in. an analogous file for now and we could. always. uh separate this out later if you wish. um we want the on. annotation and i am not likely to respond.
But if its not the bot lets do a. console log um. simply to be able to see within the log console. and there is an magnificent oops not intended. to try this. there is aan awesome logging inside sjs. but i am not gonna do that as we speak i am. just gonna say um. lets log the message so yeah simply log. the message. message dot well i did not see what it. turned into. it changed into as an exle what its. message dot um. can i get the content material of it now not author. content material here we go. there we move so ought to i see it optimistically. within the console log. that ought to reload lets return to the. bot. long term no see eddie yet. uh yeah nest js spot. okay um right i am sorry there you go. see in the console. right no longer behind my head is it ok so. thats coming via so we know for. each message. so some other person can write a message in. the in the bot. chat channel and that i desire to see that it.
Also comes up within the console and its. not just from me. so i want to show proof to every person. and myself that it is n

Leave a Reply

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