GithubHelp home page GithubHelp logo

3ventic / discord-rss Goto Github PK

View Code? Open in Web Editor NEW
17.0 17.0 4.0 340 KB

Lightweight, easy-to-use RSS feed => Discord service

License: MIT License

Dockerfile 2.02% JavaScript 10.75% TypeScript 46.87% Svelte 34.56% HTML 1.97% CSS 3.05% Shell 0.77%
atom discord rss sapper svelte

discord-rss's Introduction

Hi!

I'm a software tech enthusiast from Finland. The projects on my GitHub are small personal projects I've written to make my life easier. Feel free to browse, use, and improve them within the bounds of their licenses.

discord-rss's People

Contributors

3ventic avatar conrmahr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

discord-rss's Issues

Build error

$ npm run build

> [email protected] build
> vite build

▲ [WARNING] Cannot find base config file "./.svelte-kit/tsconfig.json" [tsconfig.json]

    tsconfig.json:2:12:
      2 │   "extends": "./.svelte-kit/tsconfig.json",
        ╵              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

failed to load config from /path/to/discord-rss/vite.config.js
error during build:
SyntaxError: Unexpected token '.'
    at Loader.moduleStrategy (internal/modules/esm/translators.js:133:18)
$ ls
docker-build.sh  Dockerfile  LICENSE  node_modules  package.json  package-lock.json  README.md  src  static  svelte.config.js  tsconfig.json  vite.config.js

Warnings?

npm run sync

> [email protected] sync
> svelte-kit sync

(node:278069) UnhandledPromiseRejectionWarning: SyntaxError: Unexpected token '.'
    at Loader.moduleStrategy (internal/modules/esm/translators.js:133:18)
    at async link (internal/modules/esm/module_job.js:42:21)
(node:278069) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:278069) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Redirects ?

What is the discord redirect URI supposed to be?

Delete previous notifications for updated posts

Save the returned message ID for the webhook message to a map by the post URL. Check the map when receiving a new post and check if it's an update to one previously seen. Delete the previous message for that post if so.

400 Bad Request: If Field Characters Are Over Limits

Articles with a lot of content, triggers Discord Webhook 400 Bad Request errors in the console log. This is probably due to the char limits Discord sets for each field. See below:

username: 1-80 characters
content: 2000 characters
embeds: 10 embed objects
title: 256 characters
description: 2048 characters
author[name]: 256 characters
fields: 25 field objects
field[name]: 256 characters
field[value]: 1024 characters
footer[text]: 2048 characters
sum of all characters in embed: 6000 characters
https://discord.com/developers/docs/resources/webhook#execute-webhook

Individual Intervals

Set individual intervals per RSS feed.
This is necessary as some sites will block you if you are accessing their feed too often.

Pre-configured example .env file

This would be useful again for anyone who stumbles across this project and isn't familiar and wants to get straight into using it.

Docker Guide

Hello can you add documentation on how to run this within Docker please.
Thanks. I'd like to run this, but no idea how to set the volumes, what port to open etc.

So just a command to have in the docs, or at least in this issue would be useful to everyone.

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.