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')