-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
/.env | ||
/node_modules | ||
results/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[general] | ||
|
||
reticulum_host = "dev.reticulum.io" | ||
hubs_hosts = "localhost,hubs.local" | ||
shard_id = "0" | ||
shard_count = "0" | ||
verbose = "false" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/sh | ||
|
||
exec 2>&1 | ||
|
||
# Move directories that ship in the package into place | ||
for dir in node_modules package.json package-lock.json src | ||
do | ||
cp -r {{pkg.path}}/$dir {{pkg.svc_static_path}}/ | ||
done | ||
|
||
mkdir -p {{pkg.svc_var_path}}/run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env bash | ||
|
||
exec 2>&1 | ||
|
||
set -e | ||
|
||
export TOKEN="{{ cfg.general.token }}" | ||
export RETICULUM_HOST="{{ cfg.general.reticulum_host }}" | ||
export HUBS_HOSTS="{{ cfg.general.hubs_hosts }}" | ||
export SHARD_ID="{{ cfg.general.shard_id }}" | ||
export SHARD_COUNT="{{ cfg.general.shard_count }}" | ||
export VERBOSE="{{ cfg.general.verbose }}" | ||
|
||
cd {{pkg.svc_path}} | ||
|
||
exec node {{pkg.svc_static_path}}/src/index.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
pkg_name=hubs-discord-bot | ||
pkg_origin=mozillareality | ||
pkg_maintainer="Mozilla Mixed Reality <mixreality@mozilla.com>" | ||
|
||
pkg_version="0.0.1" | ||
pkg_license=('MPL2') | ||
pkg_description="Discord bot for Hubs by Mozilla" | ||
pkg_deps=( | ||
core/node/11.2.0 | ||
) | ||
|
||
do_build() { | ||
npm ci | ||
} | ||
|
||
do_install() { | ||
for dir in node_modules package.json package-lock.json src | ||
do | ||
cp -R ./$dir "$pkg_prefix" | ||
done | ||
} | ||
|
||
do_strip() { | ||
return 0; | ||
} |