[repo] reorganization using plugins instead of built-in commands, [plugin] new game: forca, [dev] changes on log format, [config] removed botMsg, [plugin] on stickers, you can create just one sending an image or replying to one, [setup] exec permissions and comand to install Chrome
This commit is contained in:
9
src/plugins/a/index.js
Normal file
9
src/plugins/a/index.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import { forcaAtiva } from "../forca/index.js";
|
||||
|
||||
export default async function ({ msg }) {
|
||||
if (msg.body.trim().toLowerCase() !== "a") return;
|
||||
if (msg.args.length > 1) return;
|
||||
if (forcaAtiva) return;
|
||||
|
||||
await msg.reply("B!");
|
||||
}
|
||||
Reference in New Issue
Block a user