forked from phaticusthiccy/WhatsAsenaDuplicated
-
Notifications
You must be signed in to change notification settings - Fork 0
/
subevents.js
33 lines (29 loc) · 769 Bytes
/
subevents.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
/* Copyright (C) 2020 Yusuf Usta.
Licensed under the GPL-3.0 License;
you may not use this file except in compliance with the License.
WhatsAsena - Yusuf Usta
*/
/*
Sub-Events for WhatsAsena
Experimental Datas
*/
var config = require('./config');
var Commands = [];
function indexCommand(main_event) {
var types = ['photo', 'image', 'text', 'message'];
var check_off = Commands[main_event] === undefined ? false : true
if (!check_off) {
return null;
}
var recreation = Commands.indexOf(main_event)
if (recreation !== 1) {
return null;
}
var backpoint = Commands.filter(item => item !== main_event)
// No backup
Commands = []
Commands.push(backpoint)
}
module.exports = {
indexCommand: indexCommand
}