🤖 Build your own discord bot in Node.js on Glitch coding site for free.
✨ TL;DW ✨
0:05 Install npm package
0:35 Create a function to handle command with argument
1:50 Create timezone command
2:38 Loop and push every single zone and datetime into a new array
3:30 A little error handling
4:10 A little code refactoring
6:30 More responses from the bot
✨ LINKS ✨
Moment.js documentation :
https://momentjs.com/timezone/docs/#/...
https://momentjs.com/docs/#/displayin...
JavaScript switch statement :
https://www.w3schools.com/js/js_switc...
Source code on GitHub:
https://github.com/kimeowsph/discord-...
✨ CREDITS ✨
♬ MUSIC ▾
/ biscuit
/ lukrembo
Your 👍 or subscribe as support is very much appreciated!
#DiscordBot #NodeJS #Glitch
In questa pagina del sito puoi guardare il video online Process command with argument della durata di ore minuti seconda in buona qualità , che l'utente ha caricato kimsphere 12 maggio 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 97 volte e gli è piaciuto 4 spettatori. Buona visione!