Giter Club home page Giter Club logo

embeds's Introduction

embeds

the embeds server source code

the embeds server is mostly a test for my other project camdo, a generic bot framework.

embeds attempts to use every use every feature from camdo as a living test for it.

commands are modular and are framework agnostic, any commands that are written should work on any of the adapters specified.

embeds currently only has one adapter, the embeds server.

the embeds server uses the Open Graph Protocol, Twitter Cards, and the theme-color meta tag to create embeds and cards for most services to use

it's not practical but it's fun to see what you can do.

most sites cache cards for periods of time and then will periodically update them.

this can lead to unintended behavior for commands that have differing results.

to partially mitigate this embeds caches all results with a query to them

GET /neko/ will not cache but GET /neko/?1 will

Installing and Running

Requirements:

  • Node 12.4+
git clone https://github.com/Brecert/embeds.git

cd embeds

# fill out the config files in the config folder

npm install # or yarn install, this project was made using primarily yarn!

npm run start # or yarn start

Todo

  • cleanup oldGetAll code to use fetch or similar
  • document code
  • add types for results
  • add tests
  • add a wikipedia article getter command
  • add a command generator command
  • add a google image command
  • add a booru command
  • add an urban dictionary command
  • define feature sets for each of the commands (waiting for camdo to add this)
  • add more handlers
  • move to redis for caching eventually

embeds's People

Contributors

brecert avatar

Watchers

 avatar

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.