casship.blogg.se

Welcome discord bot
Welcome discord bot






welcome discord bot

I'm sure you can figure that out because of the Bright Blue Link that says "Create a new file" on vscode startup.Īfter clicking on that, give whatever name you want to the file, and make sure to save it as ".js" extension. It will open a new window and there, you can create a new file, or open a folder.

welcome discord bot welcome discord bot

Now that you have Node.JS and Visual Studio Code, you can finally get started! Hooray! The most preferred nowadays is Visual Studio Code The general way is to download a code editor. Now that you've installed node.js, you can get started! That's the theory, at least. So, how do you get started? all you need is to download nodejs! You can do so by going on their official website NodeJs and clicking the "LTS" download. You could now run javacript outside of browsers! How cool is that? Okay, it's nerdy. But, after the introduction of NodeJS, javacript was much more! Originally, javacript only ran in browsers. You can look at the official JS website here This section will answer those questions. The questions in your mind are, "How do I create a file?" "How do I get this module?" "How do I code" "Is it in javacript?" "What is javacript?" "Help! javacript cannot run!" "Help! How do I run the beautiful code I made?" and possibly "Where is my shoe?" You have no clue what the above said things mean. in same console > Start coding using the docs aboveĪlright, so you're new. How to build one from scratchĭownload NodeJS > Download Visual Studio Code > In a folder of your choice, run npm init -y in console > run npm i easy-discordjs-bot in same console > run code. The **Cool** will be actually bold, as discord uses markdown for its messages. This will send a message of a user joining a guild as follows: Shwi joined the server 'Cool'īot (in #welcome-new-people channel, or #welcome channel, etc.): Hello Welcome to **Cool**! You can set a welcome message using the Welcome(.) function! It is firectly inside of the root module, aka:Ĭonst easyDjs = require ( "easy-discordjs-bot" ) //. You can ask for as many users and channels as you want and at as many places as you want. The same goes for channels, instead of use #. So: User: ?mentionīot: Invalid arguments provided! Minimum: 4 as #channel, help, ?mention #log nohelp Mentioned Shwi This code will reply "Mentioned person-name" whenver a user mentions a person in the command. Cmd ( "mention", , myFunction ) easyDjs. Const easyDjs = require ( "easy-discordjs-bot" ) function myFunction ( message, args ) const m圜ommand = new easyDjs.








Welcome discord bot