Code your personal Discord Bot - clear Messages (2021)



Code Your own Discord Bot - Aliases (2021)
what is going on guys welcome back to. yet another discord.js academic in brand new. academic well be including. aliases. to our instructions in our discord bots if. you do not know what an alias is. google tells me that it is a fake or. assumed identification. what this implies is for exle as an exle. i create a command. thats play which joins a voice. channel and starts gambling a command. yet as an instance i desire to execute this. very same code. of this command utilizing yet another keyword so. in preference to play. i desire to execute this with pl and simply. by doing. this right here it will nonetheless execute. a similar. code as play and it really is extremely simple. it will be an incredibly quick video but. earlier than i get started i do favor to present. my discord server a brief shout out it. has been like 4 days since we. officially launched. weve over a thousand individuals 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 bit chat vicinity a. little lounge location in case you men want to. talk. to the community so there is going to be. a hyperlink in description to this discord. server. come forward become a member of so lets pass forward and. get started with the actual. code so like i reported very brief video. all youre going to desire is to go to. your message occasion if you are new right here. make sure to watch. the complete event handler video because. we restructured our total entire task. so lets get started right here. in our message occasion weve a const. command and this is equal to purchaser that. commands that gets cmd. we will edit this and do an or so. or. it will 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 and then and. im actually going to repeat aliases and a. dot aliases. that includes and well circulate. in that cmd another time cmd. is thiis constant up here that is simply. rx that shift that to a decrease case. and really were basically achieved. with the message events. now from right here go to all of your comments. and were going to create the aliases up. right here. so aliases colon its going to be a list. and you can start. typing your aliases so for the mc server. we are gonna have three aliases. one is gonna be mc the next one goes. to be mce. determine and the final one were just gonna. write out minecraft. and make sure you set out the comma at. the end put it aside. store everything and every little thing ought to be. walking first-rate lets go ahead and do note. area dot. there we pass it is on-line lets pass into.
Our discord server attempt jogging. the first reliable name of the command. which turned into mc server so mc server. you will find its going to say please. input a minecraft ip after which we will. additionally run. mc it will say please enter my. kind uh whats the other one thats the. mc. investigate and then we even have minecraft. so all of these commands listed below are. technically walking. exactly the same code which is this. however. you know it is just its the aliases its. similar to the known as. um commands right here so it technically. all works i can actually do something. like. mcmc.highpixel.web. 5 five six 5 and there we cross. the physique is gonna work. now what if you wanna use these aliases. as something like a facet command. so in place of strolling the exact same. code maybe i want to have. mc here run a further code than.
This but still have it in an analogous dossier. right here. the way you do this is come each of the way. right here well upload something down. right here in the execute method. and we are going to name it cmd we are. truly passing cmd here. thats this variable you could upload in. any area here i am simply going to feature it. here in the boys in the middle next. message then come here into your. command add it as well what you must. do is replica . all of the code and you just desire to move. ahead. and assess for the cmd. so all you do is do if cmd triple equals. two. and the 1st one is usually going to be. the particular main command so. mc server after which go forward and paste in. your code then come each of the way down. here after which do the subsequent in that case. if cmd triple equals to mc which is 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. that is if cmd triple equals to. uh minecraft and iits going to say. message.channel thats ship again you. men can kind whatsoever you men favor. here. its aactually now not console.log permit me. message that channel. thats ship on the way to see it at the. server. and for the minecraft you may say we. love. minecraft so using these 3 aliases. we are correctly walking 3 special. instructions. in a single command dossier now technically you. could. do varied instructions and its gonna be. no one of a kind than the particular command. handler that we had before yet with this. new command handler we are literally. organizing everything. so you do wanna have your command you. recognize files and everything prepared. it is simply that in an effort to have a you.
recognize an extra alias with one more. operate. i am just showing you so lets move forward. and run this. and now if we do mc. server it really is the 1st command so. please input your minecraft ip. then if we do mc it will say this. isnt a minecraft server. this is not a micro server and if we do. minecraft it is going to say yay. minecraft we adore minecraft. and thats how you actually can run. varied commands in a single command folder. using aliases. more often than not you only desire to use. aliases as aliases. yet generally when youre doing. whatever just like the play and depart. command it is advisable to have them in. a similar. file so you can use the exact same. matters so im able to use. like the voice channel and hold. every thing organized so. that is practically it guys i am hoping you. guys enjoyed if you probably did make sure to.


