From 30a785ad732ac4f98c2756e746a5e1d7b29a2835 Mon Sep 17 00:00:00 2001 From: monty Date: Sat, 21 Dec 2019 14:31:14 +0100 Subject: [PATCH] short social links --- constants.js | 10 ++++++++-- server.js | 16 ++++++++++++++++ 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/constants.js b/constants.js index fbc7811..6ee3a8c 100644 --- a/constants.js +++ b/constants.js @@ -38,9 +38,15 @@ let refunds = { 'If you make a commission with me, and completely go off the grid for 2 or more weeks or your account is completely suspended and you do not make an attempt to contact me on any other social media, etc. your commission will be cancelled with no refund.' ] }; - module.exports = { name: 'yugen', updateToken: 'qwertzuiop1234567890', - tos: [ payment, turnaround, refunds, other ] + tos: [ payment, turnaround, refunds, other ], + socials: { + twitter: 'https://twitter.com/CorgiYugy', + instagram: 'https://instagram.com/CorgiYugy', + patreon: 'https://patreon.com/CorgiYugy', + kofi: 'https://ko-fi.com/CorgiYugy', + trello: 'https://trello.com/b/PTh1X2bw/yugen-the-corgi-commisions' + } }; diff --git a/server.js b/server.js index a94b90f..3d6b923 100644 --- a/server.js +++ b/server.js @@ -93,6 +93,22 @@ module.exports = (client) => { }); }); + app.get('/twitter', (req, res) => { + res.redirect(con.socials.twitter); + }); + app.get('/trello', (req, res) => { + res.redirect(con.socials.trello); + }); + app.get('/instagram', (req, res) => { + res.redirect(con.socials.instagram); + }); + app.get('/patreon', (req, res) => { + res.redirect(con.socials.patreon); + }); + app.get('/kofi', (req, res) => { + res.redirect(con.socials.kofi); + }); + app.listen(port /* , hostname */, () => { console.log(`[ Server ] Listening on ${port}`); });