Skip to content

Commit

Permalink
add durations
Browse files Browse the repository at this point in the history
  • Loading branch information
Kry9toN committed Jan 23, 2021
1 parent c215108 commit efceb97
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/command/add.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const { color } = require('../utils/color')
module.exports = {
name: 'add',
aliases: ['ad'],
cooldown: 20,
description: 'Untuk menambahkan orang ke group dengan nomor\nPenggunaan: !add 6285xxxx',
execute (client: any, chat: any, pesan: any, args:any) {
if (!client.isGroup) return client.reply(pesan.error.group)
Expand Down
1 change: 1 addition & 0 deletions src/command/demote.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module.exports = {
name: 'demote',
aliases: ['dm'],
cooldown: 10,
description: 'Untuk manghapus admin anggota group\nPenggunaan: !demote _tag_',
execute (client, chat, pesan) {
if (!client.isGroup) return client.reply(pesan.error.group)
Expand Down
1 change: 1 addition & 0 deletions src/command/fakereply.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const { MessageType } = require('@adiwajshing/baileys')
module.exports = {
name: 'fakereply',
aliases: ['fr', 'fake', 'fitnah'],
cooldown: 35,
description: 'Untuk memfitnah atau menjahili teman\nPenggunaan !fakereply _tag_',
execute (client, chat, pesan) {
if (!client.isGroup) return client.reply(pesan.error.group)
Expand Down
1 change: 1 addition & 0 deletions src/command/help.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module.exports = {
name: 'help',
aliases: ['h'],
cooldown: 10,
description: 'Menampilkan semua perintah dan deskripsi',
execute (client, chat, pesan, args) {
const commands = client.cmd.array()
Expand Down
1 change: 1 addition & 0 deletions src/command/hidetag.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module.exports = {
name: 'hidetag',
aliases: ['ht'],
cooldown: 45,
description: 'Untuk mengetag semua orang tanpa @\nPenggunaan !hidetag _text_',
execute (client, chat, pesan) {
if (!client.isGroup) return client.reply(pesan.error.group)
Expand Down
1 change: 1 addition & 0 deletions src/command/kick.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module.exports = {
name: 'kick',
aliases: ['k'],
cooldown: 10,
description: 'Untuk mengeluarkan angota di group\nPenggunaan: !kick _tag_',
execute (client, chat, pesan) {
if (!client.isGroup) return client.reply(pesan.error.group)
Expand Down
1 change: 1 addition & 0 deletions src/command/notes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const { databaseView, databaseInput } = require('../utils/db')
module.exports = {
name: 'notes',
aliases: ['nt'],
cooldown: 15,
description: 'Untuk menyimpan note atau catatan di group\nPenggunaan: !notes <save/remove> <key> <value>',
async execute (client, chat, pesan, args) {
if (!client.isGroup) return client.reply(pesan.error.group)
Expand Down
1 change: 1 addition & 0 deletions src/command/nulis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const { fetchJson } = require('../utils/fetcher')
module.exports = {
name: 'nulis',
aliases: ['n'],
cooldown: 50,
description: 'Untuk menuliskan di buku bot\nPenggunaan !nulis _tulisan_',
execute (client, chat, pesan, args) {
const value = args.slice().join(' ')
Expand Down
1 change: 1 addition & 0 deletions src/command/nulis2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const { getBuffer } = require('../utils/functions')
module.exports = {
name: 'nulis2',
aliases: ['n2'],
cooldown: 50,
description: 'Untuk menuliskan di buku bot\nPenggunaan !nulis2 _tulisan_',
execute (client, chat, pesan, args) {
const value = args.slice().join(' ')
Expand Down
1 change: 1 addition & 0 deletions src/command/nulis3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const { fetchJson } = require('../utils/fetcher')
module.exports = {
name: 'nulis3',
aliases: ['n3'],
cooldown: 50,
description: 'Untuk menuliskan di buku bot\nPenggunaan !nulis3 _tulisan_',
execute (client, chat, pesan, args) {
const value = args.slice().join(' ')
Expand Down
1 change: 1 addition & 0 deletions src/command/promote.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module.exports = {
name: 'promote',
aliases: ['pm'],
cooldown: 10,
description: 'Untuk manjadikan admin anggota di group\nPenggunaan: !promote _tag_',
execute (client, chat, pesan) {
if (!client.isGroup) return client.reply(pesan.error.group)
Expand Down
1 change: 1 addition & 0 deletions src/command/slap.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module.exports = {
name: 'slap',
cooldown: 10,
description: 'Untuk menampol orang\nPenggunaan !slap _tag_',
execute (client, chat, pesan, args) {
if (!client.isGroup) return client.reply(pesan.error.group)
Expand Down

0 comments on commit efceb97

Please sign in to comment.