forked from PluralFlux/PluralFlux
Compare commits
5 Commits
4bb267f990
...
webhook-re
| Author | SHA1 | Date | |
|---|---|---|---|
| 61d4e121a9 | |||
| 63b2f182bb | |||
| baf2f51773 | |||
| 6c9c253a70 | |||
| c2a88804ad |
@@ -6,6 +6,8 @@ on:
|
||||
pull_request:
|
||||
branches: ["main"]
|
||||
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
|
||||
@@ -7,8 +7,6 @@ PluralFlux is a proxybot akin to PluralKit and Tupperbox, but for [Fluxer](https
|
||||
|
||||
[Sponsor the project](https://github.com/sponsors/pieartsy)
|
||||
|
||||
If it's not running at the moment, it's because my computer crashed or something. I'm looking to move running it to a somewhat more permanent solution.
|
||||
|
||||
## Commands
|
||||
All commands are prefixed by `pf;`. Currently only a few are implemented.
|
||||
|
||||
|
||||
@@ -22,4 +22,5 @@ services:
|
||||
volumes:
|
||||
- pgadmindata:/var/lib/pgadmin
|
||||
volumes:
|
||||
pgdata:
|
||||
pgdata:
|
||||
pgadmindata:
|
||||
@@ -10,6 +10,7 @@ const { AppDataSource } = require("../database/data-source");
|
||||
env.config();
|
||||
|
||||
const token = process.env.FLUXER_BOT_TOKEN;
|
||||
const debug = process.env.debug;
|
||||
|
||||
if (!token) {
|
||||
console.error("Missing FLUXER_BOT_TOKEN environment variable.");
|
||||
@@ -63,12 +64,15 @@ module.exports.handleMessageCreate = async function(message) {
|
||||
}
|
||||
}
|
||||
catch(error) {
|
||||
console.error(error);
|
||||
if(debug){console.error("An error occurred at unix timestamp " + Date.now() + "while processing the command: " + message + " with error:" + error);}
|
||||
else{console.error(error);}
|
||||
process.exit(2); //need this for now just to make sure the bot continues to restart on errors, since it would seem that fluxer.js doesn't define custom error types. TODO: map out some exit codes
|
||||
}
|
||||
}
|
||||
|
||||
client.on(Events.Ready, () => {
|
||||
console.log(`Logged in as ${client.user?.username}`);
|
||||
if(debug){console.log(Date.now() + `: Currently running in debug mode!`)}
|
||||
});
|
||||
|
||||
let guildCount = 0;
|
||||
|
||||
Reference in New Issue
Block a user