Awful KPOP DISCORD SERVERS
Welcome gamers earlier than we begin this. video i cannot pressure this enough this. is a case examine this video is by no means. meant to advertise any harassment to. anybody i understand how controversial this may. be I tweeted out Korean pop obtained approximately. thirty people combating in my goodddamn. require like the video I made one. 12 months ago called awful hairy discord. servers Im attempting to infiltrate this. neighborhood and see what its about my god. rather frankly we see it forever. kpop stands and Twitter reprised. replying with fan cams and that is what. we see at the top of the iceberg but I. desired going to be and discover what. its aactually want to be a part of this. neighborhood. so please whether you are a kpop stand. or not do not cross in harass anyone shown. in this video. oh guy Jesus Christ we will begin with. our possess discord account.
My call is mr. kpop scenario 1 I am not. from the kpop community yet Im from. an extra stand community how nice good. these persons deal with me ok i am form of. scared Harry Styles lady friend. you look so dreamy during this picture i am. gonna juice this one. oh yeah batard all God yet awesome Im a. Harry style supporter now time to determine. how these groups will treat me. understanding i am from one other community. so i am not only gonna join kpop servers. Im additionally gonna become a member of anime servers see. how people from the anime servers could. treat me you guys ever heard of kpop. Lord overheard or know whats kpop. kpop Korean pop its a genre I desire to. be a part of that community ok pay attention. right here Harry patterns as someone who got here. from the k12 neighborhood I totally suggest. you do not go too deep into the community. because its a foodstuff i feel that is a.
Really mean assumption i think you just. hate kpop ok listen right here bucko. do your self another fight that you you. can not yourself out Im okay. its aa lot of fourteenyear-old females or. your friend you recognize i do not believe I was. girlfriends Audi likeness. Oh whats this oh this is all in Korean. I do not know Korean IG is trash period. yg interval interval I do not know what that. means. lady friend that is the worst welcome. ooh thats on a bot hello Im looking to. convert ive never heard a kpop but i am. searching for acquaintances oh why are they. making fun of me why do you think it enjoyable. of me Dan two times first. why could I stand two times if I realise. the 1st time is there a rule where I. need to stand someone two times and a. 610 mamamoo dan gee thats a vehicle. enterprise ive never heard their music I. do not know who theyre yet what is this.
It all I do not know what the any of. this suggests I have under no circumstances heard of them. before. does anyone want a position play as BTS. contributors yeah does that a No hear. freeze accredited teethers why cant you. guys who are these persons. idols howdy what she deleted it maybe. it is time for me to go away you are not. gonna remain here though so that you can. find out about kpop i feel out of contact cuz. I dont listen to kpop plenty everybody. starts offevolved someplace should help you real certain. a large welcome start from hearing. London oil that is a resource pal start. with one crew yet what you can start. with BTS if you wish Im deaf although I. cannot hearken to music what why are they. making fun of me are you making enjoyable of. me alright Harry patterns is simply. knocking in the course of the drink how approximately we. begin with that BTS contributors jimin jhope. suga jungkook jin RM ok jungkook is.
the chosen i dont know who any of. those are yet i thinkin ago with. jungkook who I found a kpop server that. hosts karaoke howdy was garyoke with a. karaoke field all right o.k. lets play a. song Im ready please play me Jung Kooks. number 1 hit what is that I simply favor. to sing a jungkook track just get me a. good music okay ok i am prepared ask for. funds get advice. I spread my funds two times there is a exciting. track hi this a lecture room and i say a. little song good buy junk code like this. okay sorry men as much as i am going to help you I know. my manner changed into gonna be later a few week. in the past good time these are pitbull eaters. they devour mr. worldwide any bald people. no that is the worst things occurred to. me this night now i understand how kpop stands. react to other tune perhaps some song. even better than kpop now I know how. they react that is so unhappy its time now.
That ive found out all the secrets. via discord and through many her. aisle and mistake are you prepared to tackle. the big boss which is Twitter group. chats so I got a friend to infiltrate me. into several Twitter institution tracks as a result. will experiment out the community i am placing. the president that kpop stands hate bald. persons were gonna find out how true. it truly is. oh do not ask about the Vin Diesels that. say that is a bar battle I dont need to. discuss that this elf in. my mentions with a similar crusty pop. that reported seeking pictures you are the. one singing me fancams Im simply. responding all right I believe this is a. individual homie yeah this person has been. assisting me infiltrate I am not gonna. expose her call obviously we cant. divulge her secret identity. should I ask my pal how do I. introduce myself and that they mentioned hello Im.
name and im from and then your ultimate. bias is your ultimate bias is jungkook. hi i am Sophie and im from United states and. my final bias is jungkook and im. gonna do that white emoji that simply. teen white females use this one convinced. and a celeb emoji very thats ideal. what is up Sophie are you going to the. video shop on are they Tori now why did. i do know this food its aall over Twitter I. do not stand in even id ok so I have. been off social media a bunch because of. tests and private difficulties. I saw BTS in Hamilton in 2018 yet i want. to purchase my mom this birthday current I. cannot genuinely find the money for the two oh heres a. controversy reaches over father and mother Eddie. day of the week mum and dad. jungkook gave birth to me okay why did. you upload an additional military to the various. truffles in right here most folks here Stan. BTS okay so it is a organization to begin.
Controversy in now all right men. caution ok I dont take heed to kpop I. have no idea what kpop seems like but. lets examine the reactions to a. debatable opinion okay its the. bomb GBH jungkook has been having. disappointing vocals lately I much. favor any other kpop individuals oh wow I. like you already. what are they chatting with me what the do. we like beets sure or not what goes. on right here you deliver off solo stand wives. woo. so its aactually far better than BTS. although nothing incorrect with solo. stands off did you only call me a . this is sort of a bar combat dude this is. like a goodddamn bar combat no I called. them why are you getting all up. in my face limo simply I was okay whatever. you assert then nevermind this army cant. study lm foul excuse me defending you. commute you annoy become actually. protecting you maybe if you knew a way to.
examine perhaps if you stand precise expertise. sis not my fault your brain win blunders. for or for Sophie ask for forgiveness Im sorry. that yall dont have a mind shes just. stand real talent are you 12. convinced yet he is not Im simply gonna supply. putting images somebody already left Oh. 3 spots a fancam i need to discover a. pitbull fancam thats needless to say ok I. said various organizations in these peoples. case flavor thiis sweetie lime foul. justjust-just. okay i have to preserve hitting them with. the mr. worldwide pictures I got to get. more images do my arsenal of pimple. has to grow improved oh oh okay so you. should not have a touch battle of. Arsenals I see determine this out theyre. not gonna expect thiis not one pitbull. two pitbulls. oh oh three pit bulls Oh for pit bulls. Oh five pit bulls oh seven pit bulls can. you stop sitting middleaged guys Im.
now not fascinated people isnt interested. in you friend thats so sad Ive been. kicked out of the sole institution so if you. apologize okay i am sorry it is just a. board seriously should have done that. i am going to delete my tweets at the moment and this. is once I hit him with the true she runs. to laptop turns on logs onto Twitter. deletes bad excursion hits. clenches fist that is not how a. metallic face turns red ok so begin. sweating pull please dont you judge me. in any case he is executed ten movies due to the fact. its performed 0 films actually what is. incorrect along 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 this is the neatest thing ever all. correct no okay this is Eddie exceptional. artist good I better ship mine friend this. is how the true international works very well oh.
This individual genuinely went into my DMS to. ship me pictures of this one artist all. correct that is how they want to play lets. play dude ill pass all Vin Diesel. all night I dont give it look into this. guy the bald head you can simply slap it. guy you can just slap it theres an. underground art is that no one whove. I have asked listens to you up to now am i able to. please proportion with you guys. Sophie please share certain ok my sister. used to think Vin Diesel the rocking. persons work well that is a discovering of. this night its real they are a similar. person see what the hell what is the. difference the other cult began. bashing on me beating my ass and i ship. those people pictures of pitbull and. they dont intellect thanks guys and not. getting mad at my bald guys pigs that is. top notch nice you recognize thiis this changed into a pleasant. group wait did I am getting one kicked no no I.


