Skip to content

Commit

Permalink
Merge pull request #29 from Zastinian/beta
Browse files Browse the repository at this point in the history
Update to version 3.2.1
  • Loading branch information
Zastinian authored Oct 19, 2024
2 parents e427b04 + 38236bb commit b35706d
Show file tree
Hide file tree
Showing 23 changed files with 84 additions and 93 deletions.
7 changes: 0 additions & 7 deletions config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
globalThis.packname = "Hedystia Bot";
globalThis.author = "Hedystia";
globalThis.db = require("./db");

/**
* @description You need to generate a token you can use the dashboard or the api discord.
* @link https://strangeapi.hostz.me/dashboard
* @link https://discord.gg/f7ADs3Ncu3
*/
globalThis.imageToken = "";
16 changes: 7 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
{
"name": "hedystiamd",
"version": "3.2.0",
"version": "3.2.1",
"description": "A whatsapp bot that can be used to play music",
"main": "index.js",
"type": "commonjs",
"scripts": {
"start": "node index.js",
"dev": "nodemon index.js",
"check": "biome ci .",
"lint": "biome lint --apply .",
"format": "biome format --write .",
Expand All @@ -16,25 +15,24 @@
"author": "[email protected]",
"license": "ISC",
"dependencies": {
"@hedystia/db": "^1.9.0",
"@hedystia/db": "^1.11.1",
"awesome-phonenumber": "2.68.0",
"baileys": "^6.7.6",
"baileys": "^6.7.8",
"file-type": "16.5.3",
"fluent-ffmpeg": "^2.1.3",
"formdata-node": "4.4.1",
"jimp": "^0.22.12",
"moment-timezone": "^0.5.45",
"moment-timezone": "^0.5.46",
"node-webpmux": "^3.2.0",
"pino": "^9.3.2",
"pino": "^9.5.0",
"qrcode-terminal": "0.12.0",
"soundcloud.ts": "^0.5.5",
"wa-sticker-formatter": "4.4.4"
},
"devDependencies": {
"@biomejs/biome": "^1.8.3",
"@types/jsonwebtoken": "^9.0.6",
"@biomejs/biome": "^1.9.4",
"@types/node": "^20.14.2",
"husky": "^9.1.4"
"husky": "^9.1.6"
},
"directories": {
"src": "src"
Expand Down
4 changes: 2 additions & 2 deletions src/commands/images/3000years.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = {
? bot.user.jid
: message.sender;
const response = await fetch(
`https://strangeapi.hostz.me/api/generators/3000-years?image=${encodeURIComponent(
`https://gens.hedystia.com/generators/3000years?image=${encodeURIComponent(
await bot
.profilePictureUrl(user)
.catch(
Expand All @@ -24,7 +24,7 @@ module.exports = {
)}}`,
{
headers: {
Authorization: `Bearer ${global.imageToken}`,
Authorization: "Hedystia",
},
},
);
Expand Down
4 changes: 2 additions & 2 deletions src/commands/images/ad.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = {
? bot.user.jid
: message.sender;
const response = await fetch(
`https://strangeapi.hostz.me/api/generators/ad?image=${encodeURIComponent(
`https://gens.hedystia.com/generators/ad?image=${encodeURIComponent(
await bot
.profilePictureUrl(user)
.catch(
Expand All @@ -24,7 +24,7 @@ module.exports = {
)}}`,
{
headers: {
Authorization: `Bearer ${global.imageToken}`,
Authorization: "Hedystia",
},
},
);
Expand Down
4 changes: 2 additions & 2 deletions src/commands/images/affect.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = {
? bot.user.jid
: message.sender;
const response = await fetch(
`https://strangeapi.hostz.me/api/generators/affect?image=${encodeURIComponent(
`https://gens.hedystia.com/generators/affect?image=${encodeURIComponent(
await bot
.profilePictureUrl(user)
.catch(
Expand All @@ -24,7 +24,7 @@ module.exports = {
)}}`,
{
headers: {
Authorization: `Bearer ${global.imageToken}`,
Authorization: "Hedystia",
},
},
);
Expand Down
4 changes: 2 additions & 2 deletions src/commands/images/approved.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = {
? bot.user.jid
: message.sender;
const response = await fetch(
`https://strangeapi.hostz.me/api/overlays/approved?image=${encodeURIComponent(
`https://gens.hedystia.com/generators/approved?image=${encodeURIComponent(
await bot
.profilePictureUrl(user)
.catch(
Expand All @@ -24,7 +24,7 @@ module.exports = {
)}}`,
{
headers: {
Authorization: `Bearer ${global.imageToken}`,
Authorization: "Hedystia",
},
},
);
Expand Down
4 changes: 2 additions & 2 deletions src/commands/images/batslap.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = {
? bot.user.jid
: message.sender;
const response = await fetch(
`https://strangeapi.hostz.me/api/generators/batslap?image1=${encodeURIComponent(
`https://gens.hedystia.com/generators/batslap?image1=${encodeURIComponent(
await bot
.profilePictureUrl(message.sender ?? message.quoted.sender)
.catch(
Expand All @@ -31,7 +31,7 @@ module.exports = {
)}`,
{
headers: {
Authorization: `Bearer ${global.imageToken}`,
Authorization: "Hedystia",
},
},
);
Expand Down
4 changes: 2 additions & 2 deletions src/commands/images/beautiful.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = {
? bot.user.jid
: message.sender;
const response = await fetch(
`https://strangeapi.hostz.me/api/generators/beautiful?image=${encodeURIComponent(
`https://gens.hedystia.com/generators/beautiful?image=${encodeURIComponent(
await bot
.profilePictureUrl(user)
.catch(
Expand All @@ -24,7 +24,7 @@ module.exports = {
)}}`,
{
headers: {
Authorization: `Bearer ${global.imageToken}`,
Authorization: "Hedystia",
},
},
);
Expand Down
4 changes: 2 additions & 2 deletions src/commands/images/bed.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = {
? bot.user.jid
: message.sender;
const response = await fetch(
`https://strangeapi.hostz.me/api/generators/bed?image1=${encodeURIComponent(
`https://gens.hedystia.com/generators/bed?image1=${encodeURIComponent(
await bot
.profilePictureUrl(message.sender ?? message.quoted.sender)
.catch(
Expand All @@ -31,7 +31,7 @@ module.exports = {
)}`,
{
headers: {
Authorization: `Bearer ${global.imageToken}`,
Authorization: "Hedystia",
},
},
);
Expand Down
4 changes: 2 additions & 2 deletions src/commands/images/blur.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = {
? bot.user.jid
: message.sender;
const response = await fetch(
`https://strangeapi.hostz.me/api/filters/blur?image=${encodeURIComponent(
`https://gens.hedystia.com/filters/blur?image=${encodeURIComponent(
await bot
.profilePictureUrl(user)
.catch(
Expand All @@ -24,7 +24,7 @@ module.exports = {
)}}`,
{
headers: {
Authorization: `Bearer ${global.imageToken}`,
Authorization: "Hedystia",
},
},
);
Expand Down
4 changes: 2 additions & 2 deletions src/commands/images/bobross.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = {
? bot.user.jid
: message.sender;
const response = await fetch(
`https://strangeapi.hostz.me/api/generators/bobross?image=${encodeURIComponent(
`https://gens.hedystia.com/generators/bobross?image=${encodeURIComponent(
await bot
.profilePictureUrl(user)
.catch(
Expand All @@ -24,7 +24,7 @@ module.exports = {
)}}`,
{
headers: {
Authorization: `Bearer ${global.imageToken}`,
Authorization: "Hedystia",
},
},
);
Expand Down
4 changes: 2 additions & 2 deletions src/commands/images/circle.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = {
? bot.user.jid
: message.sender;
const response = await fetch(
`https://strangeapi.hostz.me/api/utils/circle?image=${encodeURIComponent(
`https://gens.hedystia.com/utils/circle?image=${encodeURIComponent(
await bot
.profilePictureUrl(user)
.catch(
Expand All @@ -24,7 +24,7 @@ module.exports = {
)}}`,
{
headers: {
Authorization: `Bearer ${global.imageToken}`,
Authorization: "Hedystia",
},
},
);
Expand Down
4 changes: 2 additions & 2 deletions src/commands/images/clown.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = {
? bot.user.jid
: message.sender;
const response = await fetch(
`https://strangeapi.hostz.me/api/generators/clown?image=${encodeURIComponent(
`https://gens.hedystia.com/generators/clown?image=${encodeURIComponent(
await bot
.profilePictureUrl(user)
.catch(
Expand All @@ -24,7 +24,7 @@ module.exports = {
)}}`,
{
headers: {
Authorization: `Bearer ${global.imageToken}`,
Authorization: "Hedystia",
},
},
);
Expand Down
4 changes: 2 additions & 2 deletions src/commands/images/delete.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = {
? bot.user.jid
: message.sender;
const response = await fetch(
`https://strangeapi.hostz.me/api/generators/delete?image=${encodeURIComponent(
`https://gens.hedystia.com/generators/delete?image=${encodeURIComponent(
await bot
.profilePictureUrl(user)
.catch(
Expand All @@ -24,7 +24,7 @@ module.exports = {
)}}`,
{
headers: {
Authorization: `Bearer ${global.imageToken}`,
Authorization: "Hedystia",
},
},
);
Expand Down
4 changes: 2 additions & 2 deletions src/commands/images/dexter.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = {
? bot.user.jid
: message.sender;
const response = await fetch(
`https://strangeapi.hostz.me/api/generators/dexter?image=${encodeURIComponent(
`https://gens.hedystia.com/generators/dexter?image=${encodeURIComponent(
await bot
.profilePictureUrl(user)
.catch(
Expand All @@ -24,7 +24,7 @@ module.exports = {
)}}`,
{
headers: {
Authorization: `Bearer ${global.imageToken}`,
Authorization: "Hedystia",
},
},
);
Expand Down
4 changes: 2 additions & 2 deletions src/commands/images/facepalm.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = {
? bot.user.jid
: message.sender;
const response = await fetch(
`https://strangeapi.hostz.me/api/generators/facepalm?image=${encodeURIComponent(
`https://gens.hedystia.com/generators/facepalm?image=${encodeURIComponent(
await bot
.profilePictureUrl(user)
.catch(
Expand All @@ -24,7 +24,7 @@ module.exports = {
)}}`,
{
headers: {
Authorization: `Bearer ${global.imageToken}`,
Authorization: "Hedystia",
},
},
);
Expand Down
4 changes: 2 additions & 2 deletions src/commands/images/invert.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = {
? bot.user.jid
: message.sender;
const response = await fetch(
`https://strangeapi.hostz.me/api/filters/invert?image=${encodeURIComponent(
`https://gens.hedystia.com/filters/invert?image=${encodeURIComponent(
await bot
.profilePictureUrl(user)
.catch(
Expand All @@ -24,7 +24,7 @@ module.exports = {
)}}`,
{
headers: {
Authorization: `Bearer ${global.imageToken}`,
Authorization: "Hedystia",
},
},
);
Expand Down
4 changes: 2 additions & 2 deletions src/commands/images/mms.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = {
? bot.user.jid
: message.sender;
const response = await fetch(
`https://strangeapi.hostz.me/api/generators/mms?image=${encodeURIComponent(
`https://gens.hedystia.com/generators/mms?image=${encodeURIComponent(
await bot
.profilePictureUrl(user)
.catch(
Expand All @@ -24,7 +24,7 @@ module.exports = {
)}}`,
{
headers: {
Authorization: `Bearer ${global.imageToken}`,
Authorization: "Hedystia",
},
},
);
Expand Down
4 changes: 2 additions & 2 deletions src/commands/images/rejected.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = {
? bot.user.jid
: message.sender;
const response = await fetch(
`https://strangeapi.hostz.me/api/overlays/rejected?image=${encodeURIComponent(
`https://gens.hedystia.com/generators/rejected?image=${encodeURIComponent(
await bot
.profilePictureUrl(user)
.catch(
Expand All @@ -24,7 +24,7 @@ module.exports = {
)}}`,
{
headers: {
Authorization: `Bearer ${global.imageToken}`,
Authorization: "Hedystia",
},
},
);
Expand Down
4 changes: 2 additions & 2 deletions src/commands/images/wanted.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = {
? bot.user.jid
: message.sender;
const response = await fetch(
`https://strangeapi.hostz.me/api/generators/wanted?image=${encodeURIComponent(
`https://gens.hedystia.com/generators/wanted?image=${encodeURIComponent(
await bot
.profilePictureUrl(user)
.catch(
Expand All @@ -24,7 +24,7 @@ module.exports = {
)}}`,
{
headers: {
Authorization: `Bearer ${global.imageToken}`,
Authorization: "Hedystia",
},
},
);
Expand Down
4 changes: 2 additions & 2 deletions src/commands/images/wasted.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = {
? bot.user.jid
: message.sender;
const response = await fetch(
`https://strangeapi.hostz.me/api/overlays/wasted?image=${encodeURIComponent(
`https://gens.hedystia.com/generators/wasted?image=${encodeURIComponent(
await bot
.profilePictureUrl(user)
.catch(
Expand All @@ -24,7 +24,7 @@ module.exports = {
)}}`,
{
headers: {
Authorization: `Bearer ${global.imageToken}`,
Authorization: "Hedystia",
},
},
);
Expand Down
Loading

0 comments on commit b35706d

Please sign in to comment.