tranfer-credit-probot-check
v1.0.4
Published
npm i tranfer-credit-probot-check
Downloads
164
Readme
Installtion
npm i tranfer-credit-probot-check
Example usage
const Discord = require('discord.js')
const client = new Discord.Client();
const buy = require('tranfer-credit-probot-check')
client.on('ready', async () => {
console.log(client.user.tag)
})
client.on('message', async message => {
if(message.content.includes('buy')) {
message.channel.send('transfer the credit to the owner')
const check = await buy(message, {owner: '622486784038666242', price:1})
if(check) {
message.channel.send('done')
}
}
})
client.login('token')