Skip to content

rarepepi/artgobblers-discord-bot

Repository files navigation

Logo

Next.js microservice that sends a message through a Discord webhook whenever there is a Gobble or Glam event.

Description

There is a cron job that runs every couple of minutes to check the last 1000 txns of the Art Gobblers Smart Contracts and see if any ArtGobbled events occured. If it doesn't have that txn hash stored it will send a message to discord through a webhook.

Glamination works through querying the backend api of the Art Gobblers website, since the Glam is off-chain and gas-less.

Installation

  • First you must create a .env file in order to use the Etherscan and Discord APIs. You can find an example in examples/example.env just rename the file to .env and fill in the blanks.
$ yarn

Running the app

# development
$ yarn start

# watch mode
$ yarn start:dev

# production mode
$ yarn start:prod

Test

# unit tests
$ yarn test

# e2e tests
$ yarn test:e2e

# test coverage
$ yarn test:cov

License

This project is MIT licensed.

About

A bot for art and glam

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published