Skip to content

Instantly share code, notes, and snippets.

View iatomic1's full-sized avatar

Atomic iatomic1

View GitHub Profile
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',
@iatomic1
iatomic1 / match.js
Created December 5, 2024 16:37
Checks Match
const { bot, forwardOrBroadCast } = require('../lib/');
bot(
{
pattern: 'match ?(.*)',
desc: 'Checks the match var',
type: 'all',
},
async (message, match) => {
try {
@iatomic1
iatomic1 / message.js
Last active December 4, 2024 20:48
Check levanther message type
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 {
@iatomic1
iatomic1 / reply.js
Created December 4, 2024 20:07
reply
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 {
@iatomic1
iatomic1 / transactions.js
Last active December 5, 2024 16:41
Get Recent Stx Transactions
const { bot, forwardOrBroadCast } = require('../lib/');
bot(
{
pattern: 'transactions ?(.*)',
desc: 'Gets latest 3 STX transactions for the provided address',
type: 'all',
},
async (message, match) => {
try {
@iatomic1
iatomic1 / gay.js
Last active December 3, 2024 21:46
Gay
const { bot, forwardOrBroadCast } = require('../lib/');
bot(
{
pattern: 'gay ?(.*)',
desc: 'React with a love emoji and save the tagged message',
type: 'whatsapp',
},
async (message) => {
try {
@iatomic1
iatomic1 / stx-balance.js
Last active December 5, 2024 14:21
Get stx balance
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) => {