5 Discord Audio Settings every person must comprehend !!
oftentimes after setting up voice meter. or equalizer apo. a number of youve mentioned that you have. concerns with. discord and many the times that is. actually related to. settings inside discord the audio. settings in discord. routinely it defaults to having a few. matters. on that really shouldnt be on or. in many instances you guys. go in there and you forget which you had. turned matters on like echo cancellation. and whatnot so this goes to be a. rapid video on. what you will have established on your. discord audio settings. lets have a look when youre on discord. in case you go to the bottom. left wherein your call is you could go to. consumer settings and. less than app settings you will find voice and. video in voice and video youll need. your enter and output device. in general as an entire i suggest. choosing the default gadget as your.
Input. and output device in this area as you. can see here i have correctly manually. chosen my. microphone the input gadget that i want. on. discord very first thing well take. a look at is the enter sensitivity if. you turn this. input sensitivity on its going to. automatically investigate. input sensitivity this is really um in. a feeling. a noise gate clear out so if you switch this. off what you spot this is we have a. slider. at the left facet of the slider we have a. yellow facet and on the correct side we. have green. the yellow portion of this meter is. correctly. muted audio so if i were to turn this. down it would set my noise gate down at. detrimental seventy five decibels i want to move forward. and just hold this at negative 62. to be. honest with you i have already got a noise. gate filter out in-built equalizer apo so i. would probably turn this all the manner.
Down. and iit wouldnt topic yet for your. guyss sake this is aa great way to dam. out historical past noise from coming in on. your microphone. specifically on discord what you are able to do. is just track the. audio of your microphone with out you. talking into it and just block out. every thing that is taking drugs. at the meter right here generally it will. might be take a seat right lower than detrimental 60.. remember in case you have to go too excessive. your voice would be cutting. out and in of the audio scrolling down. to the advanced part. weve a noise suppression made by way of this. enterprise known as. crisp it suppresses history noise. out of your mic this. is in beta it truly is similar to the rtx. voice. ai that came out recently as you guys. comprehend. i suggest simply creating aa legitimate. noise gate clear out and downward expander. on your mic. there isnt any reason to use the noise.
Suppression within discord. if you simply mounted a suitable noise gate. filter out. on your microphone there are. possibilities to this as well you have. realtime noise suppression that can be. set up. as a filter out and setup in equalizer apo. youve the reaffir. plugin that i did a video on lately i. will hyperlink it. in the description below as an entire this. must always be. off down less than voice processing weve. echo cancellation. and noise discount thats wherein matters. get. slightly iffy echo cancellation and noise. reduction generally. creates like a warping influence on the. vocals. generally it can cause your your vocals. to get roboticky. and staticky if you are utilizing voicemeeter. and that additional further processing. on top of the already processing thats. being utilized via. voice meter may cause some concerns there. these ought to definitely be.
Off consistently i do not find them. essential to activate. i do not genuinely see a time where it is. necessary. for these items as i reported earlier than just. establishing suitable filters for. your mic is a better way of going. approximately this but a lot of people have. concerns. with reference with you recognize like telephone. settings things like that youll be able to flip. on. um certain audio settings if you are. using your phone with discord and that i. could see in a few instances where. this may also help computerized obtain. control is actually as much as you this is. going to try and gauge. in which your audio or in which the amount of. your microphone goes to hit so it. will either. enhance the quantity foil or decrease the. volume for you automatically high quality. carrier you need to enable this putting. right here with the intention to have a more robust. priority to your discord.
services over the net a few a few. internet vendors might have a few. issues with this or information superhighway people searching for products. may need issues with this. that again this setting goes to be. as much as you usually having it off is. perhaps a way to go. yet when you are established a commonly used consumer. of discord i may see. a case in which you might want a better. priority. for discord audio in case you do a good number of. calls or. you recognize youve you do company that. way um i could see where this can be. beneficial attenuation is truly going. to be like a vocal ducking or an aspect. chaining apart from its anything that. you are going to hear your self. it will decrease the quantity of different. functions. by using the proportion that you set while. someone is speaking. so that you can have it attenuate other. volume degrees from different resources like. your song or browser audio or online game.
Audio. whilst folks speak or once you. converse by the settings here. usually id count on every person to. have the attenuation. set to 0 due to the fact thats variety of a. unusual aspect to establish for your self yet. if you were attracted to what this. placing does that is what it does. it will in fact lower the amount of. different resources while somebody else is. talking or if youre talking. reckoning on the setting that youve. the audio subsystem usually your. gadgets will correctly. are compatible concerns with discord a. lot of you guys run into this. difficulty in which there is a compatibility. conflict concerning this device. and discord itself you may simply certainly not. appear to get it to work. competently within discord what you could try out. doing is switching the audio subsystem. over from preferred to legacy. or vice versa and that might solve.
The clash. with the compatibility there the last. area this is voice diagnostics. dont really need to dive into this. surely youve 3 settings here one. for displaying. a caution while audio is not being. detected from your microphone. you have use the most recent technology to. catch your screen and use an. experimental technique to catch audio. from. purposes overall these are all of the. settings that you will run into. with discord if you are having a controversy. with discord after establishing. voicemeeter. equalizer apo this is an effective video to. visit or if your pals are going for walks. into any issues or do not know what to. established. in the discord voice settings this. video is an effective. video to reference i also desire to ship. you men over to the equalizer apo video. that i recently did check out the. new preset dossier that ive.
accessible within my discord server and. also just check out how to set up. all these audio settings to get your. microphone sounding. good that is going to complete this. educational guys i know it was a quick one. dont be concerned i am gonna be making it as much as. you men im working on. redoing the voice beater academic so i. wanted to knock out some quick videos in. the interim. so i had time or a little bit of wiggle. room as some distance. as working on these video clips because. theyre gonna be. large ones and take numerous time if you. men have any questions. after watching this video you recognize in which. to go my discord server link is within the . description. below if you like this video do me a. good hit that like button and subscribe. for extra content material like this. and iif youre attracted to investment this. channel and my discord server.


