Skip to content

Commit

Permalink
Heroku patch (Guru322#146)
Browse files Browse the repository at this point in the history
Heroku update
  • Loading branch information
Guru322 authored Nov 10, 2023
1 parent da3f5b8 commit 9bf74b0
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 4 deletions.
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.

0 comments on commit 9bf74b0

Please sign in to comment.