commit
01dc7a06e5
6 changed files with 8 additions and 1 deletions
|
@ -3,6 +3,7 @@ import logger from "../../middlewares/logger";
|
|||
|
||||
export const metadata = { guildOnly: false, ephemeral: false };
|
||||
|
||||
export const execute = async (interaction: ButtonInteraction) => {
|
||||
// Execute the function
|
||||
export const execute = (interaction: ButtonInteraction) => {
|
||||
logger.debug(interaction.customId, "primary button clicked!");
|
||||
};
|
||||
|
|
|
@ -6,6 +6,7 @@ export const options: IEventOptions = {
|
|||
type: "on",
|
||||
};
|
||||
|
||||
// Execute the function
|
||||
export const execute = async (message: Message) => {
|
||||
await modules.credits.execute(message);
|
||||
await modules.points.execute(message);
|
||||
|
|
|
@ -7,6 +7,7 @@ export const options: IEventOptions = {
|
|||
type: "on",
|
||||
};
|
||||
|
||||
// Execute the function
|
||||
export const execute = async (message: Message) => {
|
||||
await audits.execute(message);
|
||||
await counter(message);
|
||||
|
|
|
@ -12,6 +12,7 @@ export const options: IEventOptions = {
|
|||
type: "on",
|
||||
};
|
||||
|
||||
// Execute the function
|
||||
export const execute = async (oldMessage: Message, newMessage: Message) => {
|
||||
const { author, guild } = newMessage;
|
||||
|
||||
|
|
|
@ -4,6 +4,7 @@ import checkDirectory from "../../helpers/checkDirectory";
|
|||
import { IJob } from "../../interfaces/Job";
|
||||
import logger from "../../middlewares/logger";
|
||||
|
||||
// Start all jobs that are in the schedules directory
|
||||
export const start = async (client: Client) => {
|
||||
logger.info("⏰ Started job management");
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@ import { IEncryptionData } from "../../interfaces/EncryptionData";
|
|||
|
||||
const iv = crypto.randomBytes(16);
|
||||
|
||||
// Encrypts a string
|
||||
const encrypt = (text: crypto.BinaryLike): IEncryptionData => {
|
||||
const cipher = crypto.createCipheriv(
|
||||
process.env.ENCRYPTION_ALGORITHM,
|
||||
|
@ -17,6 +18,7 @@ const encrypt = (text: crypto.BinaryLike): IEncryptionData => {
|
|||
};
|
||||
};
|
||||
|
||||
// Decrypts a string
|
||||
const decrypt = (hash: IEncryptionData) => {
|
||||
const decipher = crypto.createDecipheriv(
|
||||
process.env.ENCRYPTION_ALGORITHM,
|
||||
|
|
Loading…
Add table
Reference in a new issue