0.0.2-beta • Published 2 years ago
discord.easy-testing v0.0.2-beta
❓ How To Install
1) You need Node.js version 12.0.0 or newer
2) Use the install command in your terminal
For npm use
npm install discord.easy-testing
For yarn use
yarn install discord.easy-testing
🖥️ Setup
const discord = require('discord.easy-testing')
const client = new discord.Client('your-bot-token-here')
💻 Example Code
const discord = require('discord.easy-testing')
const client = new discord.Client('your-bot-token-here')
const prefix = '?'
client.once('ready', () => {
console.log('Ready!')
})
client.on('message', message => {
if(message.content === `${prefix}text`) {
client.send(message.channelID, 'Hello World!')
}
})
client.on('message', message => {
if(message.content === `${prefix}embed`) {
const embed = new discord.Embed()
.setTitle('Hello!')
.setColor('RANDOM')
.setDescription('Hello World!')
client.send(message.channelID, embed)
}
})
client.connect()
👤 Support Server
0.0.2-beta
2 years ago
0.0.1-beta
3 years ago