![Under Ctrl](/img/default-banner.jpg)
- 68
- 1 348 505
Under Ctrl
Tanzania
Registrace 5. 12. 2022
Learning and teaching web development! đđ
A Guide to Discord Polls with Discord.js v14
A guide to polls with Discord.js version 14.15!
Discord: underctrl.io/discord
Patreon: patreon.com/UnderCtrl
Buy me a coffee (one-time donation): buymeacoffee.com/underctrl
Newsletter: underctrl.substack.com
Starter project: github.com/notunderctrl/commandkit-starter-project
Timestamps:
0:00 Introduction
0:16 Updating discord.js
0:51 Creating polls
8:33 Fetching and ending polls
11:00 View poll answers
11:59 New poll-related events
Thanks for watching!
Discord: underctrl.io/discord
Patreon: patreon.com/UnderCtrl
Buy me a coffee (one-time donation): buymeacoffee.com/underctrl
Newsletter: underctrl.substack.com
Starter project: github.com/notunderctrl/commandkit-starter-project
Timestamps:
0:00 Introduction
0:16 Updating discord.js
0:51 Creating polls
8:33 Fetching and ending polls
11:00 View poll answers
11:59 New poll-related events
Thanks for watching!
zhlĂ©dnutĂ: 2 262
Video
Iâm Never Making APIs Any Other Way (tRPC)
zhlĂ©dnutĂ 3,4KPĆed 6 mÄsĂci
An overview of tRPC in a full-stack project. đ§ Resources tRPC documentation: trpc.io GitHub repo: github.com/notunderctrl/trpc-overview đ Important links The Code Room (newsletter): underctrl.io/newsletter Discord: discord.underctrl.io Github: github.com/notunderctrl Patreon: patreon.com/UnderCtrl Buy me a coffee (one-time donation): buymeacoffee.com/underctrl
Make a Discord.js Welcome System (Multi-Guilded) đ
zhlĂ©dnutĂ 5KPĆed 7 mÄsĂci
Creating a Multi-Guilded Welcome System (Discord.js v14) đ Starter files (if you don't already have a Discord.js project): github.com/notunderctrl/commandkit-starter-project simulate-join.js code: pastebin.com/urcudYNr MongoDB tutorial: czcams.com/video/edeNqzKvj0g/video.html Caching tutorial: czcams.com/video/vXycKhl0hu4/video.html CommandKit tutorial: czcams.com/video/hUKh0NS1Ypk/video.html S...
đ CommandKit for Beginners - Discord.js Command & Event Handler
zhlĂ©dnutĂ 6KPĆed 8 mÄsĂci
đ CommandKit for Beginners - Discord.js Command & Event Handler đ§ Resources CommandKit docs: commandkit.js.org Starter files: github.com/notunderctrl/djs-barebones đ Important links Dev Notes (Weekly newsletter): devnotes.underctrl.io Discord: discord.underctrl.io Github: github.com/notunderctrl Patreon: patreon.com/UnderCtrl Buy me a coffee (one-time donation): buymeacoffee.com/underctrl â° Tim...
đ§ Learn Discord Autocomplete in 18 minutes (Discord.js v14)
zhlĂ©dnutĂ 4,8KPĆed 8 mÄsĂci
đ§ Learn Discord Autocomplete in 18 minutes (Discord.js v14) đ§ Resources Starter files (CommandKit): github.com/notunderctrl/commandkit-starter-project Dummy data (pets.json): pastebin.com/kJNrnwcv Dummy data (owners.json): pastebin.com/ppme53B8 Source code (private): patreon.com/UnderCtrl đ Important links Dev Notes (Weekly newsletter): devnotes.underctrl.io Discord: discord.underctrl.io Github...
How to Make a YouTube Notification Bot | Discord.js v14 đ
zhlĂ©dnutĂ 6KPĆed 8 mÄsĂci
How to Make a CZcams Notification Bot | Discord.js v14 đ đ§ Resources: Starter files: github.com/notunderctrl/commandkit-starter-project Full source code (private): patreon.com/UnderCtrl CZcams Channel mentioned: www.youtube.com/@RoelVandePaar MongoDB setup with Discord bot: czcams.com/video/edeNqzKvj0g/video.html đ Important links Discord: underctrl.io/discord Github: github.com/notunderctrl Pa...
How to make your own NPM package (Step-by-Step) đŠ
zhlĂ©dnutĂ 25KPĆed 9 mÄsĂci
How to make your own NPM package (Step-by-Step) đŠ đ§ Resources tsconfig.json: pastebin.com/NT2Z7Kas tsup.config.ts: pastebin.com/m7bGKx0d đ Important links Discord: ctrl.lol/discord Github: github.com/notunderctrl Patreon: patreon.com/UnderCtrl Buy me a coffee (one-time donation): buymeacoffee.com/underctrl đ Timestamps 00:00 - Introduction 00:32 - Setting up npm account 00:49 - Authenticating t...
How to use TypeScript with your Discord Bot (and why)
zhlĂ©dnutĂ 11KPĆed 10 mÄsĂci
How to use TypeScript with your Discord Bot (and why) Source code: github.com/notunderctrl/djs-ts-bot Discord server: ctrl.lol/discord Patreon: patreon.com/UnderCtrl Buy me a coffee (one-time donation): buymeacoffee.com/underctrl Thanks for watching!
Boost your Discord Bot Performance with Redis âĄïž
zhlĂ©dnutĂ 6KPĆed 10 mÄsĂci
Boost your Discord Bot Performance with Redis âĄïž đ§ Resources Redis download: redis.io/download Redis download guide for windows: redis.io/docs/getting-started/installation/install-redis-on-windows/ Redis remote cache: redis.com/redis-enterprise-cloud/pricing Upstash [redis] remote cache: upstash.com Example connection string for remote cache: "redis://username:authpassword@127.0.0.1:6380/4" Sou...
đ Create a Chat GPT Bot in Discord (with GPT-4)
zhlĂ©dnutĂ 48KPĆed 11 mÄsĂci
đ Create a Chat GPT Bot in Discord (with GPT-4) Hereâs how you can make a Chat GPT like Discord bot (with support for GPT-4) that works in multiple channels! đ§ Resources Source code (private): patreon.com/UnderCtrl Node.js: nodejs.org Visual Studio Code: code.visualstudio.com Username regex: msg.author.username.replace(/\s /g, '_').replace(/[^\w\s]/gi, ''); đ Important links Newsletter: devnote...
đ§ Learn Select Menus in 17 Minutes! (Discord.js v14)
zhlĂ©dnutĂ 16KPĆed 11 mÄsĂci
đ§ Learn Select Menus in 17 Minutes! (Discord.js v14) đ Important links Starter files: github.com/notunderctrl/commandkit-starter-project Dev Notes Newsletter: devnotes.underctrl.io Discord: discord.underctrl.io Patreon: patreon.com/UnderCtrl Buy me a coffee (one-time donation): buymeacoffee.com/underctrl 0:00 Introduction 0:20 String Select Menu 10:10 Role Select Menu 13:58 Channel Select Menu ...
đŹ Discord Message Collectors | Discord.js v14
zhlĂ©dnutĂ 4,5KPĆed 11 mÄsĂci
đŹ Discord Message Collectors | Discord.js v14 đ Important links: - Starter files: github.com/notunderctrl/commandkit-starter-project - Source code (private): patreon.com/UnderCtrl - Discord: discord.underctrl.io Patreon: patreon.com/UnderCtrl Buy me a coffee (one-time donation): buymeacoffee.com/underctrl Thanks for watching đ
đ How to Scrape the Web with Node.js (Puppeteer)
zhlĂ©dnutĂ 3,1KPĆed rokem
đ How to Scrape the Web with Node.js (Puppeteer)
Does Your Bot REALLY Need a Dashboard? đ€
zhlĂ©dnutĂ 7KPĆed rokem
Does Your Bot REALLY Need a Dashboard? đ€
đ§ Multi-Player Rock Paper Scissors Bot Tutorial (Discord.js)
zhlĂ©dnutĂ 7KPĆed rokem
đ§ Multi-Player Rock Paper Scissors Bot Tutorial (Discord.js)
đ Create an ADVANCED Suggestions System (Discord.js)
zhlĂ©dnutĂ 18KPĆed rokem
đ Create an ADVANCED Suggestions System (Discord.js)
Discord Button Collectors đïž Discord.js v14
zhlĂ©dnutĂ 16KPĆed rokem
Discord Button Collectors đïž Discord.js v14
Context Menu Commands Guide | Discord.js v14 đ€
zhlĂ©dnutĂ 8KPĆed rokem
Context Menu Commands Guide | Discord.js v14 đ€
Build a Responsive Personal Portfolio with HTML & CSS | Full Beginners Tutorial đ„đ
zhlĂ©dnutĂ 4,9KPĆed rokem
Build a Responsive Personal Portfolio with HTML & CSS | Full Beginners Tutorial đ„đ
Gamble Command | Economy Discord Bot đ€ (Discord.js v14)
zhlĂ©dnutĂ 3,4KPĆed rokem
Gamble Command | Economy Discord Bot đ€ (Discord.js v14)
Server Info Command đ Discord.js v14
zhlĂ©dnutĂ 3,8KPĆed rokem
Server Info Command đ Discord.js v14
Balance Command | Economy Discord Bot đ€ (Discord.js v14)
zhlĂ©dnutĂ 2,3KPĆed rokem
Balance Command | Economy Discord Bot đ€ (Discord.js v14)
Create Modals in Discord | Discord.js v14 đ§
zhlĂ©dnutĂ 14KPĆed rokem
Create Modals in Discord | Discord.js v14 đ§
Cooldowns + Beg Command | Economy Discord Bot đ€ (Discord.js v14)
zhlĂ©dnutĂ 2,9KPĆed rokem
Cooldowns Beg Command | Economy Discord Bot đ€ (Discord.js v14)
Connect to Database + Daily Command | Economy Discord Bot đ€ (Discord.js v14)
zhlĂ©dnutĂ 5KPĆed rokem
Connect to Database Daily Command | Economy Discord Bot đ€ (Discord.js v14)
Make an AI Image Generator Discord Bot like Midjourney đšđ€
zhlĂ©dnutĂ 37KPĆed rokem
Make an AI Image Generator Discord Bot like Midjourney đšđ€
How to make a Discord Bot đ€ | Economy Bot (Discord.js)
zhlĂ©dnutĂ 13KPĆed rokem
How to make a Discord Bot đ€ | Economy Bot (Discord.js)
Subcommand & Subcommand Groups (Discord.js + DJS-Commander)
zhlĂ©dnutĂ 7KPĆed rokem
Subcommand & Subcommand Groups (Discord.js DJS-Commander)
Nested Functions & Recursion | JavaScript for Beginners #16
zhlĂ©dnutĂ 761PĆed rokem
Nested Functions & Recursion | JavaScript for Beginners #16
How to Host your Discord Bot 24/7 đ
zhlĂ©dnutĂ 32KPĆed rokem
How to Host your Discord Bot 24/7 đ
For anyone following along with this series, I apologize for the delay on part 4. I currently have exams and plan to finish them before (or early) August. Sorry for the inconvenience.
Please do more! :'(
These are the best tutorial, i am on linux and its all so good
"Bot torture chamber"
i got everytime an error when i try to type something and the bot dont respond after 12:14
please sir i need help setting this up
If your bot is connected to a database would it read the database/api?
I think this video needs an update as since a few days I always get the message that there are Api issues, I generated a new API and it still doesn't work, OpenAI must have changed something
Good work. Awesome! Also, can you tell me how to get that JetBrains IDE fonts in VSCode?
Discord JS is cool but i think when you just learn some java basics its way easier to create a bot with jda. i tried javascript and it was something else oh boi
Why do we need eventHandler and client.login inside async IIFE?
Awesome video man, is there an event to check the end of the poll ? I mean, we set up a duration time, when this times over, there is an event that I can read to confirm the end of the poll?
why my nodemon didnt work??/
The best discord bots tutorial i've seen on CZcams! Comment: you can use the find and replace in vscode by simply press Ctrl + F to replace the words much easier. Keep it up!
Excellent! Can we do classes in ts with the same steps or do we need any other configs? Pls advise
You can use the same config for classes
Why doesn't visual studio recognize npm as a program
can someone help me, it say Routes.applicationGuildCommands not a function
none of the commands work they all say this nodemon : The term 'nodemon' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + nodemon + ~~~~~~~ + CategoryInfo : ObjectNotFound: (nodemon:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
Really good tutorial! I've already wrote the api and stuff but I will definitely will take your code as inspiration ^^
Is there a way I could import an entire custom personality to the bot? I would like it to have a memory of information I give it.
and just like other dashboard series this one is dropped as well
@@flatsnap Iâm sorry I got exams to wrap up. Iâve planned a stream next week though.
Hello Under Ctrl, i habe an strange issue. I build a discord app and i gave im the right rights as yours in the video. Then i build the bot and run him as a docker container. Now the strange starts. If i run him on my local maschine in docker compose the / commands working fine, but if i run him on my raspi the app crashes and say "discordjs can't regonize the command" . Its the same for a simple / gives text command and a / makes a database and fetch data command. Do you have some guesses why? I work with await interaction.deferReply({ ephemeral: true }); and interaction.editReply({ content: "some content", }); and with interaction.reply({ content: 'some content', ephemeral: true, }); nothing work on raspi. And Yes the commands are registert
i got an error in the console saying upvote is not defined, can you help me
i need to buy api?
npm command on terminal doesnât work
absolutely amazing video with great explanation every detail
đ
the npm command doesent work for me
For anyone who is having random issues with their bot interactions, change your interaction callback to an async function and include await before interaction.reply Example: client.on("interactionCreate", async (interaction) => { if (!interaction.isChatInputCommand()) return; if (interaction.commandName === "hey") { await interaction.reply("hi"); } Hope this helps.
I can't get the fontawesome icons to show
when i do npm init -y, i get an error saying that npm is not recognized as a name of a cmdlet.... Help please!
same did u solve it?
So I downloaded Node.js but when I run the command npm init -y or npm init. VSC just gives me an error.
why does your status bar says connected to discord
Everyting on point. Very good tutorial. Saved me a lot of time. Been fluffing around with webpack and itâs plug-ins especially the ts-loader the bloody things are so out of sync. Spent countless hours trying to find compatible versions between the two.
BANGER tutorial. Loved it.
this is a good tutorial, but is there any way to make this work to register commands globally instead of on just one server?
nice, simple and straight forward
Very Informative video. I have a question, this package is for Node Js. But how can we create a Vanilla JavaScript library like moment.js?
import {defineConfig} from 'tsup' export default defineConfig({ format: ['cjs', 'esm'], entry: ['./src/index.ts'], dts: true, shims: true, skipNodeModulesBundle: true, clean: true, }) and { "compilerOptions": { "target": "es2022", "module": "commonjs", "outDir": "dist", "declaration": true, "noEmit": true, "isolatedModules": true, "esModuleInterop": true, "moduleResolution": "Node", /* Type Checking */ "strict": true, "noImplicitAny": true, "strictNullChecks": true, }, "include": ["src"], "exclude": ["node_modules"] }
Still cant change my mind from js to ts, i just love js lol
aint working for no reason i retried 3 times :(
there is a Video from Codelyon and when I did that It worked perfectly.
11:37 how do i do that?
very helpful, thank you so much!!
so helpful, thank you!
The require is always throwning an error for me and it says that the modul cant be found
app crashed waiting for file changes before starting I'm getting like this can u help me with this I just trainee level developer I don't know what to do
Sometimes the ENV DOES NOT WORK, just put .env inside of the src folder and put .gitignore there too.
hi there, my nodemon doesnt work , it shows that + CategoryInfo : SecurityError: (:) [], PSSecurityException + FullyQualifiedErrorId : UnauthorizedAccess
Thank you.
How to use it with messageUpdate ?
This is decadence bro