Skip to content

guilhermebkel/ah-negao-discord-bot

Repository files navigation

Unform

A Discord Bot that retrieves Posts from AhNegao (https://www.ahnegao.com.br) to a Discord Channel 🤖

mit license typescript

📌 Overview

AhNegaoDiscordBot uses web scraping in order to fetch the posts of current day from https://www.ahnegao.com.br and then, if they were not posted yet on the selected discord channel, he does it.

🔧 Technologies

  • Typescript
  • Cheerio
  • DiscordJS
  • NodeCron

🚀 Getting started

  1. Clone this repository.

  2. Install all dependencies:

npm install
  1. Create an application on Discord for Developers.

  2. On the aside menu, go into the Bot, create a new bot and mark the option Public Bot.

  3. On the aside menu, go into the OAuth2 option and mark the following options:

On SCOPES, mark: bot

On BOT PERMISSIONS, mark: Send Messages, Read Message History

  1. Use the link below SCOPES to add the bot to your server.

  2. On the aside menu, go into the Bot option and click on Copy in the side of your bot avatar to copy the bot token.

  3. Go back to the repository you cloned on your machine, duplicate the .env.example into a .env file and fill the required variables:

DISCORD_BOT_TOKEN= 
DISCORD_CHANNEL_NAME=
  1. Run the application:
npm run dev

About

🤖 A WIP discord bot that retrieves posts from "Ah Negão! - https://www.ahnegao.com.br" to a discord channel.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published