Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

what does js stand for

const PREFIX = 'test?'

bot.on('message', message => {

	let args = message.content.substring(PREFIX.length).split(" ");

	switch (args[0]) {
		case 'jsmeaning':
        	message.send('JS stands for JavaScript!')
        	console.log('I told the user the meaning of JS!')
        	break;
    }
}
 
PREVIOUS NEXT
Tagged: #js #stand
ADD COMMENT
Topic
Name
6+6 =