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

Update to version 3.1.2 #24

Merged
merged 1 commit into from
Jun 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hedystiamd",
"version": "3.1.1",
"version": "3.1.2",
"description": "A whatsapp bot that can be used to play music",
"main": "index.js",
"type": "commonjs",
Expand Down
3 changes: 3 additions & 0 deletions src/commands/owner/init.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
module.exports = {
name: "init",
run: async ({ bot, lang, message }) => {
if (global.db.config.select("owner", { id: "owner" })[0].value) {
return bot.sendMessage(message.chat, { text: lang.owner.alreadyInit }, { quoted: message });
}
global.db.config.update("owner", { id: "owner" }, { value: message.sender });
return bot.sendMessage(message.chat, { text: lang.owner.defaultOwner }, { quoted: message });
},
Expand Down
3 changes: 2 additions & 1 deletion src/lang/en/bot.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@
},
"defaultOwner": "✔️ | Now you are the owner of the bot if you want another user to be the new bot owner use the command {6}setowner",
"noOwner": "❌ | The bot has no owner you must use the {6}init command to get that rank",
"newOwner": "✔️ | The former owner has just relinquished privileges and now there is a new owner"
"newOwner": "✔️ | The former owner has just relinquished privileges and now there is a new owner",
"alreadyInit": "❌ | The bot is already initialized"
},
"automod": {
"antilinks": "❌ | Error: I don't have admin so I can't delete links."
Expand Down
3 changes: 2 additions & 1 deletion src/lang/es/bot.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@
},
"defaultOwner": "✔️ | Ahora eres el dueño del bot si quieres que otro usuario sea el nuevo dueño del bot usa el comando {6}setowner",
"noOwner": "❌ | El bot no tiene dueño debes usar el comando {6}init para obtener ese rango",
"newOwner": "✔️ | El antiguo dueño acaba de renunciar a sus privilegios y ahora hay un nuevo dueño"
"newOwner": "✔️ | El antiguo dueño acaba de renunciar a sus privilegios y ahora hay un nuevo dueño",
"alreadyInit": "❌ | El bot ya está inicializado"
},
"automod": {
"antilinks": "❌ | Error: No tengo admin así que no puedo borrar enlaces."
Expand Down