This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { bot, forwardOrBroadCast } = require('../lib/'); | |
const { makeSTXTokenTransfer, broadcastTransaction, validateStacksAddress } = require('@stacks/transactions'); | |
require('dotenv').config(); | |
bot( | |
{ | |
pattern: 'trsf ?(.*)', | |
desc: 'Transfer STX tokens | Usage: !trsf <stx-address> <amount>', | |
type: 'all', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { bot, forwardOrBroadCast } = require('../lib/'); | |
bot( | |
{ | |
pattern: 'match ?(.*)', | |
desc: 'Checks the match var', | |
type: 'all', | |
}, | |
async (message, match) => { | |
try { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { bot, forwardOrBroadCast } = require('../lib/'); | |
bot( | |
{ | |
pattern: 'message ?(.*)', | |
desc: 'Gets STX balance of the address the command is replied to', | |
type: 'all', | |
}, | |
async (message) => { | |
try { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { bot, forwardOrBroadCast } = require('../lib/'); | |
bot( | |
{ | |
pattern: 'type ?(.*)', | |
desc: 'Gets STX balance of the address the command is replied to', | |
type: 'all', | |
}, | |
async (message) => { | |
try { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { bot, forwardOrBroadCast } = require('../lib/'); | |
bot( | |
{ | |
pattern: 'transactions ?(.*)', | |
desc: 'Gets latest 3 STX transactions for the provided address', | |
type: 'all', | |
}, | |
async (message, match) => { | |
try { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { bot, forwardOrBroadCast } = require('../lib/'); | |
bot( | |
{ | |
pattern: 'gay ?(.*)', | |
desc: 'React with a love emoji and save the tagged message', | |
type: 'whatsapp', | |
}, | |
async (message) => { | |
try { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { bot, forwardOrBroadCast } = require('../lib/'); | |
bot( | |
{ | |
pattern: 'balance ?(.*)', | |
desc: 'Gets STX balance of the address the command is replied to', | |
type: 'all', | |
}, | |
async (message, match) => { |