Git Product home page Git Product logo

eortologio-bot's Introduction

Eortologio BOT

Eortologio Bot is a bot that sends you everyday a message about the Greek Namedays and notify you which name's day is today.

Data is parsed with RSS from https://www.greeknamedays.gr/

Try the bot on your server.

  • In order to bot working on your server, you must create a channel named "eortologio"

Installation

Packages

Install the required modules with npm

npm install discord.js dotenv cron rss-parser

The packages we have installed are:

  • discord.js: a Node.js module to allow easy interactions with the Discord API.
  • dotenv: allows loading variables from process.env in Node apps.
  • cron: Repeat every time a schedule message
  • rss-parser: Help us to parse rss feed from https://www.greeknamedays.gr/

Create an App in Discord

Then you need to create an app in Discord. Go to Discord developers portal and sign in or create a developer account.

Once you're logged in, click on 'New Application' at the top right of the window.

alt text

Then fill in the details of your app (i.e. name) and you will be taken to your app's dashboard. Navigate to 'Bot' and click 'Add Bot' to enable your app as a bot.

alt text

In the section appear, click copy to token. Create a .env file and store the token there or copy to your code (index.js)

Install bot to server

Create a new Discord server with your Discord account to install the bot at.

Back at the App dashboard, navigate to 'OAuth2' and select 'bot' under the Scopes section.enter image description here

You will see an URL being generated at the bottom. Copy this URL and paste it on a new tab. You will be redirected to the page that connects the bot on a server.

Install this bot to your preferred Discord server. If everything works correctly, your bot should now appear in your Discord server.

After you paste the token in your code or stored it in an .env file, run the code.

node index.js

Contributing

Feel free to suggest anything in order to improve the project.

Need to

I need to thank my friend eliac7 about his help to host the bot and make it online. Check his bots and projects here.

eortologio-bot's People

Contributors

eliac7 avatar gioiliop7 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

eliac7

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.