Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Heroku patch #146

Merged
merged 14 commits into from
Nov 10, 2023
10 changes: 10 additions & 0 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,16 @@
"description": "put any one symbol here except @ and + , leave it Blank if you want to use multiple prefix",
"required": false,
"value": ""
},
"HKEY": {
"description": "Put your Heroku api key Here , Get one from here https://dashboard.heroku.com/account",
"required": true,
"value": ""
},
"HAPP": {
"description": "Put the Heroku app name, same as above entered",
"required": true,
"value": ""
},
"REMOVEBG_KEY": {
"description": "your RemoveBg api key",
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
"file-type": "^18.0.0",
"fluent-ffmpeg": "^2.1.2",
"formdata-node": "^5.0.0",
"heroku-client": "^3.1.0",
"human-readable": "^0.2.1",
"instagram-url-direct": "^1.0.12",
"imagemaker.js": "*",
Expand Down
1 change: 1 addition & 0 deletions plugins/owner-allvars.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions plugins/owner-clearTmp.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ import {

let handler = async (m, { conn, __dirname, args }) => {

m.reply(`✅ The folder was cleaned *tmp + sessions*`)
m.reply(`✅ The folder was cleaned *tmp + session*`)
m.react(done)
const tmp = [tmpdir(), join(__dirname, '../tmp')]
const filename = []
tmp.forEach(dirname => readdirSync(dirname).forEach(file => filename.push(join(dirname, file))))

//session bot
readdirSync("./sessions").forEach(file => {
readdirSync("./session").forEach(file => {
if (file !== 'creds.json') {
unlinkSync("./sessions/" + file, { recursive: true, force: true })}})
unlinkSync("./session/" + file, { recursive: true, force: true })}})

return filename.map(file => {
unlinkSync(file)
Expand Down
2 changes: 1 addition & 1 deletion plugins/owner-restart.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ let handler = async (m, { conn, isROwner, text }) => {

handler.help = ['restart']
handler.tags = ['owner']
handler.command = ['restart','reiniciar']
handler.command = ['restart']

handler.rowner = true

Expand Down
1 change: 1 addition & 0 deletions plugins/owner-var.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading