mirror of
https://github.com/pichsenmeister/WienerScript.git
synced 2025-03-10 15:49:05 +01:00
* replaced " by ' * no idea why it doesnt execute * it was the semicolons, alright * refactoring * fixed exclude pattern and made it async
33 lines
1.1 KiB
Text
33 lines
1.1 KiB
Text
FIX OIDA Discord WENNST MANST require('discord.js');
|
|
FIX OIDA client WENNST MANST new Discord.Client();
|
|
|
|
client.on('ready', () HUACH ZUA {
|
|
I MAN JA NUR('bot has started');
|
|
client.user.setActivity(`Watching ${client.guilds.cache.size} servers`);
|
|
});
|
|
|
|
client.on('message', OWIZAHRA (message) HUACH ZUA {
|
|
WOS WÜSTN(message.author.bot)
|
|
DRAH DI HAM;
|
|
WOS WÜSTN(!message.content.startsWith(process.env.PREFIX))
|
|
DRAH DI HAM;
|
|
FIX OIDA args WENNST MANST message.content.replace(process.env.PREFIX, '').trim().split(/ +/g);
|
|
FIX OIDA command WENNST MANST args.shift().toLowerCase();
|
|
|
|
WOS IS MIT DIR(command) {
|
|
I SCHAU NUR "ping":
|
|
FIX OIDA m WENNST MANST JO GLEI message.channel.send("Ping?");
|
|
m.edit(`Pong! Latency is ${m.createdTimestamp - message.createdTimestamp}ms. API Latency is ${Math.round(client.ws.ping)}ms`);
|
|
PASST SCHO;
|
|
I SCHAU NUR 'say':
|
|
SCHAU MA MOL {
|
|
JO GLEI message.delete();
|
|
JO GLEI message.channel.send(args.join(' '));
|
|
} LECK OASCH (err) {
|
|
GSCHISSN GRISSN(err)
|
|
}
|
|
PASST SCHO;
|
|
}
|
|
});
|
|
|
|
client.login(process.env.TOKEN);
|