forked from xIKRATOSx/Shizu-Bot-MD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_albert.js
46 lines (39 loc) ยท 2.93 KB
/
_albert.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// # /////////////////////////////////////////////////////////////////////////// #
// # #
// # Copyright 2022 TheH2SO4 (Hiro) #
// # #
// # Licensed under the Apache License, Version 2.0 (the "License"); #
// # you may not use this file except in compliance with the License. #
// # You may obtain a copy of the License at #
// # #
// # http://www.apache.org/licenses/LICENSE-2.0 #
// # #
// # Unless required by applicable law or agreed to in writing, software #
// # distributed under the License is distributed on an "AS IS" BASIS, #
// # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
// # See the License for the specific language governing permissions and #
// # limitations under the License. #
// # #
// # /////////////////////////////////////////////////////////////////////////// #
// # ////////////////| [๐ฅฝ] | TheH2SO4 | [โ๏ธ] |//////////////// #
// # || Start [๐] || #
const PLUGIN_VERSION="1.0.0"
let handler = async (m, {text, conn, args, usedPrefix, command }) => {
function message(text) {
conn.sendMessage(m.chat, { text: `${text}` }, {quoted: m})
}
try {
if (! text) {
message(`โญโโโโโโโ(^(ๅทฅ)^)โโโโโโโโฎ\n\n[โ] Hey! THIS IS NOT THE CORRECT WAY TO USE *${usedPrefix}getcode*. THE CORRECT WAY TO USE IT IS *${usedPrefix}getcode + <ruta del archivo>*! EXAMPLE: *${usedPrefix}getcode /plugins/code-getcode.js*.\n\n---------| *${PLUGIN_VERSION}* ( ** ) |--------\n\nโฐโโโโโโโ(^(ๅทฅ)^)โโโโโโโโฏ`)
} else {
conn.sendFile(m.chat, `.${args[0]}`, null, { quoted: m })
message(`โญโโโโโโโ(^(ๅทฅ)^)โโโโโโโโฎ\n\n[โ
] HERE IS THE FILE AT PATH ' *${args[0]}* '!\n\nANY ERRORS? Report it by opening an issue on GitHub!\n\n---------| *${PLUGIN_VERSION}* |--------\n\nโฐโโโโโโโ(^(ๅทฅ)^)โโโโโโโโฏ`)
}
} catch(error) {
message(`โญโโโโโโโ(^(ๅทฅ)^)โโโโโโโโฎ\n\n[โ] An error has occurred "${error}". Please open an issue on GitHub to report the bug..\n\n---------| *${PLUGIN_VERSION}* |--------\n\nโฐโโโโโโโ(^(ๅทฅ)^)โโโโโโโโฏ`)
}
}
handler.help = ['albert help']
handler.tags = ['tools']
handler.command = ['albert help']
export default handler