Merge dev to main #1

Merged
ChrisChrome merged 20 commits from dev into main 2025-10-28 07:58:47 -06:00
2 changed files with 6 additions and 5 deletions
Showing only changes of commit 0ddf6dac99 - Show all commits

View file

@ -1,6 +1,7 @@
require("dotenv").config({ quiet: true }); import dotenv from 'dotenv';
const AMI = import("ami").AMISocket dotenv.config({quiet: true})
const sock = new AMI({ import AMISocket from 'ami';
const sock = new AMISocket({
connect: { connect: {
host: '127.0.0.1', host: '127.0.0.1',
port: 5038 port: 5038
@ -11,7 +12,7 @@ const sock = new AMI({
}, },
events: true events: true
}) })
const Discord = require("discord.js"); import Discord from 'discord.js';
const hook = new Discord.WebhookClient({ url: process.env.DISCORD_WEBHOOK_URL }); const hook = new Discord.WebhookClient({ url: process.env.DISCORD_WEBHOOK_URL });
const cfTypes = { const cfTypes = {

View file

@ -9,7 +9,7 @@
"keywords": [], "keywords": [],
"author": "", "author": "",
"license": "ISC", "license": "ISC",
"type": "commonjs", "type": "module",
"dependencies": { "dependencies": {
"ami": "^1.0.0", "ami": "^1.0.0",
"discord.js": "^14.24.0", "discord.js": "^14.24.0",