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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
// TODO: bot status
const Discord = require('discord.js');
module.exports = {
name: 'botstatus',
aliases: ['status', 'bs'],
description: '',
async execute(msg, args, bot) {
if (msg.member.hasPermission('KICK_MEMBERS')) {
var activityType = bot.user.presence.game.type;
var activityName = bot.user.presence.game.name;
function activityTypeToWords() {
if (activityName == '0') {
var activityName = 'PLAYING';
} else if (activityName == '1') {
var activityName = 'STREAMING';
} else if (activityName == '2') {
var activityName = 'LISTENING';
} else if (activityName == '3') {
var activityName = 'WATCHING';
}
}
if (args[0] == 'reset' || args[0] == 'r') {
bot.user.setActivity('psycho ~uwu', {
type: 'LISTENING'
});
msg.reply('status has been reset lol');
} else if (args[0] == 'format' || args[0] == 'f') {
// Print full, proper format for the Discord.js setActivity() function
msg.reply('\n`' + bot.user.setActivity.toString() + '`');
} else if (args[0] == 'message' || args[0] == 'msg' || args[0] == 'm') {
// This took way to long to complete lol, 2020/04/08, 00:12, my birthday lol
if (args[0] == 'message') {
var m = args.join(' ');
var mf = m.slice(8, 22);
} else if (args[0] == 'msg') {
var m = args.join(' ');
var mf = m.slice(4, 22);
} else if (args[0] == 'm') {
var m = args.join(' ');
var mf = m.slice(2, 22);
}
if (mf == 'reset' || mf == 'r') {
bot.user.setActivity('psycho ~uwu', {
type: activityType
});
msg.reply('status message has been reset lol');
} else {
bot.user.setActivity(mf, {
type: activityType
});
}
} else if (args[0] == 'type' || args[0] == 't') {
var m = args[1];
args[1].toLowerCase();
if (args[1] == 'playing' || args[1] == 'p') {
var m = 'playing';
bot.user.setActivity(activityName, {
type: m
});
} else if (args[1] == 'listening' || args[1] == 'l') {
var m = 'LISTENING';
bot.user.setActivity(activityName, {
type: m
});
} else if (args[1] == 'watching' || args[1] == 'w') {
var m = 'WATCHING';
bot.user.setActivity(activityName, {
type: m
});
} else if (args[1] == 'reset' || args[1] == 'r') {
bot.user.setActivity(activityName, {
type: 'LISTENING'
});
msg.reply('status type has been reset lol');
}
} else if (!args.length) {
msg.reply('no arguments specified');
}
} else {
msg.reply('insufficent perms bruh');
}
}
};
|