jetbalsa / HordeHorn

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Author Summary

It's NodeJS, Install it, do things with it, this code is just really slap dashed together

if you want to do other things, try IFTTT and the blink.sh script that is called. you can use curl for that.

You will need to extract your Discord Token out of your local Storage on your brower and add it into horn.js

Copy the channel-id of #pings (right-click on the channel)

past that, google is your best friend, if someone wants to update this pull requests are welcome!

Installation:

Must be installed on a linux environment

First, install NodeJS on your local machine:

https://nodejs.org/en/download/package-manager/

Clone Repository to your local machine:
git clone https://github.com/JRWR/HordeHorn.git
Get discord token from your browser:
  • Login to discord via the chrome browser
  • Press F12 > Application > Local Storage > https://discordapp.com
  • Find the Key token and copy the value
  • Paste value to client.login('XXXXXXXXXXXXXXXXXXXXX');
Enable Developer mode in discord:

User settings > Appearance > Developer Mode

Get channel id(Must be in discord dev mode):
  • Right click channel name > Copy ID
  • paste ID to var channelid='xxxx'
  • Get channel id
Install project:

In the directory you downloaded the project, run this in the commandline: npm install

Run application: node horn.js

If you recieve an error regarding Error: spawn mpg123 ENOENT, make sure to install mph123:

Install mpg: https://www.npmjs.com/package/mpg123

About

License:MIT License


Languages

Language:JavaScript 95.8%Language:Shell 4.2%