Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerald12344 committed Dec 8, 2022
1 parent b49add7 commit b2f7bbe
Show file tree
Hide file tree
Showing 25 changed files with 44 additions and 867 deletions.
Binary file modified .DS_Store
Binary file not shown.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# RovolutionLogisticsBot
# Rovolution Web Server

Discord bot basically just API gateway
Vercel doesn't allow discord bots so this was created to handle stuff on a Discord bot but on a Docker server for my Docker swarm which is locally hosted.

See [Routes/ReadMe.md](https://github.com/RovolutionTeam/RovolutionLogisticsBot/tree/main/src/routes/ReadMe.md) for details on how to make routes
Binary file modified dist/.DS_Store
Binary file not shown.
8 changes: 0 additions & 8 deletions dist/build/main/index.js

This file was deleted.

22 changes: 0 additions & 22 deletions dist/build/main/utils/Discord.js

This file was deleted.

18 changes: 0 additions & 18 deletions dist/build/main/utils/Express.js

This file was deleted.

9 changes: 0 additions & 9 deletions dist/build/module/index.js

This file was deleted.

23 changes: 0 additions & 23 deletions dist/build/module/utils/Discord.js

This file was deleted.

19 changes: 0 additions & 19 deletions dist/build/module/utils/Express.js

This file was deleted.

4 changes: 3 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"use strict";
// Rovolution Logistics Bot Written By Harvey Randall
// Simpled local tunnel webserver, for Rovolution
// https://www.github.com/Gerald12344
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Expand Down Expand Up @@ -80,6 +80,8 @@ var _routes = __dirname + '/routes';
(0, Tunnel_1.setupTunnel)();
// Sneaky route exposer :)
(0, fs_1.readdirSync)(_routes).forEach(function (file) {
if (file.split('.').pop() !== 'js')
return;
Promise.resolve().then(function () { return __importStar(require("".concat(_routes, "/").concat(file))); }).then(function (x) {
var _a;
app[(_a = x.method) !== null && _a !== void 0 ? _a : 'get']('/' + file.replace('.js', ''), function (req, res) { return __awaiter(void 0, void 0, void 0, function () {
Expand Down
69 changes: 0 additions & 69 deletions dist/routes/checkDiscordGuild.js

This file was deleted.

76 changes: 0 additions & 76 deletions dist/routes/checkUserHasRole.js

This file was deleted.

Empty file removed dist/routes/get.js
Empty file.
80 changes: 0 additions & 80 deletions dist/routes/getChannels.js

This file was deleted.

Loading

0 comments on commit b2f7bbe

Please sign in to comment.