first commit
This commit is contained in:
12
obrigado/index.js
Normal file
12
obrigado/index.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import { CMD_PREFIX } from "../../config.js";
|
||||
import { createPluginI18n } from "../../utils/pluginI18n.js";
|
||||
|
||||
const { t } = createPluginI18n(import.meta.url);
|
||||
|
||||
const triggers = ["obrigado", "valeu", "brigado", "obrigada", "thx", "thanks"];
|
||||
|
||||
export default async function ({ msg }) {
|
||||
if (!triggers.some(g => msg.is(CMD_PREFIX + g))) return;
|
||||
|
||||
await msg.reply(t("reply"));
|
||||
}
|
||||
3
obrigado/locale/en.json
Normal file
3
obrigado/locale/en.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"reply": "You're welcome! 🤗"
|
||||
}
|
||||
3
obrigado/locale/es.json
Normal file
3
obrigado/locale/es.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"reply": "¡De nada! 🤗"
|
||||
}
|
||||
3
obrigado/locale/pt.json
Normal file
3
obrigado/locale/pt.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"reply": "Por nada! Disponha! 🤗"
|
||||
}
|
||||
Reference in New Issue
Block a user