Skip to content

Instantly share code, notes, and snippets.

View mezotv's full-sized avatar

Dominik Koch mezotv

View GitHub Profile
@mezotv
mezotv / automatic_typescript_build_action.md
Last active August 6, 2024 02:51
Github workflow to automate typescript builds every commit.

Automatic Build Workflow

This GitHub Actions workflow automates the process of building your project and updating the build files in the main branch. It's triggered on pushes to the main branch that affect files in the src/ directory, or manually via workflow dispatch.

Workflow Overview

  1. The workflow is triggered on:
    • Push events to the main branch (only when files in src/ are changed)
    • Manual trigger (workflow_dispatch)

Conventional Commit Messages

See how a minor change to your commit message style can make a difference. Examples

Have a look at CLI util git-conventional-commits to ensure this conventions and generate changelogs

Commit Formats

Default

@mezotv
mezotv / DailyMessage.js
Last active February 19, 2023 20:48
DailyMessage.js
const {EmbedBuilder} = require('discord.js');
const mom = require("moment-timezone");
const {ChalkAdvanced} = require("chalk-advanced");
const CronJob = require('cron').CronJob;
module.exports = class DailyMessage {
constructor(c) {
this.c = c;
}
@mezotv
mezotv / WebhookHandler.js
Created February 19, 2023 20:04
WebhookHandler.js
const {
PermissionFlagsBits,
WebhookClient,
EmbedBuilder
} = require('discord.js');
module.exports = class WebhookHandler {
constructor(client) {
this.webhooks = new Map();
this.webhookModel = require('../util/Models/webhookCache');