summaryrefslogtreecommitdiff
path: root/src/bot.ts
diff options
context:
space:
mode:
author8cy <[email protected]>2020-04-15 08:10:26 -0700
committer8cy <[email protected]>2020-04-15 08:10:26 -0700
commit972c2ef86a59f0d90da9c11bcdfc9d7245379186 (patch)
tree69ef94319bae5f44f3438f409cea9a467d53d296 /src/bot.ts
parenton msg also log server name, v5.0.6 (diff)
downloaddep-core-972c2ef86a59f0d90da9c11bcdfc9d7245379186.tar.xz
dep-core-972c2ef86a59f0d90da9c11bcdfc9d7245379186.zip
The Uwulapse, v6.0.0
- add webserver - fix servercount - formatting
Diffstat (limited to 'src/bot.ts')
-rw-r--r--src/bot.ts25
1 files changed, 22 insertions, 3 deletions
diff --git a/src/bot.ts b/src/bot.ts
index f8fc6b3..f8e075d 100644
--- a/src/bot.ts
+++ b/src/bot.ts
@@ -1,5 +1,6 @@
import config from './config.json';
import { CommandoClient } from 'discord.js-commando';
+import WS from './ws/ws';
import path from 'path';
import { Structures } from 'discord.js';
import emoji from 'emoji-random';
@@ -18,12 +19,14 @@ Structures.extend('Guild', Guild => {
}
return MusicGuild;
});
-
+//
const client = new CommandoClient({
commandPrefix: 'uwu!',
owner: '217348698294714370'
});
+var ws = new WS('123456', 5665, client)
+
client.registry
.registerDefaultTypes()
.registerGroups([
@@ -39,8 +42,24 @@ client.registry
.registerCommandsIn(path.join(__dirname, 'commands'));
client.once('ready', () => {
- console.log(`Started bot: ${client.user.tag} (ID: ${client.user.id})\nCurrently running on ${client.guilds.cache.size} server(s).`);
- client.user.setActivity('uwu!help | v5.0.0', {
+ //console.log(`Started bot: ${client.user.tag} (ID: ${client.user.id})\nCurrently running on ${client.guilds.cache.size} server(s).`);
+ console.log('Bot online!')
+ console.log(` _ _ __ _
+| | | | / _(_)
+| | | |_ ___ _| |_ _ ___ _ __
+| | | \\ \\ /\\ / / | | | _| |/ _ \\ '__|
+| |_| |\\ V V /| |_| | | | | __/ |
+ \\___/ \\_/\\_/ \\__,_|_| |_|\\___|_|
+
+ `)
+ console.log('discord.js Version: 2.1.1')
+ console.log('Node.js Version:', process.version)
+ console.log('OS Version:', process.platform)
+ console.log('Name:', `${client.user?.tag}`)
+ console.log('ID:', `${client.user?.id}`)
+ console.log()
+
+ client.user.setActivity('uwu!help | v6.0.0', {
type: 'WATCHING'
});
});