This repository has been archived by the owner on Nov 7, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Wolfie.js
250 lines (187 loc) · 8.95 KB
/
Wolfie.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
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
const Discord = require('discord.js');
const client = new Discord.Client();
const config = require('./config.json');
const wolfaxtra = require('./wolfaxtra.js');
var S = require('string');
client.on('ready', () => {
client.user.setStatus('dnd');
client.user.setActivity('With New Code | --> b; <--', {type: 'WATCHING'});
console.log(" ### # # # ##### # # #####");
console.log("# # # # # # # # # # #");
console.log("# # # # # # # # # # ####");
console.log("# # # # # # # # # # #");
console.log(" ### # # #### ##### # # #####");
console.log(`Bot name ${client.user.username}`)
});
client.on('message', async message => {
if (!message.content.startsWith(prefix) || message.author.bot) return;
const args = message.content.slice(prefix.length).split(' ');
const command = args.shift().toLowerCase();
if (message.content === prefix + 'help') {
let helpembed = new Discord.RichEmbed()
.setTitle('List Of Commands | prefix b; | Help List ')
.setDescription('There is available commands for this bot on list!')
.addField(':newspaper: INFO', '7 Commands open \n``help info``')
.addField(':tada: FUN', '2 Commands open \n``help fun``')
.addField('MOD', '1 Command Open \n``help mod``')
.addField('OWNER', '1 Command Open \n``help owner``')
.setColor('RANDOM')
.setFooter(`Requested by ${message.author.tag} | Help list`)
return message.channel.send(helpembed);
}
if (message.content === prefix + 'help info') {
let helpeinfombed = new Discord.RichEmbed()
.setTitle('Info commands | prefix b; | Info page ')
.setDescription('There is available commands for this Info \n``botinfo, changelog, dcinvite, media, userinfo``')
.setColor('RANDOM')
.setFooter(`Requested by ${message.author.tag} | Help info`)
return message.channel.send(helpinfoembed);
}
if (message.content === prefix + 'help owner') {
let helpeinfombed = new Discord.RichEmbed()
.setTitle('Owner commands | prefix b; | Owner page ')
.setDescription('There is available commands for this Info \n``eval``')
.setColor('RANDOM')
.setFooter(`Requested by ${message.author.tag} | Help info`)
return message.channel.send(helpeownerembed);
}
if (message.content === prefix + 'help mod') {
let helpeinfombed = new Discord.RichEmbed()
.setTitle('Mods commands | prefix b; | Mod page ')
.setDescription('There is available commands for this Info \n``kick``')
.setColor('RANDOM')
.setFooter(`Requested by ${message.author.tag} | Help info`)
return message.channel.send(helpmodembed);
}
if (comamnd==='help') {
if (args[0]==='fun') {
let helpfunembed = new Discord.RichEmbed()
.setTitle('Fun Comamnds | prefix b; | Fun list')
.setDescription('There is available commands for FUN!\n ``avatar, gayrate, ping``')
.setColor('RANDOM')
.setFooter(`Requested by ${message.author.tag} | Help fun`)
return message.channel.send(helpfunembed);
}
//INFO COMMANDS
if (message.content === prefix + 'media') {
let mediaembed = new Discord.RichEmbed()
.setTitle('Check Wolfie Social Media')
.setDescription('Check Wolfie [Youtube Channel ](https://www.youtube.com/c/Wolfkid).\n Check Wolfie [Twitter](https://twitter.com/TheRealWolfkid).\n Check Wolfie [Fan Discord Server](http://bit.ly/WolfkidDiscord).\nAnd Also Check Wolfie [Github](https://github.com/Wolfkid200444)')
.setColor('RANDOM')
return message.channel.send(mediaembed);
}
if (message.content === prefix + 'botinfo') {
var seconds = process.uptime();
days = Math.floor(seconds / 86400);
seconds %= 86400;
hrs = Math.floor(seconds / 3600);
seconds %= 3600;
mins = Math.floor(seconds / 60);
secs = seconds % 60;
var uptime = days + ' days, ' + hrs + ' hours, ' + mins + ' minutes';
var stats = new wolfaxtra.SubFields()
.addField('Servers', client.guilds.size)
.addField('Channels', client.channels.size)
.addField('Users', client.users.size)
.addField('Uptime Bot', uptime)
.addField('RAM Usage', Math.round(process.memoryUsage().rss / 10485.76) / 100 + ' MB')
.toString();
var status = new Discord.RichEmbed()
.setColor(Math.floor(Math.random() * 16777215))
.setTitle('FakeWolfkidBOT | Information')
.setDescription('This is FakeWolfkid Created by Wolfkid ')
.setThumbnail(client.user.avatarURL)
.addField('Version', '1.7-Unstable')
.addField('<><><>', 'וו×')
.addField('Owner', 'Wolfie#7213')
.addField('Created', client.user.createdAt)
.addField('<><><>', '•×•×•')
.addField('**Stats**', stats)
return message.channel.send(status);
}
if (message.content === prefix + 'changelog') {
let changelogembed = new Discord.RichEmbed()
.setTitle('Changelog')
.setDescription('Check out Whats New on The Bot :D')
.addField('July 23', 'Added New Features')
.setColor('#808000')
.setFooter(`Requested by ${message.author.tag}`)
return message.channel.send(changelogembed);
}
if (message.content === prefix + 'dcinvite') {
let dcinviteembed = new Discord.RichEmbed()
.setTitle('Our support Discord server')
.setDescription('Check out our [Discord server](http://bit.ly/FutureDevs) to get news of FakeWolfkid and if you have issues with the bot or not working property you can report it on #report or on our GitHub')
.setColor('DARK')
return message.channel.send(dcinviteembed);
}
if (message.content === prefix + 'userinfo') {
if (member, mtn = true) {
let userinfoembed = new Discord.RichEmbed()
var m = member.user;
var rls = member.roles.map((r) => r.name).join(', ');
var uemb = new extras.UnrealEmbed()
.addField('Username', m.username)
.addField('ID', m.id)
.addField('Discord Tag', m.tag)
.addField('Avatar URL', m.displayAvatarURL)
.addField('Created at', m.createdAt)
.addField('Bot?', m.bot)
.addField('Roles', '\\' + rls);
if (m.presence.game != null) {
uemb.addField('Game', m.presence.game.name);
} else {
uemb.addField('Game', 'None');
}
uemb.addField('Status', m.presence.status);
if (m.lastMessage != null && mtn == true) {
uemb.addField('Last Message', m.lastMessage.cleanContent);
} else if (mtn == true) {
uemb.addField('Last Message', 'Not found');
}
return extras.embed('Information about the user ' + m.username + ':', uemb.toString(), m.displayAvatarURL);
}
}
//Added This To Seperate Commands and stuff -- This Section is for Fun cmd
if (message.content === prefix + 'avatar') {
let user = message.mentions.users.first() || message.author;
let avatarembed = new Discord.RichEmbed()
.setTitle('Your Avatar!')
.setAuthor(`${user.username}`)
.setColor('RANDOM')
.setImage(message.author.avatarURL)
.setFooter(`Requested by ${message.author.tag}`)
return message.channel.send(avatarembed);
}
if (message.content === prefix + 'gayrate'){
let user = message.mentions.users.first() || message.author;
let gayembed = new Discord.RichEmbed()
.setAuthor(`${user.username}`)
.addField(`Gay Rate`, `You Are **${Math.floor(Math.random() * 101)}% Gay**! :gay_pride_flag:`)
.setColor('RANDOM')
.setFooter(`AH! GAYYYYYY | Requested by ${message.author.tag}`)
return message.channel.send(gayembed)
}
if (message.content === prefix + 'say') {
let text = args.slice(1).join(" ");
message.delete();
message.channel.send(text);
}
if (message.content === prefix + '8ball') {
let user = message.mentions.users.first() || message.author;
var rnd = Math.floor(Math.random() * config.eightball.length);
let ballembed = new Discord.RichEmbed()
.setAuthor(`${user.username}`)
.addField(config.eightball[rnd])
.setColor('RANDOM')
return message.channel.send(ballembed);
}
//MODS COMMANDS YOU DUMMY ONLY HERE
if (message.content === prefix + 'kick') {
let member = message.mentions.members.first();
let reason = args.slice(1).join(" ");
member.kick(reason);
}
//OWNER ONLY COMMANDS
});
client.login(process.env.BOT_TOKEN);