<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/using-aoi-js-to-build-a-bot-on-discord-cfcu87w7v" -->

---
title: Using aoi.js to build a bot on Discord | daily.dev
description: Learn how to build a Discord bot using the aoi.js library, retrieve data from a Postgres database, and send notifications. Discover the advantages of using...
canonical: https://daily.dev/posts/using-aoi-js-to-build-a-bot-on-discord-cfcu87w7v
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Using aoi.js to build a bot on Discord | daily.dev
og:description: Learn how to build a Discord bot using the aoi.js library, retrieve data from a Postgres database, and send notifications. Discover the advantages of using...
og:url: https://daily.dev/posts/using-aoi-js-to-build-a-bot-on-discord-cfcu87w7v
og:image: https://api.daily.dev/og/posts/cfcU87W7V.png
og:image:alt: Using aoi.js to build a bot on Discord
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Using aoi.js to build a bot on Discord

**[LogRocket](https://daily.dev/sources/logrocket)** · 13 min read · 5 upvotes · 0 comments

## Summary

Learn how to build a Discord bot using the aoi.js library, retrieve data from a Postgres database, and send notifications. Discover the advantages of using Discord bots for web developers and find alternatives to aoi.js for bot development.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://blog.logrocket.com/using-aoi-js-build-discord-bot/>

---

Tags: [#webdev](https://daily.dev/tags/webdev), [#postgresql](https://daily.dev/tags/postgresql), [#discord](https://daily.dev/tags/discord)

[View this post on daily.dev](https://daily.dev/posts/using-aoi-js-to-build-a-bot-on-discord-cfcu87w7v)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Using aoi.js to build a bot on Discord","url":"https://daily.dev/posts/using-aoi-js-to-build-a-bot-on-discord-cfcu87w7v","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/using-aoi-js-to-build-a-bot-on-discord-cfcu87w7v"},"datePublished":"2024-04-17T16:29:56.663Z","dateModified":"2024-05-09T08:58:27.770Z","description":"Learn how to build a Discord bot using the aoi.js library, retrieve data from a Postgres database, and send notifications. Discover the advantages of using...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/e8bc67733713d5cf08f7fe064452d648?_a=AQAEufR","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/e8bc67733713d5cf08f7fe064452d648?_a=AQAEufR","isAccessibleForFree":true,"articleSection":"LogRocket","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"LogRocket","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/logrocket","url":"https://daily.dev/sources/logrocket"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/using-aoi-js-to-build-a-bot-on-discord-cfcu87w7v","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":5},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"webdev,postgresql,discord","timeRequired":"PT13M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"LogRocket","item":"https://daily.dev/sources/logrocket"},{"@type":"ListItem","position":3,"name":"Using aoi.js to build a bot on Discord"}]}
```

