melefo / HookHook

0 stars 0 forks source link

HookHook

List services

Services Events
Spotify
  • SpotifyLikedAlbum (action/reaction)
  • Parameters:
    • Album title
    • Artist name
    Formatters:
    • album.id
    • album.name
    • album.artists
    • like.date
  • SpotifyLikedMusic (action/reaction)
  • Parameters:
    • Song title
    • Artist name
    Formatters:
    • track.id
    • track.name
    • track.artists
    • like.date
Twitter
  • TwitterFollowUser (action/reaction)
  • Parameters:
    • Username (When user follows an account)
    Formatters:
    • following.id
    • following.name
    • following.username
  • Tweet (reaction)
  • Parameters:
    • Tweet content
    Formatters:
    • track.id
    • track.name
    • track.artists
    • like.date
  • TweetHashtag (action)
  • Parameters:
    • Hashtag
    Formatters:
    • tweet.text
    • tweet.date
    • tweet.id
    • tweet.source
Discord
  • DiscordWebhook (reaction)
  • Parameters
    • Webhook URL
    • Message title
    • Message content
  • DiscordPinned (action)
  • Parameters
    • Guild ID
    • Channel ID
    Formatters
    • msg.content
    • msg.id
    • author.id
    • author.name
    • author.mention
    • msg.date
GitHub
  • GithubCreateIssue (reaction)
  • Parameters
    • Username
    • Repository
    • Issue title
    • Issue body
  • GithubCreateRepository (reaction)
  • Parameters
    • Repository name
    • Repository description
  • GithubIssueCreated (action)
  • Parameters
    • Username
    • Repository name
    Formatters
    • issue.title
    • issue.id
    • issue.body
    • issue.date
    • issue.url
    • author.id
    • author.name
    • author.login
  • GithubNewCommit (action)
  • Parameters
    • Username
    • Repository name
    Formatters
    • commit.sha
    • commit.msg
    • author.id
    • author.name
    • author.name
    • author.login
  • GithubNewRepository (action)
  • Parameters
    • Username
    Formatters
    • repo.name
    • repo.id
    • repo.date
    • repo.description
    • repo.url
Google
  • YoutubePostComment (reaction)
  • Parameters
    • Video ID
    • Comment content
  • YoutubeVideoPublished (action)
  • Parameters
    • Channel name
    Formatters
    • video.title
    • video.id
    • video.description
    • video.thumbnail
Twitch
  • TwitchLiveStarted (action)
  • Parameters
    • Username
    Formatters
    • stream.game
    • stream.id
    • stream.date
    • stream.thumbnail
    • stream.title

Admins

If you are an administrator user you will have access to the admin area:
adminArea

On the admin area page, you can:


adminAreaPage


Developer guide

Environment variables

At the root of the project folder, create a .env file. This file will be read by docker to create environment variables and must contain values for the following keys:

The Mongo database:

JWT

SMTP

The services:

(Create a Google App):

(Create a Discord App):

(Create a Github App):

(Create a Spotify App):

(Create a Twitch App):

(Create a Twitter App):

Once you have all your environment variables set you can perform the following command:

docker-compose up --build

Frontend will be available at: http://localhost:8081/

Backend will be available at: http://localhost:8080/

Mongo will be available at: mongodb://MONGO_USERNAME:MONGO_PASSWORD@localhost:27017/

API limits

Be warned of the following API limitations:

Google:

10'000 requests per day

Twitter:

You may not tweet the same message twice.