constructing a Discord Bot using NestJS - let#39s pair software
Ok hello everybody weve one minute to. cross i presumed lets simply begin im prepared. to go. and i am exquisite enthusiastic about in these days um. from honest evaluate ive had rather a long. day its been first-rate dont get me wrong. so i am a bit sort of you recognize. tired so. i do know youre all gonna help me uh work. in this task collectively and im quite. keen because. eddie bot has been taken offline it had. a few obstacle i had a quick look and i. could not recognize what changed into incorrect with. it. so i assumed good eddie bot turned into just a. prototype i wanted to switch it. i did see that nest js which were. building our api with has a very good. um library that lets you write. discord bots with it. and but you get the massive advantages of. an sjs with all the different. hooks and guards and just a number of. magnificent stuff. so i presumed it might be quite fascinating.
to take a look at that so youre gonna. see me. uh begin it from scratch today and maybe. wrestle. yet dont be concerned uh carl who is on radio. eddy with me. or aka julian um he has finished it already. and uh permit me uh allow me increase uh. carls github page. so you can see kyles female page numerous. green squares. recently in the last sort of couple of. weeks which is wonderful that is magnificent. its appropriate after which if we scroll. down right here permit me make it just a little. bigger for you all. if we scroll down right here youll see nest. js. discord alex js so kyle has already gone. ahead and done it yet i want to benefit. how to do it so i presumed. um i am going to i am going to start from scratch and also you. know we are able to all do it collectively and do not. forget we do have. the stargate repo which 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 we will see. how we get on but yeah deficient eddie bot is. lower than the elements. and isnt working at the moment so how. is every person within the chat seem. uh say hello within the chat its um marvelous to. see what youve all been up to today i. hope youve a good week its the. weekend which means quite a few open source. and weve uh prathamesh has already. first on the mercy red became moment carl. was 0.33. good i used to be moment but you know i do not. count number um. sassy adithya marvelous to have you ever all. right here lily. jason long term no see jason karuna how. you doing karine i am hoping youre good. mikey long time im hoping paintings is. going well you are not working too hard. felix amazing to have you all right here do. say hi. to each other and very well it is. collaboration not only with me but. among one another develop your community and.
we will all be taught from each other. so thats marvelous uh okay. and and uh certain wed like um. eddie bot or alex alex js and ii think in. the chat so persons dont say howdy guys so. a lot. um so definite awesome to have you here lets. get started so. um correctly you recognize what earlier than we. guess coding i would like to start thiis right. from scratch. youll find ive got my terminal right here. ive like accomplished not anything we can do. every thing from scratch. uh let me um say hello to carl who is on. radio eddie and carl can provide themselves. a shout out perhaps talk about many of the. matters theyve been building. at the api for our neighborhood is going to. underpin. our live move sort of you recognize stay. map wherein all your destinations are which. we had a prototype before. and likewise the discord bot so carl how you. doing hows your week been. i am glad to have weekend now uh i am.
pleasant. awesome actually allow me convey um discord. over right here so everyone could also see that. besides at the live stream. cool certain the weekend is right here that is well. so i hope you are gonna have a destroy and. youve achieved lots of coding on our api. um this weekend yet im hoping you are gonna. so this week i am hoping you could have a smash. as well. oh i its aactually really uh relaxing i. savour. coding um for this assignment magnificent. thank you ok that sounds cool so i. desire to start so my. my first inspiration and im possibly going. to make a few blunders but. um you recognize im im confident between. anyone we can figure it out. ill pass into my repos directory. where i create all my repos. and actually permit me additionally drop. um carls github in the chat. or go provide carl um a comply with. carl has no followers on github i am going to. be the 1st and with any luck you will get.
some more to boot. okay so it truly is how we will do it. i believe first thing that i should. perhaps do first. is create an sjs task so lets see. how this goes. an sjs documentation good area to start. um i have needed to play with plenty of. little bits in sjs. and as our apa evolves ive been. gaining knowledge of tons about form of guards and. middleware and all remainder. i like it how i had to play with. websockets how you can get his stay chat. operating genuinely soon. and theyve genuinely thought about this. framework its all built on exhibit so. its a bit maybe building on one. what all of you recognize already so do have. a look into this i am very very impressed. with it. so first steps it is might be a great. region to begin install it globally. i think i perhaps received it create new. project. hmm create new project i am going to just create.
a brand new task for now. i must add it to an present one to. get it deployed yet we will fear approximately. that. later so let me create a new project. what ought to we call it. uh ill just name it discord bot um. okay it is new lets pass wait a few. seconds. npm or yarn lets pick npm i admire. vanilla preserve every thing vanilla as. possible. um lets have a look uh. koalaa happy hubbers sure precisely completely happy. hub became all. and uh adithya um why sad. im hoping i mentioned your call right have. you no longer sad due to the fact i pronounced your. call incorrect. lets uh lets have a look at everybody looking. dont forget give this video a thumbs up. really allows uh help the chat. lets placed the chat weve assist. channel that is not a very good start. okay we do the failing sounds should be. a failing sound but persons on radio edit. you cant listen it.
Uh lets have a look um. okay uh okay so its created i feel. we are well so now weve created lets i. necessarily do i necessarily head into the project. so we pass into discord bots. after which i always open um the vs code. correct you recognize all of us like vs codes. so lets carry this over here so you could. all see it. and ill make it way larger there we cross. you all understand bs code im sure ok. so what. subsequent lets have a look she created it. ok so now i want to truly might be. bounce. directly to the um. uh the what do you name it the package. that were gonna use for an sjs. to create discord so it says. setting up we need to. install these two things and we have used. discord js before. so the only additional type of new one. to us is the. nest js edition so lets have a look so. lets simply install that. npm set up lets cross so thus far its been.
All a copy and paste. lets take a look um. oh what we received within the within the chat um. two followers by the way marvelous thank. you a lot that is marvelous lets get. lets have a look at if we are able to get carl to ten. followers today. thanks oh i see thats why karuna. thanks a lot right i im not the. the sharpest toy in within the in the field as. the expression says but queen is saying. yes uh adithya maybe unhappy due to the fact no. fans. i agree i used to be sad too lets examine if we. can get double figures. awesome ok so now weve set up that. lets have a look at what next. i am already stuck no i am jokking um okay. so next is asserting we have i am going to have a. token im able to grab a token that i have. earlier than. im able to grab these kinds of ids okay. amazing lets simply get. whats up world working and notice if we will. see that appear in in discord. so exle of making a dynamic module.
With config i assume it has specific. ways to do this uh carl do you know what. the difference is among those. other ways so you have got. 4 routes and then you have got 4. route async so async i am guessing it is. gonna try to preserve loading up the. project whilst this occurs in the. background. so is that extra effective did you know um. to be honest i didnt decide what is. one-of-a-kind. myself um i feel if you utilize um for. route async. you may circulate um exclusive people searching for products for. exle when youve got. um the token into um in the dot. n dot enb dossier um you could circulate. you may inject the config provider when. growing um. the module um. thats the use case i see okay um in my. repo i. did it um with environment. variables okay um i did not do it um. the style that i hard coded a token into. the use factory technique. um should we take a look but i think.
it is its its only a choice. lets have a look and we can actually. exhibit people um which. file will be a module. ok yeah so you let me have a look yeah. youll have to have the youtube open. um to be able to see it its in. in my repo its in a bot folder after which. um thiis called config carrier. discord config oh no longer the spec discord. config provider. bought you i see okay and there i. injected um the config prospective customers the. config provider um which reads the. env dossier i see. ok got you okay that appears particularly really. clever. ok i am gonna try to hold it super. fantastic easy. um yet i am unable to positioned it in that dossier yet i. do not ever want to see on the live. circulate all my tokens. so i have to have something i should have. suggestion this earlier than. what does uh um every person else thinks. um aditya why are such a lot of fans. nonetheless displaying 10 even after so many.
Follows. um it takes time for those numbers to. update i believe theyre all running on. distinctive microservices on github so. no matter if you get a large number of fans it. will possibly not take monthly 24 hours to. actually replace to what the simple. numbers are ok so im attempting to imagine. i may do this and ii could you continue to. use the config i can not inject you are. right i see what you mean i can not inject. the config provider to get them out as. surroundings variables correct. ok um what you can in all likelihood do. um i am not quite certain if it works is um. reference. procedure.n immediately im not using the. yeah um the config service this can paintings. yet. uh no longer no hundred percent warrantly yeah. no its good lets attempt it lets. experiment. um so we will all be taught whatever new if. it works or if it does not. so the um we would do this for now.
Um yet it isnt anything that i would. form of devote and did and deploy yet. anything for domestically simply. for uh evidence of concept i believe works so. if i go to. the discord it is a discord module yet to. the the module. im not gonna um do whatever. i think carls assignment is far better. look into that for uh reference. but i am just doing this to illustrate so. lets have a look. whats their bot gateway as well. am i able to click on that export bot gateway. um lets have a look. shes done slightly of research earlier. right here we pass this is the gateway correct okay. so. on prepared occasion prepared log it ok that. is sensible received you. ok lets take a look in order a typical. developer. im going to do numerous reproduction and paste. so weve got module weve imports. um so it is going to be an import um. lets take a look so it is discord and.
Sjs lets replica . that import at the end. okay after which i will seize. this import i believe its. there there we pass so. because we wish to keep the import array. and we paste that in. that appears you recognize not too bad oh no longer. dot. comma all people following along lets. take a look and see. so um thats not joyful ok thats simply. the. uh the missing trailing comma. okay awesome the others have it besides. so correctly that is an improvement people. could make to the documentation. if you look this ones the the last one. it has a trailing one. um this ones the last one has a. trailing comma but this one doesnt so. once you reproduction and paste this you get an. blunders. so allow me um percentage this assignment of. all people. in um. within the chat and someone can enhance an. challenge and really enhance a pull request. and so you do not once you reproduction and paste.
this instance you dont get an errors. correct lets have a have a look um. weve a few questions within the chat. lets have a look uh uh aditya. says so many left tabs in vs code. what are those oh those ones down the. aspect. ah okay well question so. i have to control discord besides. ensure no ones elevating their palms. to to arise. in case you do allow me understand in the chat so um. the tabs okay got file thats the same. as everyone elses i believe seek the. equal. whats transformed to the source code um i. shouldve finished a commit before i started. making changes to this i necessarily do like. an initial. form of commit i would try this now and. then. this one is the debugger then its the. remote. this one remote explorer i used to be just code. spaces it really is for code spaces. this is the plugins so ive all my. plugins hooked up.
Um lenses get lenses which just gives. you an perception into your. sort of your your assignment and stuff ok. lenses simply acquired removed unsure what. happened there. uh live percentage uh to do studios is truly. useful. um when you form of placed i admire this. because persons just put todos. everywhere. and then neglect that they they happened. and that they move oh well. you know yet now i can get a listing of all. the todos that have. looked within the task and i can just. go to them straight away. and simply move and fix them and remedy them. or if they are out of date just remove. them so i really thats like one in every of my. trendy tabs. highly recommend having that uh thats. azure it really is i use this for i. suppose because you need to use the azure. provider to connect with a database. yet i dont use that anymore i might. actually eliminate that may i uninstall it.
Um i can most likely just eliminate that uh. lets see this ones a brand new one what is. this one. a hundred days of code yeah i dont use. that one so much anymore both what. else have i got down right here docker and. code time and mongodb. i possibly need to kind that up um. theres a lot there that i dont. in fact use. so thanks for putting it out so i love. everyones questions. uh i have not seen these tabs in vs code. uh. i paintings with yeah i have further them on and. i possibly dont want them all. yet permit me be aware of which of them youll use. out of those not likely too many. live code share is really helpful lets. uh. lets have a look um. what is the reason for using typescript. with nest uh nest with the aid of default. makes use of typescript and typescript is just. freaking amazing ask nick. while nick arrives almost immediately youll see. that typescript is marvelous.
Um lets take a look okay so i desire to. do actually im going to undo this for a. moment im just going to form of. so permit me do an undo and its always a. good thought. undo that and then im going to reserve it. and iim going to do a commit so if i do. if i clean my console. and that i do a status i have all of these. i think theyre all safe to dedicate i am. just checking. theyre so lets do um a get ad well. add them all so now it is going to be. well do a list again you may you can. see all those i know what some of you. are announcing you are saying eddie. why are you not utilizing uh vs code to do. this i am simply so used to the command. line for doing this. uh okay and then im gonna do a commit. so im gonna say initial nest dedicate or. whatever like that. so um after which feature initial. nest js assignment just so i do know that if i. mess anything up i will just revert again.
To this so i have dedicated i dont even. must push it. it is committed and i desire to redo what i. had here. um there we go so ive reddone what i have. came so i have this lower back lower back. okay so those tokens obviously do not. paintings. what we will try to do is as. carl suggested and just use the process. um and then im gonna i will take my. terminal. off the screen briefly and set the. environment variables for the tokens and. then convey it returned. so uh lets see i think the guilds allow. and deny is fine and. allowed commands and and so forth is. great information superhighway hooks i dont think we need do. we need cyber web hook identification and token i dont. think we do. i could be wrong i believe the only. essential um houses are token and. command prefix. remainder uh is ok lets. uh remark all of those out if i. remember in fact. that sounds well no quandary we will test it.
So i desire to use one more command to. everything else in order that we all know were. just concentrating on this spot. i desire to use percent which isnt. whatever we would use if and when we set up. it. yet um lets uh lets take a look. oh whats an sjs okay extremely good query so. thanks a great deal for the the question. uh elusive code. so the question is the question is um. allow me raise your question at the. display screen i should correctly get extra um. prepared at this i am getting over excited. with coding. etc so here we pass good question if. ive. ignored any questions i am over here so. im still here. if i have ignored any questions you only. kind of wait a few minutes and replica and. paste it weblink back in. so subsequent js i need to explain this. correctly it is constructed on top of. um show and its. used for build it is a frame of building. apis and its prompted.
by using angular dont run away and get scared. yet which angler changed into inspired through like. sort of spring. so its genuinely kind of that framework. mentality it is very nice youve got a. lot of equipment there ready for you. http client you can do which you want um. web sockets you wish guards you must. guard that you need to certain. middleware it is it has got various it. constructed you wish a logger as i discovered. the day before today with carl. after we were talking about this you need. a logger it has got a vanilla one inbuilt. convinced you may upload more to it and. customise it but its got a very good. start line for for every thing so. thats a. genuinely amazing query i hope i. didnt leave out any others im trying to. have a skip and take a look um. pr discord.js sent thank you. oh marvelous pleasant ok. so that you sent a pr to that project. and merits a shout out thats a eco-friendly.
Square for you and uh. thanks so much for doing that that is. awesome. since you know i saw it as one of those. squiggly line and ii thought right i do know . it is just a comma. and iit is just a comma and ii know plenty. of folks say i shouldnt make. contributions that are just aa space or a. comma. but when someone copies and paste that. like i did the exle. code into their task and that they see. this underline or they run the task. and it fails. they go oh it doesnt paintings they dont. recognize that anything. um is to whatever simple they may not. recognize if they are new to. that kind of project or maybe new to node. and pritier and linto and all remainder. so i think the exles must be. bulletproof and may. paintings so certain anything like that. definitely send in a repair is actually. surely significant. have you discovered new javascript.
Libraries fastly i have not looked at. fastly but i have heard persons you know. speaking a few lot. what issue changed into to be raised within the repo. i feel it acquired 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. display screen down there yet there is an additional. letter. um i havent any project ok son. kara. really wants me to reply so before we. get into the coding allow me. have a look at this question all of you. be happy to respond as well. its incredible for every person to have. unique views i dont have any. projects executed until now but i know html. css js python. and also have no git repos to do. please tell me what to do. create a git repo i am certain youve got. those apart projects create them share . them on github and join us on discord. and you may simply sort of snowball from.
There. its uh you just got variety of you can not. exercise session on the fitness center. if you havent variety of long past to the gymnasium. so visit the gymnasium and then. try any workout and then you will youll. youll find much more exercises at the. fitness center that you can do in machines that you. can use. um and uh dtr says already responded so. with a bit of luck that allows i admire seeing. unique. peoples views ok eddie enough. speaking lets try to do a little coding. um correct so this one we will say its. procedure dot n dot. permit me see what i call it in any other. assignment just. so i can not i wont oh do not suggest to. region that what am i doing. um im gonna open a terminal over right here. just so i will get the token yet no person. look into the other terminal. you cant its aanother display i am safe i. suppose i am good. uh and permit me just get the the call of. the token so.
with a bit of luck it should be best. lets take a look um you recognize what i. would do i may start i have. an easier notion i understand how to get this to. paintings okay everybody bear with me. dont be concerned all is sweet were we will. paintings it out between us. so if we cross um. lets take a look correct so i have a. terrific thought i want to carry this terminal. over to a different display and iim going to. start the project from there. after which any other instructions i run i am going to. run in vs code. i do know you all like vs code and so forth. so uh allow me take a look but then i will. in the command when I run it like i mentioned. its aan environment variable so lets. take a look. lets do it so to start the task i. should have started the task actually. before i. even placed this in correctly there is. another thing i ought to do so what i. could in fact do is undo all that again.
And back human we should always determine the. task works earlier than. we try to customise this it is again. to what we had before. and lets start run the task so if we. read the documentation. the assignment is probably going to be npm. run begin yet lets. double check and see. what it says first steps set up it it. tells you what. files get created i love the style that. it does it npm run begin. so im able to do it at the display so you could. see we are going to do. npm run begin after which within the browser we. should have a hi there world api. that is how easy its to get an api i. have got a video on this uh going into. more facts i posted a few days. in the past on wednesday. wherein we really get information from githubs. api and merge it with data that we have. in the applying. so thats up and jogging lets visit. localhost or not regional hack day.
i feel 3000 and youll discover its very. small um. hi there world so we know that works okay. magnificent so permit me take this off display screen. let me put the um token. for discord and lets take a look. um after which optimistically. npm run start. so the project should run back and we. ought to see. no difference all should be good it is up. and jogging you can trust me in this. and so if i reddo this. and the call of it is discord token no. surprise there. and you should not see it and we are not. utilizing those so lets simply go away those. out. i love vs code typescript all this. awesome stuff. ok so hit save the assignment should. restart. it did not i do not know why allow me start. oh no theres a dev mode aha theres a. dev mode for the project. so if i return to the documentation and. i go back to. cli over in case you allow me determine i do. keep in mind seeing.
Uh yeah npm run start dev so it watches. for adjustments which is what i must have. executed npm. run start dev. nonetheless with the token im relatively sure and. if i go to localhost 3000 returned. no longer localhag day 3000 continues to be up and. walking. you can not see the token thats incredible. right let me compensate for the on the chat. allow me see what i what i ignored. um oh chats going well magnificent i love. it once you all ask questions and chat. between each other its aawesome. uh what did i pass over i do not remember. wherein i got to uh what is sjs we did. talk about that. uh alicia raised the pr. um thank you for explaining subsequent uh its. ness js sorry now not. next js so nest js is an api framework. next js is a framework for front end. for react. it does have some form of backing. functions yet its totally light touch. i did have a look into that yet yeah if.
You want a proper. api i would go with an sjs. and you can get up and strolling as you. noticed literally in minutes. but no predicament okay cool. lets have a look. um. uh sankara i already answered your. question i think some other people did. to boot. i was a typo thats best ok cool um. well thanks for clarifying okay so weve. received this up and jogging lets have a look at if we. can get good day international operating in. in fact in discord so lets have a look at so next. element we need to do. is weve got this i feel this looks. well i dont it is strolling there isnt any. errors within the console. so the next thing we do is usage so we. ought to create a bot gateway file. okay i mean we can do this and copy and. paste that in sounds good. ok um i do know carl has carried out it in. specific module which is. a nice way of doing it i desire to maintain it. lifeless useless simple for at present.
i am just attempting to do a spike to determine if. going ahead could i write a discord. bot with nestjs. um typescript okay lets have a look. paste it in. we can do a bit of formatting. there we cross okay um. save that and it may load it lets. have a look. and notice. okay so it may oh well im going to. add it theres one more thing i will do uh. the task would not know whatever approximately. it but. i have to add it to. um to the module particularly certain i have missed. that step. lets take a look maybe as a. supplier yeah i am trying to search for the. documentation on it. but theyve variety of missed that step. i have all have i missed it. permit me see utilization um yeah so that is the. gateway. it is sensible and you need to use the. purchaser decorator ok thats quite. fascinating too theres two easy methods to do. it you may do it for service. or you are able to do it with a decorator okay.
Thats good to understand. um i imply the two appear nice and an analogous to. me. after which thats for receiving messages. so immediately theyre on to the subsequent. form of discord bot listener so actually. you are right they havent. theres another improvement to this. assignment allow me percentage the hyperlink to this. project. i believe i shared it already yet i am. going to proportion it one more time um. increase an issue that and do double investigate. that i am. and this is right however it feels like. when they provide an instance. they do not add it to the module file so. lower back. you know we will i may have figured. that out but carls obviously assisting. me that is making it plenty easier i. love pair programming. um yet you know someone is doing this via. themselves they could get caught on that. for like two three hours. while you recognize a couple of strains of. clarification or code or exles could.
Simply assist them make it plenty less complicated this. is why. it is so significant for everyones. initiatives to get other people to look at. it due to the fact. they wont comprehend the sure matters. which you be aware of when you make assumptions. so lets take a look so. this is bot gateway and we will. add it to providers we have app. provider which is nothing. thats was car generated by means of gateway. and if i hit enter. lets convey this up slightly it. ought to get automatically further on the. exact. yeah we have at the tip so lets hit. keep and. the console i ought to be capable to um. show you now since the token is hidden. that is well. if it would not get hidden ill be very. upset. yet no it i think its hidden okay and. weve an error so lets have a look. lets debug all of it together. so lets take a look so locations cannot. examine property send of undefined.
On on ready in bot gateway line 23. so lets take a look good ok 23 is. javascript so. we do not have the uh the mapping so. we are going to just uh do not forget that we are. seeking on all set. so on all set become asserting um. send okay so we cant this does not paintings. ok have we carried out anything incorrect or. have we discovered one other hassle. um in the task lets have a have a. appear. good maybe i did anything wrong permit me. investigate. so once I use this and iits got. a typical in it does it bought imported in. sjs weve all the imports. surprisingly certain i did precisely what they suggested. ish. i believe it obtained the error um i believe um. in the app module in which you initialized. um the. discord module and also you did not supply a. webhook. url and thats why he cannot uncover get he. cant do get webhook. client and thats why ship is undefined. oh i see. ok so if ok good point.
good well observed yet i believe you could. just delete this line i think you dont. want this. its in case youre using uh web. hooks right. ok so it is performed another manner i. bet right its executed. can anyone just get client yeah it can. be carried out we get clients. ok oh but theres no ship on there. okay. well we can see we will see if we are able to get. a log right because it is going to provide. us the user tag. and all remainder so lets simply undo this. for the moment. and return to what we had comment this. out put it aside if i increase this. its going to reload excellent no blunders this. time. and it does say logged in as eddie bot. so. it works its linked to discord so. perhaps the next component we can do. is get it to pay attention for a transformation on a. command. so lets and we are gonna must come. lower back to that due to the fact we do desire to ship.
Messages to discord nonetheless. so lets have a look um okay. create a handler for receiving messages. by using the field i like it how its just. broken down into. extraordinary documents you arent getting these massive. documents necessarily problems it is all sort. of. sorted for you ok um. lets uh lets have a look so i am just. gonna kind of reproduction and paste this returned. do not do what i do everybody and theyve. called it bot gateway lower back okay so. theyve positioned it in a similar dossier ok so. we will placed it in a similar one. because its a further trigger it is. going to be um. an on command okay lets grab that. put this here what have we obtained so on. command hasnt been imported. we should better just move import i believe. its appended it up there. pleasant message doesnt exist lets see if. it could figure it out. and do an automobile import in addition perfect it.
Has accomplished. all of it appears rather really pleased so what. we think. is when it starts. uh what is message come from and it gets. a message so permit me simply study some . i didnt examine this yet im guessing. start so thats the command its looking. for i am guessing. i believe we must always do it on let me see. what will be what would be a superb that. i believe i noticed on an outstanding exle. that could be larger i dont need to do. on every message i am looking you i did. that i think once I changed into having a play. with whatever as soon as and everyone had. somebody wrote a message the bot become just. spamming everybody so you wont do that. lets uh. lets have a look at allow me catch up with the chat. while you are having a having a read. band sal are you able to tell your different uh. channels that supply open source content material. and coaching. um not to everyone touches on it i believe.
but no one genuinely focuses on open source. like myself. so um but ill take a look ask and. discord and we will we can. send you some a hyperlink within the in the. description below to the discord channel. and we can chat to you and uncover a few. folks but we are already discovering. a few insects during this at present so. hopefully someone has raised the difficulty. that uh what changed into the issue oh convinced adding. it to. um the module oh but they do upload it oh i. ignored it if we glance. um providers bought gateway oh that is. due to the fact. convinced they did add it formerly ok so. they added it before. and i went instantly directly to utilization and so. it is a bit bizarre including it earlier than yet. the file does not exist. i would have carried out it somewhat. differently id achieved it like a. right pass. but you know its it is there i just. imagine. i would not upload a file bot gateway to the.
Module till i create it i always kind. of create the file first i do not know. what people imagine um themselves. right within the chat what do you believe. lets have a look issue raised. um okay cool. yeah deleting yeah do you i think you. can the problem um. i even i can placed a remark permit me permit me. have a look at the flaws and i can say. oh i discovered it so you cant delete it you. can near it i feel it is. i have upload comma at the top 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 became added up and so. forth. um if that is if that needs to be the. case im completely happy to. to lower back you up on that because i. encouraged you to raise it and it changed into a. bit puzzling the move um. wasnt wasnt wonderful um so ok. and ii wasnt analyzing it when i was. rushing by way of ok.
let me comprehend inform me the issue quantity if. you have uh have. examine it reproduction and paste uh is fine as a. developer i am going to create a assignment by means of. merely copy and paste to create something. it will likely be fun and iimprove my research. abilties your copy and paste is sweet to. begin with. um but i believe its important to. realize what youre copying pacing i. suppose when I replica and paste. i simply go out it really works and simply form of. do it once I once I sort it out i. actually. suppose more approximately it so it is a bit now not. first-rate yet i am just responsive to time. just i want to keen to get whatever. operating and to just get. my goal here isnt to truly recognise. every little thing is to get something working. to determine if. if theres something we should always use going. ahead so it is the same as a spike so. ill cut a great number of corners. to boot i even have a question for.
every person and perhaps for carl besides. who i do know has completed nest um js stuff for. um a lot more than me is what approximately why. is thiis specific to discord bots so. in fact its maybe not so much of a. nest question. but what approximately testing a discord bot. since it it. does web sockets so i would have attempted in. the beyond to mock out the websocket. and ship the information that i want to the bot. so that. um i will investigate the response but the. challenge with thats when I um. ship the information back the uh trying out. library kind of kills the connection. and then the bot simply continues attempting to. reconnect all the time to the websocket. and so it simply receives into this crazy variety. of loop. i ponder whether anyones proven any. websockets earlier than due to the fact thats necessarily. uh. because its like an engaging. trouble okay in which changed into i. um correct what became i doing i was doing we.
Had a start thats what we had. execute command start ok i feel. that is it. i feel its going to run and carl could. understand more than me. if youre still round is that um i do. the beginning command iits going to reply. with this lets just supply it a pass so if. i hit save. should reload logged in as eddie bot. perfect. lets bring up discord lets have a look. um and allow me visit lets visit the bot. chat. and what became our uh with a percent i. think. if i just do experiment not anything ought to come up. oh youre perhaps at the back of my head eddie. its behind your head. sorry all people my bad permit me make it uh. deliver it up it is friday. endure with me it is friday actually i make. mistakes like this every day. so experiment as youll find test is there and. um. no respond no comment not anything within the . console nothings transformed so the bot. hasnt finished anything that is good.
So if i do percentage and that turned into our. set off for our command. test im hoping it does nothing again. nothing there. not anything in the console okay not anything is. well and now if i do. percent experiment start sorry percent. start. i am hoping anything occurs both in. the console log or in the chat. lets examine it worked i suggest that is how. quick its to get. an sjs up with an api and a discord bot. i suggest thats relatively surprisingly fast right. so now weve. execute command percent start so. as a result we are able to do. so many other other things hypot. the reason is, in fact i want um to get. our api up for you to get the map. post in the back of me and as persons interact. using. um doing contributions to open resource i. favor their profile to appear at the map. from github so ive got such a lot of cool. thoughts with that so i perhaps should. recognition more 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 i am simply so. bored with every person just announcing whats up guys. it is like now not everyones a man here so. um yes so im keen to at least get uh. alex js up on the bot after which we are able to i. can get back to the the api besides the fact that children im. now not doing a great deal at the api it is. frequently carl. uh ok oh sorry carl well say. something. no no um ok everything great ok cool. no issue um ok in order that works so i am. pleased with that. and so what one thing we want to do. otherwise is. we dont need a command for alexa js. thats some thing we dont need we do. correctly need a version wide variety. i do like having the the knowing what. editions are walking so people can suppose. well wheres my function i. submitted a pull request to that um so.
Its uh it is sweet to have a version so. what shall we. maybe do i will not get distracted with. that now but itll be good to have a. edition command. um yet perhaps i am going to simply difference that to. version and we wont carry out the. edition. but um we can just remind us to put. that in so now. and that ought to be fine it must have. reloaded excellent. lets carry alexa alex js not alexa. alex js so wed like that to set off on. each message. so lets take a look what we are able to achieve this. if we visit the doctors i did see whatever. join the event. and we want to join every. message and were not going to respond but. we will take a look so. lets take a look if we i would like to put in. an analogous file for now and lets . always. uh separate this out later if you want . um we want the on. annotation and i am not likely to respond.
but when it is not the bot lets do a. console log um. just in order to see in the log console. and there is an magnificent oops now not meant. to try this. there is aan awesome logging inside sjs. yet im not gonna try this in the present day im. simply gonna say um. lets log the message so yeah simply log. the message. message dot good i did not see what it. changed into. it become lets say what its. message dot um. can i get the content material of it now not writer. content material right here we cross. there we move so should i see it with any luck. within the console log. that ought to reload lets return to the. bot. long term no see eddie but. uh yeah nest js spot. okay um right i am sorry there you pass. see in the console. right now not at the back of my head is it okay so. that is coming by way of so we all know for. every message. so someone else can write a message in. the within the bot. chat channel and that i desire to see that it.
additionally comes u

Leave a Reply

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