
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
perforce_discord_webhook_module
Advanced tools
This plugin allows you to make Queries against a Perforce Server, to check the newest edition and send a Webhook to Discord if it is newer then previously stored.
This plugin allows you to make Queries against a Perforce Server, to check the newest edition and send a Webhook to Discord if it is newer then previously stored.
I am working on Developing a Game, and I really got annoyed there was nothing that would notify me from Perforce built-in. So made this.
$ npm install --save perforce_discord_webhook_module
apt-get install --yes helix-cli
installed on a Linux Machinechoco install p4
installed on a Windows Machinerequire('dotenv').config()
var moment = require('moment-timezone');
moment().tz(process.env.CRON_TIMEZONE).format();
var CronJob = require('cron').CronJob;
const path = require('path')
var P4Handler = require('perforce_discord_webhook_module');
const Perforce = new P4Handler(process.env.P4_PASSWD,process.env.P4_USER,process.env.P4_PORT,path.join(__dirname, process.env.SAVE_FILE),process.env.CRON_TIMEZONE,process.env.DISCORD_URL);
var job = new CronJob(process.env.CRON_TIME, function() {
Perforce.runCron().then((sent) => {
if (sent) {
console.log(`New Data Found, Webhook Sent: ${moment()}`)
}
}).catch((err) => {
console.error(err);
})
}, null, true, process.env.CRON_TIMEZONE);
Perforce.loadConfig().then(() => {
return Perforce.login().then(() => {
job.start();
});
}).catch((err) => {
console.error(err);
throw err;
})
FAQs
This plugin allows you to make Queries against a Perforce Server, to check the newest edition and send a Webhook to Discord if it is newer then previously stored.
The npm package perforce_discord_webhook_module receives a total of 0 weekly downloads. As such, perforce_discord_webhook_module popularity was classified as not popular.
We found that perforce_discord_webhook_module demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.