{"id":498,"date":"2022-04-21T16:29:41","date_gmt":"2022-04-21T06:29:41","guid":{"rendered":"https:\/\/programmablewealth.com\/?p=498"},"modified":"2022-04-21T16:29:44","modified_gmt":"2022-04-21T06:29:44","slug":"discord-bot-smart-contract-monitoring","status":"publish","type":"post","link":"http:\/\/10.0.0.14:32768\/discord-bot-smart-contract-monitoring\/","title":{"rendered":"How to Create a Discord Bot that Monitors Smart Contract Events with Ethers.js"},"content":{"rendered":"\n

I recently created a Discord bot for my Aavegotchi<\/a> Gotchiverse gaming guild WAGMI Warriors<\/a> that monitors the Aavegotchi smart contracts<\/a> deployed on the Polygon network for new rentals using the Ethers.js<\/a> library. Then after it finds an event, it posts a message to a channel in the guild Discord server<\/a> using Discord.js<\/a>.<\/p>\n\n\n\n

\n

The Discord bot for tracking guild rentals is now live.

If you have joined the Guild Gotchi Rental Program, you will see the bot automatically post new Gotchi rental listings that are using the guild treasury.

Join the Guild Gotchi Rental Program:
https:\/\/t.co\/x9h6OaO6uN<\/a> pic.twitter.com\/P5pFZD2dUw<\/a><\/p>— WAGMI Warriors (@WagmiWarriors) March 28, 2022<\/a><\/blockquote>